Jump to content

ReBar gets disorganized after minimizing and restoring GUI


HighGuy
 Share

Recommended Posts

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

Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...