ddeerr Posted August 16, 2006 Posted August 16, 2006 Hi, I have a problem with guictrlcreate i guess. i used 3.2.0.1 version and this program was did with bet 3.1.1 version. THe problem is that the are no error but when the windows is created tab are availables but the items in are not visible. Their 2 tab and if i switch by clicking between them then the butons appears ? It is just a func if they're variable undeclared that because they're global don't worry. do you now why it is strange o test it and guictrlgetstate don't help me. Func creationDesFonctionnalites() Local $ctrlEnsembleOnglets, $ctrlOngletReuters, $ctrlOngletORS $ctrlEnsembleOnglets = GUICtrlCreateTab(183, 10, 483, 320) GUICtrlCreateGroup("", 193, 36, 460, 280) If $ctrlEnsembleOnglets <> 0 Then $ctrlOngletReuters = GUICtrlCreateTabItem(".REUTERS.") If $ctrlOngletReuters <> 0 Then $ctrlBtnChkUsrReg = GUICtrlCreateButton("vérifier le user.reg", 213, 60, 100, 30) $ctrlBtnRstChk = GUICtrlCreateButton("annuler verif", 213, 100, 99, 15) GUICtrlCreateGroup("", 333, 54, 300, 245) $lgf = GUICtrlCreateLabel("login du fichier", 353, 64) $loginInput = GUICtrlCreateInput("", 353, 80, 138, 21) $lrl = GUICtrlCreateLabel("remplacez par le nouveau login (cinq caractères max)", 353, 102) $okEdit = GUICtrlCreateButton("modifier", 353, 121, 68, 21) ;MsgBox(0, "", String(GUICtrlGetState($okEdit))) ;If GUICtrlGetState($okEdit) = $GUI_ENABLE Then GUICtrlSetState($okEdit, $GUI_SHOW) EndIf $ctrlOngletORS = GUICtrlCreateTabItem("...ORS...") If $ctrlOngletORS <> 0 Then $ctrlOngletORS = GUICtrlCreateButton("vérifier le user.reg", 253, 120, 100, 30) EndIf disableFonctionalities() Else MsgBox(0, "ERREUR", catchErrors("GUICtrlCreateTabEnsemble", "0")) EndIf EndFunc
Danny35d Posted August 16, 2006 Posted August 16, 2006 Right of the help file (GUICtrlCreateTabItem) To terminate the tab control just create a last "tabitem" control with a null text "".Try this I just add this line at the end GUICtrlCreateTabItem("")Func creationDesFonctionnalites() Local $ctrlEnsembleOnglets, $ctrlOngletReuters, $ctrlOngletORS $ctrlEnsembleOnglets = GUICtrlCreateTab(183, 10, 483, 320) GUICtrlCreateGroup("", 193, 36, 460, 280) If $ctrlEnsembleOnglets <> 0 Then $ctrlOngletReuters = GUICtrlCreateTabItem(".REUTERS.") If $ctrlOngletReuters <> 0 Then $ctrlBtnChkUsrReg = GUICtrlCreateButton("vérifier le user.reg", 213, 60, 100, 30) $ctrlBtnRstChk = GUICtrlCreateButton("annuler verif", 213, 100, 99, 15) GUICtrlCreateGroup("", 333, 54, 300, 245) $lgf = GUICtrlCreateLabel("login du fichier", 353, 64) $loginInput = GUICtrlCreateInput("", 353, 80, 138, 21) $lrl = GUICtrlCreateLabel("remplacez par le nouveau login (cinq caractères max)", 353, 102) $okEdit = GUICtrlCreateButton("modifier", 353, 121, 68, 21) ;MsgBox(0, "", String(GUICtrlGetState($okEdit))) ;If GUICtrlGetState($okEdit) = $GUI_ENABLE Then GUICtrlSetState($okEdit, $GUI_SHOW) EndIf $ctrlOngletORS = GUICtrlCreateTabItem("...ORS...") If $ctrlOngletORS <> 0 Then $ctrlOngletORS = GUICtrlCreateButton("vérifier le user.reg", 253, 120, 100, 30) EndIf disableFonctionalities() Else MsgBox(0, "ERREUR", catchErrors("GUICtrlCreateTabEnsemble", "0")) EndIf GUICtrlCreateTabItem("") EndFunc AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line
ddeerr Posted August 16, 2006 Author Posted August 16, 2006 Right of the help file (GUICtrlCreateTabItem)Try this I just add this line at the end GUICtrlCreateTabItem("")Tx it works like like that, i guess i didn't used very well the function with beta but as it works i was not aware of these details ...
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