Jump to content

Strange Combo bug.


Recommended Posts

hey guys,

so i started a new script today and the oddest thing happened.

i made a combo box and it worked fine, added a label on top and the combo box will only dorp if i click on the left upper corner of the widget. any help solving this issue would be greatly apricated..

if a comment the label out the in works fine.

maybe it's a bug with the coord sys?

cheers,

Los.

;------------include---------------------------
#include <GUIConstants.au3>;include gui library
#include <file.au3>;include file library
;-------------system varibles-------------------
$toolName = "3dsStudioLuncher"
$toolversion = ".001"
$uiName = $toolName & " v" &$toolversion
;----------------GUI----------------------------
Opt("GUIOnEventMode",1);turn on event call back
Opt("GUICoordMode",0)

GUICreate($uiName,493,392)
    GUICtrlCreateLabel("Render Engine:",50,10,478,140)
    $rndrList = GUICtrlCreateCombo ("",100,-5,200,1000,BitOr($CBS_SIMPLE,$CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL))
    GUICtrlSetData ($rndrList,"VRay|Default Scanline","VRay")
GUISetState(@SW_Show)

GUISetOnEvent($GUI_EVENT_CLOSE,"CLOSEUI")
$guiOn = 1
While $guiOn
    sleep(10)
WEnd
;---------------GUI Events--------------------
func CLOSEUI()
    $guiOn = 0
endfunc

Carlos AnguianoSenior Technical Director/Pipeline EngineerRed magnet Studios Venice, CAhttp://www.redmagnetfx.com

Link to comment
Share on other sites

Your label is overlapping the combobox.

Try:

;------------include---------------------------
#include <GUIConstants.au3>;include gui library
#include <file.au3>;include file library
;-------------system varibles-------------------
$toolName = "3dsStudioLuncher"
$toolversion = ".001"
$uiName = $toolName & " v" &$toolversion
;----------------GUI----------------------------
Opt("GUIOnEventMode",1);turn on event call back
Opt("GUICoordMode",0)

GUICreate($uiName,493,392)
    GUICtrlCreateLabel("Render Engine:",50,10,100,140)
    $rndrList = GUICtrlCreateCombo ("",100,-5,200,1000,BitOr($CBS_SIMPLE,$CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL))
    GUICtrlSetData ($rndrList,"VRay|Default Scanline","VRay")
GUISetState(@SW_Show)

GUISetOnEvent($GUI_EVENT_CLOSE,"CLOSEUI")
$guiOn = 1
While $guiOn
    sleep(10)
WEnd
;---------------GUI Events--------------------
func CLOSEUI()
    $guiOn = 0
endfunc
Edited by BPBNA
Link to comment
Share on other sites

Your label is overlapping the combobox.

Try:

;------------include---------------------------
#include <GUIConstants.au3>;include gui library
#include <file.au3>;include file library
;-------------system varibles-------------------
$toolName = "3dsStudioLuncher"
$toolversion = ".001"
$uiName = $toolName & " v" &$toolversion
;----------------GUI----------------------------
Opt("GUIOnEventMode",1);turn on event call back
Opt("GUICoordMode",0)

GUICreate($uiName,493,392)
    GUICtrlCreateLabel("Render Engine:",50,10,100,140)
    $rndrList = GUICtrlCreateCombo ("",100,-5,200,1000,BitOr($CBS_SIMPLE,$CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL))
    GUICtrlSetData ($rndrList,"VRay|Default Scanline","VRay")
GUISetState(@SW_Show)

GUISetOnEvent($GUI_EVENT_CLOSE,"CLOSEUI")
$guiOn = 1
While $guiOn
    sleep(10)
WEnd
;---------------GUI Events--------------------
func CLOSEUI()
    $guiOn = 0
endfunc
you are totaly right dude,

thanks for your help man......

cheers,

Los.

Carlos AnguianoSenior Technical Director/Pipeline EngineerRed magnet Studios Venice, CAhttp://www.redmagnetfx.com

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...