Sign in to follow this  
Followers 0
dantay9

Rebar/Toolbar Position

3 posts in this topic

#1 ·  Posted (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 by dantay9

[font="Verdana"] [size="2"]"[/size][/font]Failure is not an option -- it comes packaged with Windows"[font="Verdana"][size="2"] Gecko Web Browser[/size][/font][font="Verdana"][size="2"], [/size][/font][font="Verdana"][size="2"]Yahtzee![/size][/font][font="Verdana"][size="2"], Toolbar Launcher (like RocketDock)[/size][/font][font="Verdana"][size="2"]Internet Blocker, Simple Calculator, Local Weather, Easy GDI+ GUI [/size][/font][font="Verdana"][size="2"]Triangle Solver, TCP File Transfer, [/size][/font][font="Verdana"][size="2"]Valuater's Autoit Wrappers[/size][/font][font="Verdana"][size="3"][size="2"][size="2"]OOP In AutoIt[/size][/size][/size][/font][font="Verdana"][size="2"][size="1"]Using Windows XP SP3, 1GB RAM, AMD Athlon Processor @ 2.1 GHzCheck me out at gadgets.freehostrocket.com[/size][/size][/font]

Share this post


Link to post
Share on other sites



Nobody knows?


[font="Verdana"] [size="2"]"[/size][/font]Failure is not an option -- it comes packaged with Windows"[font="Verdana"][size="2"] Gecko Web Browser[/size][/font][font="Verdana"][size="2"], [/size][/font][font="Verdana"][size="2"]Yahtzee![/size][/font][font="Verdana"][size="2"], Toolbar Launcher (like RocketDock)[/size][/font][font="Verdana"][size="2"]Internet Blocker, Simple Calculator, Local Weather, Easy GDI+ GUI [/size][/font][font="Verdana"][size="2"]Triangle Solver, TCP File Transfer, [/size][/font][font="Verdana"][size="2"]Valuater's Autoit Wrappers[/size][/font][font="Verdana"][size="3"][size="2"][size="2"]OOP In AutoIt[/size][/size][/size][/font][font="Verdana"][size="2"][size="1"]Using Windows XP SP3, 1GB RAM, AMD Athlon Processor @ 2.1 GHzCheck me out at gadgets.freehostrocket.com[/size][/size][/font]

Share this post


Link to post
Share on other sites

*Bump*

I know someone knows. Is there anyway I can simulate this effect in a different way?


[font="Verdana"] [size="2"]"[/size][/font]Failure is not an option -- it comes packaged with Windows"[font="Verdana"][size="2"] Gecko Web Browser[/size][/font][font="Verdana"][size="2"], [/size][/font][font="Verdana"][size="2"]Yahtzee![/size][/font][font="Verdana"][size="2"], Toolbar Launcher (like RocketDock)[/size][/font][font="Verdana"][size="2"]Internet Blocker, Simple Calculator, Local Weather, Easy GDI+ GUI [/size][/font][font="Verdana"][size="2"]Triangle Solver, TCP File Transfer, [/size][/font][font="Verdana"][size="2"]Valuater's Autoit Wrappers[/size][/font][font="Verdana"][size="3"][size="2"][size="2"]OOP In AutoIt[/size][/size][/size][/font][font="Verdana"][size="2"][size="1"]Using Windows XP SP3, 1GB RAM, AMD Athlon Processor @ 2.1 GHzCheck me out at gadgets.freehostrocket.com[/size][/size][/font]

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0