RE: Menu Buttons
"Jean Gidcumb" <[email protected]> Fri, 28 Jul 2006 09:16:44 -0400
| Newsgroups | gmane.comp.lang.4gl.fourjs.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Ruben, No, you are the first one to respond. What I need to be able to do is call a function that selects program information from a table for the program to be executed when the button is clicked and display it to a window. I don't know if this would accomplish what I am after unless I could get the data and then format it into a string to manipulate the comment. The only problem I can see with this is that the user would see this everytime the mouse hovered over the button. Currently we do an F9 on the menu option to display this information. Thank you for the suggestion, Jean ________________________________ From: [email protected] [mailto:[email protected]] On Behalf Of 4jsmaillist (reuben) Sent: Friday, July 28, 2006 5:11 AM To: [email protected] Subject: RE: [fourjs-users] Menu Buttons Jean, Did you ever get a response to this. An approach you could take is to use DOM manipulation to alter the comment attribute of the bt1, bt2, bt3 etc action so that when the user hovers the mouse over the button the comment appears that would give the user the information you want. Reuben -----Original Message----- From: [email protected] [mailto:[email protected]]On Behalf Of Jean Gidcumb Sent: Friday, 21 July 2006 6:32 a.m. To: [email protected] Subject: [fourjs-users] Menu Buttons Hi, I am working on changing our application menu from an input array to buttons on a form. One thing I have done is to create a form with the following: BUTTON aa0 : bt1, TEXT="None", SIZEPOLICY=fixed; BUTTON aa1 : bt2, TEXT="None", SIZEPOLICY=fixed; BUTTON aa2 : bt3, TEXT="None", SIZEPOLICY=fixed; Then I created a function with a menu, see the code below. I am hiding buttons that are not being used. This works fine, when I click on a button it allows me to got the next menu options or select a program to run. In the current program there is a function that when you press "F9" a window displays showing the program information, name, path, etc. Is there a way I set the focus on the Button, so if a user right clicks on the button that the program window will be displayed. Or is there another approach to this problem? Thanks, Jean Gidcumb MENU "BUTTON" BEFORE MENU LET i = 1 FOR i = 1 to 15 LET l_button = "bt" LET i_char = i LET l_button = l_button clipped,i_char clipped CALL unhide_button(l_button) END FOR IF p_total_options < 15 THEN LET i = p_total_options + 1 FOR j = i to 15 LET l_button = "bt" LET i_char = j LET l_button = l_button clipped,i_char clipped CALL hide_button(l_button) END FOR END IF COMMAND "bt1" LET p_selection = ga_menu[1].option_name EXIT MENU COMMAND "bt2" LET p_selection = ga_menu[2].option_name EXIT MENU COMMAND "bt3" LET p_selection = ga_menu[3].option_name EXIT MENU END MENU