Skip to main content

Context Sensitive

6 replies [Last post]
vajra.mental
Offline
Joined: 2006-02-17
Points: 0

hiz..

can anyone teach me how should i start with context sensitive help?

i have already read through the help user guide

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Juan Daniel Riveros

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:

mainHelpBroker.enableHelpKey(rootpane,
, null);

and then throughout your application you set the help id for each component using the CSH:

CSH.setHelpIDString(aComponent, );

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.

Good look.

Juan Daniel Riveros

-----Mensaje original-----
De: Discussion list of JavaHelp
[mailto:JAVAHELP-INTEREST@JAVA.SUN.COM]En nombre de
java-help@JAVADESKTOP.ORG
Enviado el: Thursday, October 02, 2003 9:17 PM
Para: JAVAHELP-INTEREST@JAVA.SUN.COM
Asunto: [JAVAHELP] Context Sensitive

hiz..

can anyone teach me how should i start with context sensitive help?

i have already read through the help user guide

********************************************************************************

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.

********************************************************************************

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.

vajra.mental
Offline
Joined: 2006-02-17
Points: 0

hi guyz.
thankz alot.

now i have this problem. how do i track everytime F1"vk_f1" is pressed???

thankz alot for the help

vajra.mental

Roger Brinkley

> 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
does).

Binky

********************************************************************************

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.

Michael M�ller-Hillebrand

On 02.10.2003 (22:16 Uhr -0400), java-help@JAVADESKTOP.ORG wrote:

>hiz..
>
>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

- Michael
--
_____________________________________________________________
Dipl.-Ing. Michael M�ller-Hillebrand
������������������������������������
"Mehr Effizienz f�r Wissensarbeiter" --> http://cap-studio.de

********************************************************************************

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.

Roger Brinkley

java-help@JAVADESKTOP.ORG wrote:
> hiz..
>
> 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.

Binky

********************************************************************************

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.

vajra.mental
Offline
Joined: 2006-02-17
Points: 0

thankz alot for any help..
cheers..

vajra.mental