dantay9 Posted February 24, 2009 Share Posted February 24, 2009 (edited) I am making a toolbar style rebar but I can't get the button positioned far enough to the left. I need a separate rebar because I am planning on using the system images for the first rebar and my custom images for the second rebar. Is there any way to move the button over or add a button with my own image to the existing toolbar while keeping the existing button images there? $hReBar = _GUICtrlRebar_Create($NOTEPAD, $CCS_TOP) $Toolbar = _GUICtrlToolbar_Create($NOTEPAD) _GUICtrlToolbar_AddBitmap($Toolbar, 1, -1, $IDB_STD_SMALL_COLOR) _GUICtrlToolbar_AddButton($Toolbar, $ID1, $STD_FILENEW) _GUICtrlToolbar_AddButton($Toolbar, $ID2, $STD_FILEOPEN) _GUICtrlToolbar_AddButton($Toolbar, $ID3, $STD_FILESAVE) _GUICtrlToolbar_AddButtonSep($Toolbar) _GUICtrlToolbar_AddButton($Toolbar, $ID4, $STD_PRINT) _GUICtrlToolbar_AddButtonSep($Toolbar) _GUICtrlToolbar_AddButton($Toolbar, $ID5, $STD_CUT) _GUICtrlToolbar_AddButton($Toolbar, $ID6, $STD_COPY) _GUICtrlToolbar_AddButton($Toolbar, $ID7, $STD_PASTE) _GUICtrlToolbar_AddButtonSep($Toolbar) _GUICtrlToolbar_AddButton($Toolbar, $ID8, $STD_UNDO) _GUICtrlToolbar_AddButton($Toolbar, $ID9, $STD_REDOW) _GUICtrlToolbar_AddButton($Toolbar, $ID10, -2) ;~ GUIRegisterMsg($WM_NOTIFY, "_WM_NOTIFY") _GUICtrlRebar_AddToolBarBand($hReBar, $Toolbar, "", 0) $Button = _GUICtrlButton_Create($hReBar, "Text", 200, 0, 16, 16) _GUICtrlRebar_AddBand($hReBar, $Button, 50) Edited February 24, 2009 by dantay9 Link to comment Share on other sites More sharing options...
dantay9 Posted February 24, 2009 Author Share Posted February 24, 2009 Nobody knows? Link to comment Share on other sites More sharing options...
dantay9 Posted February 24, 2009 Author Share Posted February 24, 2009 *Bump* I know someone knows. Is there anyway I can simulate this effect in a different way? 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