ludocus Posted April 19, 2008 Share Posted April 19, 2008 (edited) How do I make a toolbar with my own images?????? I just can't get it.. I have this: (part of code) $runescape_gui = GUICreate("Runescape Client RsH", 800, 600, 0, 0, $WS_MAXIMIZEBOX+$WS_SYSMENU+$WS_MINIMIZEBOX) $hToolbar = _GUICtrlToolbar_Create ($runescape_gui) $aSize = _GUICtrlToolbar_GetMaxSize ($hToolbar) ;GUIRegisterMsg($WM_NOTIFY, "_WM_NOTIFY") ; Add standard system bitmaps _GUIImageList_AddBitmap ( $hToolbar, 'C:\Documents and Settings\Ludo\Bureaublad\Back.bmp' ) _GUICtrlToolbar_AddBitmap ($hToolbar, 1, -1, $IDB_STD_LARGE_COLOR) ;) ; Add buttons _GUICtrlToolbar_AddButton ($hToolbar, 1, 'C:\Documents and Settings\Ludo\Bureaublad\Back.bmp') _GUICtrlToolbar_AddButton ($hToolbar, $idOpen, $STD_FILEOPEN) _GUICtrlToolbar_AddButton ($hToolbar, $idSave, $STD_FILESAVE) _GUICtrlToolbar_AddButtonSep ($hToolbar) _GUICtrlToolbar_AddButton ($hToolbar, $idHelp, $STD_HELP) but I can't get my own images...... help please?? thnx, ludocus Edited April 19, 2008 by ludocus Link to comment Share on other sites More sharing options...
ludocus Posted April 19, 2008 Author Share Posted April 19, 2008 anybody? Link to comment Share on other sites More sharing options...
Kip Posted April 19, 2008 Share Posted April 19, 2008 You were close, just not close enough #include <GuiToolbar.au3> $runescape_gui = GUICreate("Runescape Client RsH", 800, 600, 0, 0, $WS_MAXIMIZEBOX+$WS_SYSMENU+$WS_MINIMIZEBOX) $hToolbar = _GUICtrlToolbar_Create ($runescape_gui) $Bitmap = _GUICtrlToolbar_LoadBitmap($hToolbar,"Test.bmp") _GUICtrlToolbar_AddButton ($hToolbar, $Bitmap, 0) GUISetState() While 1 WEnd MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API. Link to comment Share on other sites More sharing options...
Zedna Posted April 19, 2008 Share Posted April 19, 2008 Just search forum:http://www.autoitscript.com/forum/index.ph...st&p=446320http://www.autoitscript.com/forum/index.ph...st&p=446629 Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
ludocus Posted April 19, 2008 Author Share Posted April 19, 2008 thnx it works, But I don't get the holl picture. How can I make the button bigger? 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