R
Ray Cassick \(Home\)
Has anyone here used this control in their own product at all?
I am very interested in some sample code that shows how to implement a
folding strategy so I can do code regions in my custom language.
I know how to use the folding manager to get code segments to fold up into
collapsible regions but I cannot figure out how to know when a user enters
in a line that I want to setup as a foldable bit of code. I have a construct
in my script language defined as RuleSets and these are delimited by the
opening keyword '#RuleSet'. When someone types that word and hit enter I
would like to add in the corresponding '#EndRuleSet' and then set folding up
between these lines automatically.
My big problem is that I cannot seem to get any type of key events out of
that control so I have no idea how I am supposed to trigger anything when
the user it typing.
I am very interested in some sample code that shows how to implement a
folding strategy so I can do code regions in my custom language.
I know how to use the folding manager to get code segments to fold up into
collapsible regions but I cannot figure out how to know when a user enters
in a line that I want to setup as a foldable bit of code. I have a construct
in my script language defined as RuleSets and these are delimited by the
opening keyword '#RuleSet'. When someone types that word and hit enter I
would like to add in the corresponding '#EndRuleSet' and then set folding up
between these lines automatically.
My big problem is that I cannot seem to get any type of key events out of
that control so I have no idea how I am supposed to trigger anything when
the user it typing.