
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!
I was wondering 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 formatting of 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 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 my variables.
Is this easily attainable? If so, can you help me out by guiding me a little in the first steps?
Regards
Nassim
[Modified at 12/19/2011 02:38 PM]
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!
I was wondering 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 formatting of 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 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 my variables.
Is this easily attainable? If so, can you help me out by guiding me a little in the first steps?
Regards
Nassim
[Modified at 12/19/2011 02:38 PM]