Many thanks to zigbert for the direction to make it possible and many others for all the help.
A data script can contain and run many different popmenus. There can be many data scripts.
The script has event action functions, the popmenu button items list, and 7 variables ( so far...).
Many of these popmenu groups of data can be in the one script allowing many different menus.
The script runs another script with the shell code and the gtkdialog code for the popmenu.
The data script variables do: Center Screen, Dock Left or Right, and Show Over the main GUI,
TreeBox text Header or not, and Window Decorated ( border and title bar ) or not.
There`s 4 other variables: popW, popH, and offX, offY. This is all that`s needed to control it.
Here`s a section of the data script that defines one popmenu:
Code: Select all
DM1)
ROX() { echo ROX
} ; export -f ROX
Mount() { echo Mount
} ; export -f Mount
Exit_App() { echo Exit_App.
} ; export -f Exit_App
Exit_Menu() { echo Exit_Menu
} ; export -f Exit_Menu
MENU_ITEMS='
ROX
Mount
Exit_App
'
#WINDECO=true
WINDECO=false
POSITION=over
#POSITION=dock
#POSITION=center
HEADER=
popW=102
popH=188
offX=10 # for "over" offset positioning
offY=29
;;
Compared to wrestling with the gtkdialog code, this is really simple!
### Usage: (popmenu file: /path/file) (popmenu ID) [calling app. Xwin. title] [context item]