Is it possible to create a icon toolbar button that works like a state button (on/off). Something that can change its appearance to 'pressed' (on) or 'released'(off). Regards Rakesh -- -- - Rakesh Rao [ rakesh.rao (at)4d-technologies.com ] - Four Dimension Technologies [www.4d-technologies.com] - Get GeoTools, Work smarter: www.4d-technologies.com/geotools - Free Lisp downloads @ TechCenter: www.4d-technologies.com/techcenter
There's no way to change the appearance of a toolbar button dynamically like this without rebuilding the menu each time. Dave
"There's no way to change the appearance of a toolbar button dynamically like this without rebuilding the menu each time." Really? then why does this work? ;-) (setq menus(vlax-get(vlax-get-acad-object)'menugroups) menu(vlax-invoke menus 'item "acad") toolbars(vlax-get menu 'toolbars) toolbar(vlax-invoke toolbars 'item "layers") button(vlax-invoke toolbar 'item "Layer Properties Manager")) ;change to the ai_molc (vla-setbitmaps button "RCDATA_16_MOLC" "RCDATA_16_MOLC") ;change back (vla-setbitmaps button "RCDATA_16_LAYERS" "RCDATA_16_LAYERS") jb