Sign in to follow this  
Followers 0
HighGuy

ReBar gets disorganized after minimizing and restoring GUI

2 posts in this topic

Hi,

if I'm using the help example of GUICtrlRebar_Create() the input control gets disorganized after minimizing and restoring the GUI (I'm using v3.3.6.0 on Windows XP). Can someone please confirm this behavior or is it only a problem of my pc.

Thanks,

HighGuy

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

The example script is wrong (same problem on Vista SP2 32bit with 3.3.6.1). Here's are the fixes to the example script in the help file under _GUICtrlRebar_Create():

#include <GuiEdit.au3>

; ...

Func _Main()

    ; ...

    ; create a input box to put in the rebar
    ; $hInput = GUICtrlCreateInput("Input control", 0, 0, 120, 20)
    $hInput = _GUICtrlEdit_Create($hgui, "Input control", 0, 0, 120, 20)

    ; ...

    ;add another control
    ; _GUICtrlReBar_AddBand($hReBar, GUICtrlGetHandle($hInput), 120, 200, "Name:")
    _GUICtrlRebar_AddBand($hReBar, $hInput, 120, 200, "Name:")

    ; ...

EndFunc   ;==>_Main

Basically, use UDF _GuiCtrlEdit* vice the native AutoIt Input control.

:idea:

Edit: Added BugTrac #1580 to document the fix.

Edited by PsaltyDS

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

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