dantay9 Posted February 22, 2009 Share Posted February 22, 2009 I am trying to make a customized toolbar. I have tried to combine the standard in $IDB_STD_LARGE_COLOR with my own icons, but it didn't work. If that is possible, how? Also, if I knew where the icons in $IDB_STD_LARGE_COLOR came from, I could make my own image list. Do the icons come from just shell32.dll? Link to comment Share on other sites More sharing options...
Ealric Posted February 22, 2009 Share Posted February 22, 2009 (edited) I am trying to make a customized toolbar. I have tried to combine the standard in $IDB_STD_LARGE_COLOR with my own icons, but it didn't work. If that is possible, how? Also, if I knew where the icons in $IDB_STD_LARGE_COLOR came from, I could make my own image list. Do the icons come from just shell32.dll? See _GUICtrlToolbar_AddBitmap in the Help File under the UDF section. $IDB_STD_LARGE_COLOR refers to the large standard system bitmaps on your system. You can add your own resources by doing something similar: $hGUI = GUICreate("Toolbar", 400, 300) $custombmp = "test.bmp" ; location to resource $hToolbar = _GUICtrlToolbar_Create ($hGUI) $Bitmap = _GUICtrlToolbar_LoadBitmap($hToolbar,$custombmp) _GUICtrlToolbar_AddButton ($hToolbar, $Bitmap, 0) As for combining the images on the toolbars, I haven't tested it out but you could try using BitOr($IDB_STD_LARGE_COLOR,$custombmp) and add buttons for both. Again, I have not tried doing this with this particular function. Edit: Also, GaryFrost and Valuator are very good with Toolbars. I'm certain one of them could expand or elaborate on this further. Edited February 22, 2009 by Ealric My Projects: [topic="89413"]GoogleHack Search[/topic], [topic="67095"]Swiss File Knife GUI[/topic], [topic="69072"]Mouse Location Pointer[/topic], [topic="86040"]Standard Deviation Calculator[/topic] Link to comment Share on other sites More sharing options...
dantay9 Posted February 23, 2009 Author Share Posted February 23, 2009 The bitor doesn't work. I'll ask Gary. Thanks for trying, though. Link to comment Share on other sites More sharing options...
BrettF Posted February 23, 2009 Share Posted February 23, 2009 BitOr won't work, its pointless in this case. Take a close look at _GUICtrlToolbar_AddBitmap in the helpfile... The example there should be what you need? Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
dantay9 Posted February 23, 2009 Author Share Posted February 23, 2009 From what I can see, either I use all my own images or all system images. Link to comment Share on other sites More sharing options...
Bert Posted February 23, 2009 Share Posted February 23, 2009 Take a look at the SciTE toolbar. There is a link in my signature. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
dantay9 Posted February 23, 2009 Author Share Posted February 23, 2009 Nice! That's what I am looking for. Thanks a bunch! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now