![]() |
| The AccuTerm forum has moved. Go to community.rocketsoftware.com to register for the new Rocket forum. |
|
Post Reply
|
| Author | |
crubeor
Newbie
Joined: November 07 2008 Status: Offline Points: 6 |
Post Options
Thanks(0)
Quote Reply
Topic: Action field in custom menuPosted: September 30 2015 at 1:21pm |
|
The short version of the question - is it possible to run a gui program from a new menu item?
Long version of the question. I've created a number of gui programs that the users kick off by entering a command at some point in the application. i.e., they enter "Fred" from the Invoice screen to get to one particular gui, or they may enter "Barney" at one of the menus to get to another. They also have a bunch of tcl commands to kick off certain other gui programs. In order to make life simpler, I would like to add a custom menu item, "Slate", just to the right of the Help Menu, using the menu customization tool. That much I've already done. Now, I just to need to add menu items and specify an ACTION which will kick off a gui program. For example, how can I run the PRINT.INVOICE gui when the user clicks on "Slate", then "Print Invoice".
|
|
![]() |
|
PSchellenbach
Admin Group
Moderator Joined: December 15 2003 Location: United States Status: Offline Points: 2150 |
Post Options
Thanks(0)
Quote Reply
Posted: September 30 2015 at 3:29pm |
|
Hi Charlie -
You can certainly create a menu item with an action that sends the string "Fred" followed by a CR to the host. The problem is, how can you tell if the program running on the host will recognize the string "Fred" and fire off the desired GUI? The WED Editor and GUI Designer toolbar buttons employ a little trick and try to determine if the session is at TCL. Before launching the WED or GED programs on the host, the send the string "FTTCL" followed by a CR, and look for the response "**TCL**", and if the correct response is recognized then they send the string "WED" or "GED" followed by a CR. So, if you have complete control over the state of the program on the host, and can guarantee that when the string "Fred" is entered in any field, the program thats currently running will fire off your GUI program, then your job is easy. On the other hand, if you need to determine what the state of the running program is, possibly send it inputs to get to the correct state, then start your GUI program, then its going to be much more difficult. Hope that makes sense. Thanks, Pete |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |