I have a ROOT Gui app, that uses TGToolBar.
Is it possible to compile pictures that I use in TGToolBar into the executable? It’s not a nice solution to always copy new icons into ROOT’s icon dir, especially when I copy the app to different computer.
I have a ROOT Gui app, that uses TGToolBar.
Is it possible to compile pictures that I use in TGToolBar into the executable? It’s not a nice solution to always copy new icons into ROOT’s icon dir, especially when I copy the app to different computer.
Yes, please take a look at $ROOTSYS/tutorials/gui/iconAsXPMData.C
Cheers, Bertrand.
P.S. see also this thread: http://root.cern.ch/phpBB2/viewtopic.php?t=5390
Bertrand.
I guess the trick is possible only with xpm files, no other graphics formats like png for example?