Partial Menu question:

BillZ

Usenet Archive
Joined
Jul 9, 2003
Messages
1,001
Reaction score
0
R14 Autolisp:
Two questions about a program I'm building.
1.) When I use menuunload to unload the previous toolbar menu and menuload to load it, the toolbar is "hidden" and I have to right click on a toolbar and turn it "on". It just started doing this as it worked fine the first several times I used it. (write-line "ID_LAYERS_DISPLAY_0 [_Toolbar(\"LAYERS_DISPLAY\", _Floating, _Show, 100, 300, 1)]" mfl) This is the line that defines the toolbar. Am I missing something here?
2.)How do I embed the newline character when I need double quotes? (princ \" \n Layer list string too long.\") , this does *not* work, neither does: (princ \" \\n Layer list string too long.\")
TIA

Bill
 
The toolbar problem appears to be when the toolbar is "hidden" when I exit the dwg, from then on, when I create the new toolbar, it comes up as hidden, even though I have un-hided it before creating the new one. In other words if I un-hide it, and leave autocad and restart autocad, then all is well again.

Bill
 
PF,
Place it in "where"?

>>You've found the Show command... place it in there ... as one of the last commands (in LISP, of course).<<<   

Bill
 
I use the Menu.MNL file to force startup conditions...

You've found the Show command... place it in there ... as one of the last commands (in LISP, of course).
 
(Sorry you needed to wait for me to return)
Place you SHOW command in an MNL file...

ACAD.MNC + ACAD.MNL
MY-MENU.MNC + MY-MENU.MNL

When they travel in pairs... the MENU loads... then it runs the MNL... just build a LSP file and rename it to *.MNL.
 

Latest threads

Back
Top