Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Control Sensitive Help via Custom Help Method
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00018995
Message ID:
00019009
Views:
28
>New idea
>
>Instead of having context sensitive help which simply detects what form or page you are on (much similar to the old 2.6 read concepts) what about a control sensitive help that could actually tell what control is active and give the appropriate help information.
>
>This is acutally easier to do than you might think. Here is the key
>
>on key label thisformset.thisform.activecontrol().help
>
>where each control has a custom method called help
>
>Now in the help method you either
>
>set topic to topic12 (for old style help)
>
>or
>
>_topic='topic12' etc
>do form myhelp.scx
>
>Now whenever you hit help or f1 the help for the active control will fire.
>
>This is a coarse outline of the idea of course, but as always opinions welcomed.


Todd, Am I missing something? Why don't you use the HelpContextID that is attached to each control already? This value is already passed by the F1 help key. In fact if it doesn't find a value >0 on the active control it looks up the object hierarchy until it finds one.

Barbara
Barbara Paltiel, Paltiel Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform