Posted 15 years ago
by Nassim Farhat
Hello,
I am using Dynamic language definition in order to create my own "BASIC" like language.
In my language, my variable text patterns fall under the Identifier Tokens and I am able to obtain all of them by parsing my document.
MY application requires that I monitor variables in the code. Monitoring requires me to display the value of the underlying variable (let's say for convenience that it is an "int" type) next to the TOKEN of the variable.
Now, initialy i was thinking of inserting text that represent the value of the variable right next to the variable itself ( ex: Variable1(-123123) ).... but then I realized that this could really be difficult to manage given that the value (-123123) is constantly being updated when i am monitoring, which would cause the document to contantly be moving due to text changes! Also, tracking these in document changes could be hell for me, since i need to constantly update the variables and if the data is not bound correctly, this would cause me to create timers in my code and obtain the tokens again and refresh the information constantly.... Soooo to avoid all this mess, I was wondering instead, can I apply tooltips or textboxes right next to my variable tokens? These tooltips/textboxes would be either on another layor or the same layor but they should not affect the underlying document.
To be more specific, 1 document could have many tooltip/texboxes appearing at the same time, they are not triggered by a mouseover event, but rather, they are displayed and iserted dynamically for each variables shown on the screen when my application goes into monitoring mode!
If I cannot not apply a tooltip to specific tokens, I would like to be able to insert a textbox next to my variables which would give me a container for my monitoring variables.
Now I know that this might only be attainable with WPF version of Syntax Editor so my question is: Can you suggest me something else i can do to monitor these variable on screen using my non WPF version of Syntax Editor? IF WPF version of syntax Editor is absolutely necessary, will it be reverse compatible with the code I have already created in my non-WPF version of Symtax Editor (intelliprompt, same events, dynamic language definition is the same etc...)?
Regards
Nassim
[Modified at 02/19/2010 03:47 PM]
[Modified at 02/22/2010 08:21 AM]
[Modified at 02/22/2010 08:21 AM]
[Modified at 02/22/2010 08:22 AM]
I am using Dynamic language definition in order to create my own "BASIC" like language.
In my language, my variable text patterns fall under the Identifier Tokens and I am able to obtain all of them by parsing my document.
MY application requires that I monitor variables in the code. Monitoring requires me to display the value of the underlying variable (let's say for convenience that it is an "int" type) next to the TOKEN of the variable.
Now, initialy i was thinking of inserting text that represent the value of the variable right next to the variable itself ( ex: Variable1(-123123) ).... but then I realized that this could really be difficult to manage given that the value (-123123) is constantly being updated when i am monitoring, which would cause the document to contantly be moving due to text changes! Also, tracking these in document changes could be hell for me, since i need to constantly update the variables and if the data is not bound correctly, this would cause me to create timers in my code and obtain the tokens again and refresh the information constantly.... Soooo to avoid all this mess, I was wondering instead, can I apply tooltips or textboxes right next to my variable tokens? These tooltips/textboxes would be either on another layor or the same layor but they should not affect the underlying document.
To be more specific, 1 document could have many tooltip/texboxes appearing at the same time, they are not triggered by a mouseover event, but rather, they are displayed and iserted dynamically for each variables shown on the screen when my application goes into monitoring mode!
If I cannot not apply a tooltip to specific tokens, I would like to be able to insert a textbox next to my variables which would give me a container for my monitoring variables.
Now I know that this might only be attainable with WPF version of Syntax Editor so my question is: Can you suggest me something else i can do to monitor these variable on screen using my non WPF version of Syntax Editor? IF WPF version of syntax Editor is absolutely necessary, will it be reverse compatible with the code I have already created in my non-WPF version of Symtax Editor (intelliprompt, same events, dynamic language definition is the same etc...)?
Regards
Nassim
[Modified at 02/19/2010 03:47 PM]
[Modified at 02/22/2010 08:21 AM]
[Modified at 02/22/2010 08:21 AM]
[Modified at 02/22/2010 08:22 AM]