Hey People...
I first posted the Radial-Menu in this Thread:
http://www.theswamp.org/index.php?topic=12813.msg521952#msg521952Since then I improved the functionality to add following stuff:
* last command will be stored in the function itself
- can be called
- by pressing ENTER or SPACE
- LEFT-Click in the Center or the free Space below
* different shortcuts for "right-action" and "left-action"
* as ShortCuts strings can be used
- first the UpperCase Chars are searched
(wcmatch "shortcut" (strcase "*typed*"))
- then the whole sting is searched
(eq (strcase "shortcut") (strcase "typed"))
Note:
To find a proper shortcut, the entries are searched counterclockwise.
If there is a SubMenu then this one will be searched right after the parentMenu.
* If there is a SubMenu and no proper command for the current action (Ex. RIGHTCLICK) the SubMenu will be display at it own.
* To open a SubMenu at his own, u can also press TAB while pointing the ParentMenu-Entry
* To switch back to the last shown ParentMenu point at the center or the free Space below and Press TAB or RIGHTCLICK.
--------------------------------------------------------
At the moment there are 2 Versions:
-
RadialMenu-allVectors.lsp - the displayed Menu is made from vectors and drawn with grvecs
-
RadialMenu-titleMtext.lsp - the displayed Menu is made from vectors and drawn with grvecs
- the title (name of the current pointed Menu-Entry) is drawn using MText
NOTE: if the View is rotated with 3D-Orbit the Mtext isn't shown in the right direction
To modify the Menu at ur own look at the 2 examples and the Tree-Map in the attachment.
To draw symbols at ur own:
* draw a line graphic near the origin of the WCS.
* the origin (0 0 0) will be the Center of the symbol/graphic shown in the Menu.
* the maximal Extension of the graphic should be near 1
* to add colors use the object color (GC 62)
* then run
CreateSymbol.lsp and select the lines
* copy the result and add it to ur menu
Usage: (prepared)
- load
RadialMenu-***.lsp - load
ModifyDraw.lsp - type:
Interface - hit ENTER
EDIT
LAST VERSION:http://www.theswamp.org/index.php?topic=47177.msg522549#msg522549reltro