can anyone teach me how should i start with context sensitive help?
i have already read through the help user guide
What I did was a very simple thing.
After you create de help broker all you have to do is set the helpKey, so your context sensitive help initiates with the F1 key, to do that you have to use the next sentence:
and then throughout your application you set the help id for each component using the CSH:
You can get the helpIdString from the map file.
With this what happens is that whenever you press the F1 key the application locates the focused component and checks the help Id, if it doesnï¿½t find it then it searches the parent of the component to see if it has a helpId set and so on throug the hierarchy until it finds a component with a helpId. If it doesn't find any component with a helpId it utilizes the Id that was set on the EnableHelpKey method.
Hope this helps, it's pretty easy.
Juan Daniel Riveros
De: Discussion list of JavaHelp
[mailto:JAVAHELP-INTEREST@JAVA.SUN.COM]En nombre de
Enviado el: Thursday, October 02, 2003 9:17 PM
Asunto: [JAVAHELP] Context Sensitive
You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
now i have this problem. how do i track everytime F1"vk_f1" is pressed???
thankz alot for the help
> how do i track everytime F1"vk_f1" is pressed???
Track F1 or have F1 activate online help.
Activating F1 help is accomplished by calling the method
HelpBroker.enableHelpKey (see the JHUG for more details).
Tracking F1 would require you to write a KeyListener and keep track of
when the F1 or Help key was pressed (essentially what hb.enableHelpKey
On 02.10.2003 (22:16 Uhr -0400), java-help@JAVADESKTOP.ORG wrote:
>can anyone teach me how should i start with context sensitive help?
>i have already read through the help user guide
Luckily, it is quite simple:
Add your help ids to the map file. For every Help id you create an entry pointing to the url you want to open. An example:
... all your table of contents mapIDs ...
... all your Index mapIDs
Dipl.-Ing. Michael Mï¿½ller-Hillebrand
"Mehr Effizienz fï¿½r Wissensarbeiter" --> http://cap-studio.de
> can anyone teach me how should i start with context sensitive help?
> i have already read through the help user guide
Look at the idedemo. It's full of a variety of context sensitive help
demos. Use it along with the JHUG.
thankz alot for any help..
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.