#1  
Old 13th October 2010, 02:09 AM
jprenou
 
Posts: n/a
Default RichView data with nxscript pages


Hello,

I'm using TRichView component to manage my text in my application.
Since the TRichView format text is special I have to find a way to
display correct text trough my nxscript pages.

Is there a way to manage TRichView component with my nxscript pages ?

Thanks

JP


--
jprenou
  #2  
Old 13th October 2010, 12:56 PM
Thorsten Engler [NDA]
 
Posts: n/a
Default Re: RichView data with nxscript pages

I don't understand what exactly you are asking for here?

jprenou wrote:

>
> Hello,
>
> I'm using TRichView component to manage my text in my application.
> Since the TRichView format text is special I have to find a way to
> display correct text trough my nxscript pages.
>
> Is there a way to manage TRichView component with my nxscript pages ?
>
> Thanks
>
> JP


  #3  
Old 15th October 2010, 03:17 AM
jprenou
 
Posts: n/a
Default Re: RichView data with nxscript pages


Thorsten,

Sorry for my bad explanation.

Is there a way to *use *in a nxscript a *TRichView component *("to
convert RVF content to TXT content")?


Thanks


--
jprenou
  #4  
Old 18th October 2010, 02:45 PM
Hannes Danzl[NDD]
 
Posts: n/a
Default Re: RichView data with nxscript pages

jprenou wrote:

>
> Thorsten,
>
> Sorry for my bad explanation.
>
> Is there a way to *use *in a nxscript a *TRichView component *("to
> convert RVF content to TXT content")?


Yes that's generally possible. Depending on whether the compoent needs a
window handle or not, you might be restricted in use though. If you just want
to convert data you might also be better off to create a global function that
does this and make this function accessible to scripts. This is a much simpler
task than making the whole component, it's functions and properties accessible
and will also have a positive impact on performance as only one call will go
through scripting as opposed to the whole component setup etc.

To make a function accessible to scripting all you need to do is to register
it. This is done in the DoAddVariable of the script processor. This is either
a descendent of TnxBaseROPSProcessor (for web application) or a descendent of
TnxPascalScriptEngine (for server and sql scripting).

for example

PSScript.AddFunction(@nxServerDecode, 'function ServerDecode(aString: string):
string;');

registers the function ServerDecode with the supplied syntax, and it calls a
global function nxServerDecode inside the server binary every time
ServerDecode is executed in the script.

I'll try to write a blog article about the integration of components/classes
once I've a bit more breathing space.

--

Hannes Danzl / NexusDB

Manuals - http://www.nexusdb.com/support/index..._manual_v3.htm
Issue Tracker - http://www.nexusdb.com/mantis/view_all_bug_page.php
Newsgroup Web Gateway - http://www.nexusdb.com/forums/
Newsgroup Search - http://www.nexusdb.com/forums/search.php
  #5  
Old 18th October 2010, 03:04 PM
Thorsten Engler [NDA]
 
Posts: n/a
Default Re: RichView data with nxscript pages

Hannes Danzl[NDD] wrote:

> Yes that's generally possible. Depending on whether the compoent needs a
> window handle or not, you might be restricted in use though.


To go into a bit more detail here:

The nxscripts are running in the context of non-UI threads.

These threads do not have a message loop, instead they wait on a socket handle
or I/O completion port till there is an incoming request, then execute that
request and go back to waiting for the next request.

Threads which never call GetMessage/PeekMessage and which don't create a window
handle do _not_ have a message queue associated with them. Windows only sets up
the thread as an UI thread when it for the first time performs any UI operation.

There is a windows API function which broadcasts a message to all top level
windows and only returns when all windows have processed that message.

If there are any threads in the system which own a window, but do NOT process
their message loops, then the attempt to perform such a broadcast will freeze
whatever application tried to send it.

So you need to make sure that anything you do in an nxscript does not end up
associating a message queue with the thread.

If you were trying to use TRichEdit (which needs to create window handle for
the MS rich edit control), that would be impossible, but it might work with
TRichView (which as far as I can see from their website, is implemented
completely in delphi).
  #6  
Old 21st October 2010, 12:04 AM
jprenou
 
Posts: n/a
Default Re: RichView data with nxscript pages


Thanks,

Regards,

JP


--
jprenou
  #7  
Old 5th November 2010, 02:27 AM
jprenou
 
Posts: n/a
Default Re: RichView data with nxscript pages


Hello Hannes,

I' trying to add a simple function right now for my web application.
But I don't want to modify NexusDB sources.
How can I access to the script processor through my web application
object ?

Thanks

Regards,

JP


--
jprenou
  #8  
Old 9th November 2010, 06:45 AM
jprenou
 
Posts: n/a
Default Re: RichView data with nxscript pages


Hannes,

I know you are very busy. Can you just give me a tip on this ?

Thanks


--
jprenou
  #9  
Old 17th November 2010, 01:51 AM
jprenou
 
Posts: n/a
Default Re: RichView data with nxscript pages


Any chance to have a blog article about the integration of
components/classes

Regards,

JP


--
jprenou
  #10  
Old 17th November 2010, 01:30 PM
Hannes Danzl[NDD]
 
Posts: n/a
Default Re: RichView data with nxscript pages

> Any chance to have a blog article about the integration of
> components/classes


Sorry, will probably have to wait until after 3.06.

--

Hannes Danzl / NexusDB

Manuals - http://www.nexusdb.com/support/index..._manual_v3.htm
Issue Tracker - http://www.nexusdb.com/mantis/view_all_bug_page.php
Newsgroup Web Gateway - http://www.nexusdb.com/forums/
Newsgroup Search - http://www.nexusdb.com/forums/search.php


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Encrypted nxscript pages jprenou nexusdb.public.discussions 1 11th October 2010 01:20 PM
how to write sql functions ( with sql queries in it) in nxscript Ad Franse nexusdb.public.support.sql 4 30th September 2009 02:43 PM
Update data from one table with data from other table Piko nexusdb.public.support.sql 1 30th August 2007 09:03 AM
Using Data Aware Controls for DB Data Entry David Guest nexusdb.public.discussions 0 2nd July 2006 02:58 AM
Data Abstract: the right balance between ORMs and classical dataset-oriented techniques. A paradigm shift in data access methodology Alessandro Federici - RemObjects Software nexusdb.public.support.thirdparty 0 30th August 2003 01:48 AM


All times are GMT +11. The time now is 06:21 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.