Dowido Posted December 12, 2008 Posted December 12, 2008 hello forum I wrote a script that creats 2 inputs in a childwindow expandcollapse popup#include <GUIConstants.au3> #include <WindowsConstants.au3> Opt("GUIOnEventMode", 1) ; Change to OnEvent mode Global $width=500, $height=500, $titel="Tabtest in Childwindow" ; create the parentwindow $mainwindow = GUICreate($titel, $width, $height, -1, -1) GUISetBkColor(0x00ffff) ; show the parentwindow GUISetState(@SW_SHOW,$mainwindow) ; check on screen sleep(1000) ; create the childwindow $childwindo = GUICreate("child",$width,$height,0,0,$WS_CHILD,-1,$mainwindow) GUISetBkColor(0xff0000) ; show the childwindow GUISetState(@SW_SHOW,$childwindo) $input_1 = GUICtrlCreateInput("111",10,10) $input_2 = GUICtrlCreateInput("222",10,40) ; register close GUISetOnEvent($GUI_EVENT_CLOSE, "close_it",$mainwindow) ;loop While 1 Sleep(100) ; Idle around WEnd Func close_it() ; exit application GUIDelete($mainwindow) exit EndFuncoÝ÷ ÚØ^¦ºé¢²ØZ¶'z-ºÇëZnG²¶h ^mëpyéíëp¢)éºÛ"~*ÞÞ¶¥w¬jëh×6$childwindo = GUICreate("child",$width,$height,0,0,$WS_CHILD,-1,$mainwindow) GUISetBkColor(0xff0000) GUISetState(@SW_SHOW,$childwindo) (inputs in mainwindow) the tabbing works fine. what is wrong? thank you! dowido
ProgAndy Posted December 12, 2008 Posted December 12, 2008 Your child window needs the ex-style $WS_EX_CONTROLPARENT $childwindo = GUICreate("child",$width,$height,0,0,$WS_CHILD,$WS_EX_CONTROLPARENT,$mainwindow) *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes
Dowido Posted December 12, 2008 Author Posted December 12, 2008 Your child window needs the ex-style $WS_EX_CONTROLPARENT $childwindo = GUICreate("child",$width,$height,0,0,$WS_CHILD,$WS_EX_CONTROLPARENT,$mainwindow) YOU MADE MY DAY ProgAndy!!!! Thanks Dowido
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