T.R | Title | User | Personal Name | Date | Lines |
---|
1288.1 | Example from DECterm | HANNAH::MESSENGER | Bob Messenger | Wed Aug 16 1989 14:03 | 22 |
| Re:.0
In UIL you specify a help callback, e.g.
callbacks
{
help = procedure cs_help_cb( menu_cs_help );
};
Where "cs_help_cb" is a routine invoked for context sensitive help (i.e. when
the user holds down the Help key and clicks MB1), and menu_cs_help is a
parameter passed to that routine; in this case the parameter was declared
earlier in the UIL file:
value
menu_cs_help : compound_string( 'Menu_Bar' );
If you're using the low level widget interface, set the helpCallback resource
to your help callback routine.
-- Bob
|
1288.2 | not yet solved | EIGER::MITEVSKI | A 'Special' day | Thu Aug 17 1989 04:32 | 21 |
| Thanks Bob
I still can't get the 'HelpButton down and click MB1' thing to work.
There is no reaction to this combination. What I do is:
object
field_3 : simple_text {
...
...
callbacks { help = procedure set_list_box_values(k_field_1);
};
};
In set_list_box_values I, depending on the tag, display items in
a list_box (DwtListBoxAddItems).
Where am I going wrong ... (or are there special Helpbuttons) ?
Goran
|
1288.3 | a suggestion | 4GL::SCAER | | Thu Aug 17 1989 13:39 | 6 |
|
If there are a limited number of choices to be entered in the
simple text widget you could replace it with an option menu.
That would keep the user from having to guess at the choices
or ask for help.
|
1288.4 | Hmm... Maybe you should post the callback routine | HANNAH::MESSENGER | Bob Messenger | Thu Aug 17 1989 17:34 | 7 |
| Re: .2
Your UIL code looks OK. When you press the Help key and ckick MB1, does the
help callback get called at all (a breakpoint or printf would be helpful)?
-- Bob
|
1288.5 | if I only ... | EIGER::MITEVSKI | A 'Special' day | Fri Aug 18 1989 10:14 | 18 |
| I'm so sorry
it DOES work, (if you do it right). The callback routine didn't
get invoked at all. Well I got into this field by TAB so the
simple_text widget got focus, then I pressed the help key and clicked
MB1 and nothing happened.
Shame on me ... I didn't realize that my mouse pointer was somewhere
out there in the wild world of the screen and did not point to my
simple_text widget.
Thanks for all your help on help
Goran_who_would_prefer_focus_to_point_in_such_cases_to_the_widget
|