Jump to content

Recommended Posts

Posted

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
Posted

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
Posted

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

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
  • Recently Browsing   0 members

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