Message 1 of 5
Adding a Toolbar
Not applicable
01-06-2010
12:58 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm writing a function for AutoCAD that needs a button to run the command. Most of it works, but the button just puts the command text in the command line and does not run it (no enter). I've tried the space recommended by the help sites, but it doesn't change anything. How do I make it work without having to go into the command line and hit enter? Here are the things I've tried:
loadPostButton = newToolBar.AddToolbarButton(0, "LoadPost", "Operations and Posting", "LoadPost")
loadPostButton = newToolBar.AddToolbarButton(0, "LoadPost", "Operations and Posting", "LoadPost" & " ")
loadPostButton = newToolBar.AddToolbarButton(0, "LoadPost", "Operations and Posting", "LoadPost\n")
loadPostButton = newToolBar.AddToolbarButton(0, "LoadPost", "Operations and Posting", "LoadPost ")
loadPostButton = newToolBar.AddToolbarButton(0, "LoadPost", "Operations and Posting", "LoadPost;") Edited by: vampirefromtheitcave2 on Jan 6, 2010 9:15 PM
loadPostButton = newToolBar.AddToolbarButton(0, "LoadPost", "Operations and Posting", "LoadPost")
loadPostButton = newToolBar.AddToolbarButton(0, "LoadPost", "Operations and Posting", "LoadPost" & " ")
loadPostButton = newToolBar.AddToolbarButton(0, "LoadPost", "Operations and Posting", "LoadPost\n")
loadPostButton = newToolBar.AddToolbarButton(0, "LoadPost", "Operations and Posting", "LoadPost ")
loadPostButton = newToolBar.AddToolbarButton(0, "LoadPost", "Operations and Posting", "LoadPost;") Edited by: vampirefromtheitcave2 on Jan 6, 2010 9:15 PM