Jump to content

questions about tabitem


faustf
 Share

Recommended Posts

hi guys  i have a problem with tab item , example  i want update a  tab , but not want destroy and recreate them again   , is possible to do that ?'

i tryed  with this script

#include <GUIConstantsEx.au3>

Opt("GuiOnEventMode", 1)
Opt("GUICloseOnESC", 0)
Opt("GUIResizeMode", 128)

Global $demade=0
Example()

Func Example()
    GUICreate("My GUI Tab", 250, 150); will create a dialog box that when displayed is centered

If $demade = 0 Then
 GUICtrlCreateTab(10, 10, 200, 100)
 EndIf
    GUICtrlCreateTabItem("tab0")
    Global $Button1 = GUICtrlCreateButton("Button1", 80, 56, 75, 25)


    GUICtrlCreateTabItem("tab----1")

Global $Button2 = GUICtrlCreateButton("Button2", 80, 56, 75, 25)



    GUICtrlCreateTabItem(""); end tabitem definition



    GUISetState(@SW_SHOW)
GUICtrlSetOnEvent($Button2, _del) ; crea nuova inserzione eBay

EndFunc   ;==>Example

Func _del()
    $demade = 1
    Example()
    ;GUICtrlDelete($Button1)
    EndFunc

While 1

    Sleep(10)
    WEnd

thankz

Link to comment
Share on other sites

sorry no  i want  remove a content inside a tab  like   button   input box and much more

because  i  have a  combo  in one tab view   but if i change the combo (and push button ) i want  change the controll (like butto inputbox listview etc..) over the tab 

 

Link to comment
Share on other sites

yes i create  a control at begin and  try to clean all tab1 except that combobox  and 4 button (is like menu over the tab)

i click over new in menu and clean tab and crete new controll and all is good but  when i  push back recreate again a tab i try to exclude  the creation tab if you have pressed a back (like in simply script i uploaded) but  in this mode hide a tab

this code

Func _SITI_WEB()

    GUISetCursor(15) ; mouse clessidra
    _Inizializza_eBay_Param(GUICtrlRead($SITIWEB_Combo3))
    Select
        Case $iGBack_eBay = 0
            _Boom() ; cancella tutto quello che trova su la  gui

            Local $read_file = _True_ReadFile(@ScriptDir & "\TOOLS\FTPbox\log_4_GEST.txt", $FO_READ)
            If $read_file = "1time=on" Then
                ShellExecute(@ScriptDir & "\TOOLS\FTPbox\FTPbox.exe")
                _True_write_File(@ScriptDir & "\TOOLS\FTPbox\log_4_GEST.txt", "1time=off")
            Else
                ShellExecute(@ScriptDir & "\TOOLS\FTPbox\FTPbox.exe", "", "", "", @SW_HIDE)
            EndIf
            $iGBack_eBay = 1
    EndSelect


    ;   If $iGBack_eBay = 0 Then
    $SITIWEB_Tab1 = GUICtrlCreateTab(1, 2, 1690, 765)
    ;EndIf
    $SITIWEB_TabSheet1 = GUICtrlCreateTabItem($GUI_Lang[101]) ; tab eBay
    GUICtrlSetState(-1, $GUI_SHOW) ; will be display first
    ;EndIf

    ;_siti_web_tab1_eBay()
    $SITIWEB_Button7 = GUICtrlCreateButton("", 6, 25, 41, 39, $BS_ICON) ; nuova inserzione eBay
    GUICtrlSetImage(-1, $DLL_LOCATE, -89)
    GUICtrlSetTip(-1, $GUI_Lang[119])
    $SITIWEB_Button8 = GUICtrlCreateButton("", 49, 25, 41, 39, $BS_ICON) ; apri inserzione nel browser
    GUICtrlSetImage(-1, $DLL_LOCATE, -99)
    GUICtrlSetTip(-1, $GUI_Lang[118])
    $SITIWEB_Button17 = GUICtrlCreateButton("", 1645, 25, 41, 39, $BS_ICON) ; ricarica utente
    GUICtrlSetImage(-1, $DLL_LOCATE, -96)
    GUICtrlSetTip(-1, $GUI_Lang[131])
    $SITIWEB_Button19 = GUICtrlCreateButton("", 1428, 25, 41, 39, $BS_ICON) ; carica contemporaneamente piu utenti tokenizati , vendite in corso
    GUICtrlSetImage(-1, $DLL_LOCATE, -97)
    GUICtrlSetTip(-1, $GUI_Lang[135])


    Local $sDefault_Log = IniRead($sDefault_eBay_login, "log_eBay_default_user", "Key1", "Default Value") ; user
    $SITIWEB_Combo3 = GUICtrlCreateCombo($sDefault_Log, 1494, 30, 145, 25, BitOR($CBS_DROPDOWN, $CBS_AUTOHSCROLL)) ; combo degli utenti ebay
    Local $aRetArray, $sFilePath = @ScriptDir & "\WEB-SITE\eBay\utenti\utenti_con_token.txt"
    _FileReadToArray($sFilePath, $aRetArray)
    For $i = 1 To UBound($aRetArray) - 1
        GUICtrlSetData($SITIWEB_Combo3, $aRetArray[$i], $sDefault_Log)
    Next

    _GUICtrlStatusBar_SetParts($StatusBar1, $aParts)
    _GUICtrlStatusBar_SetText($StatusBar1, "eBay Login Default: " & $sDefault_Log, 1)
    _GUICtrlStatusBar_SetIcon($StatusBar1, 1, _WinAPI_ExtractIcon($DLL_LOCATE, 87))

    $SITIWEB_Group3 = GUICtrlCreateGroup($GUI_Lang[117], 5, 70, 1682, 297) ; prodotti in vendita

    _prodotti_in_vendita_eBay()

    $SITIWEB_Group4 = GUICtrlCreateGroup($GUI_Lang[122], 5, 369, 1682, 393) ; storico
    $SITIWEB_List3 = _ListView_OK("", 208, 385, 1475, 371, "Item ID_150_Nome Prodotto_360_Qt._50_Formato_100_Prezzo C.S._100_Prezzo Asta_100_Prezzo Spedizione_100_Url Site_450")

    $SITIWEB_TreeView1 = GUICtrlCreateTreeView(10, 387, 195, 69, BitOR($GUI_SS_DEFAULT_TREEVIEW, $WS_BORDER))

    _GUICtrlTreeView_BeginUpdate($SITIWEB_TreeView1)
    $SITIWEB_tree_eBay = GUICtrlCreateTreeViewItem($GUI_Lang[101], $SITIWEB_TreeView1) ; eBay
    _GUICtrlTreeView_SetIcon($SITIWEB_TreeView1, $SITIWEB_tree_eBay, @ScriptDir & "\INCLUDE\shell32.dll", 87)
    _GUICtrlTreeView_EndUpdate($SITIWEB_TreeView1)
    $SITIWEB_venduti = GUICtrlCreateTreeViewItem($GUI_Lang[120], $SITIWEB_tree_eBay) ; venduti
    $SITIWEB_non_venduti = GUICtrlCreateTreeViewItem($GUI_Lang[121], $SITIWEB_tree_eBay) ; non venduti
    $SITIWEB_ship = GUICtrlCreateTreeViewItem($GUI_Lang[129], $SITIWEB_tree_eBay) ; spedizioni


    $SITIWEB_Input3 = GUICtrlCreateInput("", 10, 734, 113, 21) ; input cerca
    $SITIWEB_Button12 = GUICtrlCreateButton($GUI_Lang[32], 130, 734, 75, 21) ; tasto cerca
    ;ebay
    GUICtrlSetOnEvent($SITIWEB_Button8, _Open_inserzione_B) ; bottone apri nell Browser
    GUICtrlSetOnEvent($SITIWEB_venduti, _Storico_Venduti) ; treeview
    GUICtrlSetOnEvent($SITIWEB_non_venduti, _Storico_non_Venduto) ; treeview
    GUICtrlSetOnEvent($SITIWEB_ship, _Spedizioni_eBay) ; treeview
    GUICtrlSetOnEvent($SITIWEB_Button12, _Find_Client_siti_web) ; cerca in siti web
    GUICtrlSetOnEvent($SITIWEB_Button18, _Get_token_utente) ; crea il token per il multi utente
    GUICtrlSetOnEvent($SITIWEB_Button17, _ricarica_utente_eBay) ;ricarica l'utente Token
    GUICtrlSetOnEvent($SITIWEB_Button19, _carica_ALL_utenti_eBay) ;ricarica tutti gli utenti eBay
    GUICtrlSetOnEvent($SITIWEB_Button7, _New_ITEM_eBay) ; crea nuova inserzione eBay



    GUICtrlCreateGroup("", -99, -99, 1, 1)
    ;If $iGBack_eBay = 0 Then
    $SITIWEB_TabSheet2 = GUICtrlCreateTabItem($GUI_Lang[100]) ; tab Configurazione
    ;EndIf

    ;GUICtrlSetState(-1,$GUI_SHOW)

    ;$SITIWEB_Group1 = GUICtrlCreateGroup($GUI_Lang[102], 1273, 27, 412, 353) ; Registrazione
    $SITIWEB_Group1 = GUICtrlCreateGroup($GUI_Lang[102], 1273, 27, 412, 385) ; Registrazione

    $SITIWEB_Label4 = GUICtrlCreateLabel("eBay Site", 1542, 124, 49, 17)
    $SITIWEB_Combo2 = GUICtrlCreateCombo("eBay Italia", 1538, 145, 137, 25, BitOR($CBS_DROPDOWN, $CBS_AUTOHSCROLL))
    GUICtrlSetData($SITIWEB_Combo2, "eBay Australia|eBay Austria|eBay Belgium|eBay Belgium (French)|eBay Canada (English)|" & _
            "eBay Canada (French)|eBay French|eBay Germany|eBay Hong Kong|eBay India|eBay Ireland|eBay Netherlands|eBay Singapore|" & _
            "eBay Spain|eBay Switaerland|eBay UK|eBay United States|eBay Poland|eBay Philippines|eBay Malaysia|eBay Motors", "eBay Italia")
    $SITIWEB_Button1 = GUICtrlCreateButton("Registrazione con mail", 1586, 285, 91, 85, $BS_ICON) ; Registrazione con mail
    GUICtrlSetImage(-1, @ScriptDir & "\WEB-SITE\eBay\icon\multy.ico", -1)
    $SITIWEB_Button3 = GUICtrlCreateButton("Registrazione solo eBay", 1586, 175, 91, 85, $BS_ICON) ; Registrazione solo eBay
    GUICtrlSetImage(-1, @ScriptDir & "\WEB-SITE\eBay\icon\Chrisbanks2-Cold-Fusion-Hd-Ebay.ico", -1)
    $SITIWEB_Button2 = GUICtrlCreateButton("Registrazione solo mail", 1482, 176, 91, 86, $BS_ICON) ; Registrazione solo mail
    GUICtrlSetImage(-1, @ScriptDir & "\WEB-SITE\eBay\icon\index.ico", -1)
    $SITIWEB_Checkbox1 = GUICtrlCreateCheckbox($GUI_Lang[106], 1471, 72, 65, 17) ; Id list
    $SITIWEB_Checkbox2 = GUICtrlCreateCheckbox($GUI_Lang[107], 1471, 50, 97, 17) ; Utente standard
    $SITIWEB_Button4 = GUICtrlCreateButton($GUI_Lang[108], 1604, 51, 75, 21) ; Registra
    $SITIWEB_Button5 = GUICtrlCreateButton($GUI_Lang[100], 1605, 84, 75, 21) ;Configura

    $SITIWEB_Button18 = GUICtrlCreateButton($GUI_Lang[151], 1283, 381, 83, 21) ; genera token

    $SITIWEB_Button6 = GUICtrlCreateButton($GUI_Lang[152], 1482, 286, 91, 85, $BS_ICON) ; Registrazione solo Paypal
    GUICtrlSetImage(-1, @ScriptDir & "\WEB-SITE\eBay\icon\Uiconstock-E-Commerce-Paypal.ico", -1)
    $SITIWEB_List1 = GUICtrlCreateListView("", 1279, 53, 185, 318, $LVS_SORTASCENDING)
    _GUICtrlListView_SetExtendedListViewStyle($SITIWEB_List1, BitOR($LVS_EX_FULLROWSELECT, $LVS_EX_CHECKBOXES, $LVS_EX_GRIDLINES, $LVS_EX_SUBITEMIMAGES)) ; questa stringa fa la griglia stile excel
    _GUICtrlListView_AddColumn($SITIWEB_List1, $GUI_Lang[103], 180) ; Utente fake

    Local $aFakeUser = _FileListToArray(@ScriptDir & "\WEB-SITE\eBay\utenti")

    For $i = 1 To $aFakeUser[0]
        If $aFakeUser[$i] = "." Or $aFakeUser[$i] = ".." Then
        Else
            Local $Exist = FileExists(@ScriptDir & "\WEB-SITE\eBay\utenti\" & $aFakeUser[$i] & "\utente_eBay_Login.ini")
            If $Exist = 1 Then
                ;       Local $hImage = _GUIImageList_Create(16, 16, 5, 3)
                ;       _GUIImageList_AddIcon($hImage, $DLL_LOCATE, 93)
                ;       _GUICtrlListView_SetImageList($SITIWEB_List1, $hImage, 1)
                ;       _GUICtrlListView_AddItem($SITIWEB_List1, $aFakeUser[$i], $i)
                ; Load images
                Local $hImage = _GUIImageList_Create(16, 16, 5, 3)
                _GUIImageList_AddIcon($hImage, $DLL_LOCATE, 92)
                _GUICtrlListView_SetImageList($SITIWEB_List1, $hImage, 1)

                ; Add items
                ;_GUICtrlListView_AddItem($SITIWEB_List1, "Row 1: Col 1", 0)
                _GUICtrlListView_AddItem($SITIWEB_List1, $aFakeUser[$i], 0)
            Else
                _GUICtrlListView_AddItem($SITIWEB_List1, $aFakeUser[$i], $i)
            EndIf

        EndIf
    Next
    GUICtrlCreateGroup("", -99, -99, 1, 1)
    $SITIWEB_Group2 = GUICtrlCreateGroup($GUI_Lang[111], 1272, 415, 413, 92) ; parametrei ebay
    $SITIWEB_Input1 = GUICtrlCreateInput("", 1281, 454, 111, 21)
    $SITIWEB_Label1 = GUICtrlCreateLabel($GUI_Lang[41], 1283, 437, 36, 17) ; login
    $SITIWEB_Label2 = GUICtrlCreateLabel($GUI_Lang[42], 1398, 437, 50, 17) ; password
    $SITIWEB_Input2 = GUICtrlCreateInput("", 1396, 454, 112, 21, BitOR($GUI_SS_DEFAULT_INPUT, $ES_PASSWORD))
    $SITIWEB_Button9 = GUICtrlCreateButton($GUI_Lang[25], 1281, 481, 43, 21) ; setta
    $SITIWEB_Combo1 = GUICtrlCreateCombo("eBay Italia", 1533, 454, 145, 25, BitOR($CBS_DROPDOWN, $CBS_AUTOHSCROLL))
    GUICtrlSetData($SITIWEB_Combo1, "eBay Australia|eBay Austria|eBay Belgium|eBay Belgium (French)|eBay Canada (English)|" & _
            "eBay Canada (French)|eBay French|eBay Germany|eBay Hong Kong|eBay India|eBay Ireland|eBay Netherlands|eBay Singapore|" & _
            "eBay Spain|eBay Switaerland|eBay UK|eBay United States|eBay Poland|eBay Philippines|eBay Malaysia|eBay Motors", "eBay Italia")
    $SITIWEB_Label3 = GUICtrlCreateLabel($GUI_Lang[112], 1536, 436, 49, 17) ; eBay site
    ;$SITIWEB_Button10 = GUICtrlCreateButton($GUI_Lang[113], 1330, 445, 65, 21) ; Use default
    $SITIWEB_Button11 = GUICtrlCreateButton($GUI_Lang[20], 1401, 481, 65, 21) ; Carica
    GUICtrlCreateGroup("", -99, -99, 1, 1)

    Local $iLPayID = IniRead($sPath_User_standar_ini, "SU_Mail_com", "payid", "")
    Local $iLPayName = IniRead($sPath_User_standar_ini, "SU_Mail_com", "payname", "")
    Local $iLShipID = IniRead($sPath_User_standar_ini, "SU_Mail_com", "shipid", "")
    Local $iLShipName = IniRead($sPath_User_standar_ini, "SU_Mail_com", "shipname", "")
    Local $iLRetID = IniRead($sPath_User_standar_ini, "SU_Mail_com", "retid", "")
    Local $iLRetName = IniRead($sPath_User_standar_ini, "SU_Mail_com", "retname", "")


    $SITIWEB_Group5 = GUICtrlCreateGroup($GUI_Lang[241], 7, 28, 409, 375) ; eBay configurazioni globali
    $SITIWEB_List4 = _ListView_OK("", 10, 44, 400, 318, "ID_100_Nome_288")
    $SITIWEB_Button21 = GUICtrlCreateButton($GUI_Lang[25], 354, 371, 56, 21) ; Setta
    $SITIWEB_Button22 = GUICtrlCreateButton($GUI_Lang[242], 14, 372, 59, 21) ; Apri conf
    $SITIWEB_Button23 = GUICtrlCreateButton($GUI_Lang[243], 294, 371, 56, 21) ; scarica

    If $iLPayID = "" Or $iLPayName = "" Or $iLShipID = "" Or $iLShipName = "" Or $iLRetID = "" Or $iLRetName = "" Then
        MsgBox(0, 'Info', 'Non ci sono liste associate associa paypal ,  tipo di spedizione e return', 5) ; Non ci sono liste associate associa paypal ,  tipo di spedizione e return
        _Scarica_eBay_user_preference()
    Else
        ; da inserire cio che è nel file ini
        _GUICtrlListView_BeginUpdate($SITIWEB_List4)

        GUICtrlCreateListViewItem($iLPayID & "|" & $iLPayName, $SITIWEB_List4)
        GUICtrlCreateListViewItem($iLShipID & "|" & $iLShipName, $SITIWEB_List4)
        GUICtrlCreateListViewItem($iLRetID & "|" & $iLRetName, $SITIWEB_List4)
        #cs
            If Not Mod($i, 2) Then
            ;Even
            GUICtrlSetBkColor(-1, 0xffffff)
            Else
            ;Odd
            GUICtrlSetBkColor(-1, 0xe6e6e6)
            EndIf
        #ce
        _GUICtrlListView_EndUpdate($SITIWEB_List4)
    EndIf

    ;GUICtrlCreateGroup("", -99, -99, 1, 1)
    ;If $iGBack_eBay = 0 Then
    GUICtrlCreateTabItem("")
    ;EndIf

    ;configura eBay
    GUICtrlSetOnEvent($SITIWEB_Button2, _Reg_only_mail) ; regista solo la mail macro
    GUICtrlSetOnEvent($SITIWEB_Button4, _Registra_utente) ; registra  utente standar in standar.ini file
    GUICtrlSetOnEvent($SITIWEB_Button3, _Reg_Only_eBay) ; registra su ebay
    GUICtrlSetOnEvent($SITIWEB_Button6, _Reg_Only_Paypal) ; regista su paypal
    GUICtrlSetOnEvent($SITIWEB_Button1, _Reg_All_PayeBayMail) ; registra tutto paypal ebay e mail
    GUICtrlSetOnEvent($SITIWEB_Button5, _Conf_Fake_User) ; configura
    GUICtrlSetOnEvent($SITIWEB_Button9, _Setta_eBay_User_Login) ; setta l utente  di default
    GUICtrlSetOnEvent($SITIWEB_Button11, _Carica_Fake_Login_eBay) ; bottone carica
    GUICtrlSetOnEvent($SITIWEB_Button23, _Scarica_eBay_user_preference) ; bottone Scarica
    GUICtrlSetOnEvent($SITIWEB_Button21, _Setta_eBay_user_preference) ; bottone Setta
    GUISetState(@SW_SHOW)


    GUISetCursor(2) ; mouse puntatore

EndFunc   ;==>_SITI_WEB

create this gui

i67(.)tinypic(.)com/714mle.jpg

after click over  new button  , work good  and i have  this  gui

i67(.)tinypic(.)com/29pan4i.jpg

this is a code  for this gui

$sGWhereLive = "NewItem"

    Global $sWWW = IniRead(@ScriptDir & "\WEB-SITE\eBay\FTP\config_ftp.ini", "ftp_config", "http", "default")
    Global $sServer = IniRead(@ScriptDir & "\WEB-SITE\eBay\FTP\config_ftp.ini", "ftp_config", "server", "default")
    Global $sUsername = IniRead(@ScriptDir & "\WEB-SITE\eBay\FTP\config_ftp.ini", "ftp_config", "user", "default")
    Global $sPass = IniRead(@ScriptDir & "\WEB-SITE\eBay\FTP\config_ftp.ini", "ftp_config", "passw", "default")
    Global $port = IniRead(@ScriptDir & "\WEB-SITE\eBay\FTP\config_ftp.ini", "ftp_config", "port", "default")
    Global $sRemote_dir = IniRead(@ScriptDir & "\WEB-SITE\eBay\FTP\config_ftp.ini", "ftp_config", "remote_dir", "default")
    Global $sRemote_dir_FS = IniRead(@ScriptDir & "\WEB-SITE\eBay\FTP\config_ftp.ini", "ftp_config", "ftp_FormatoStandar", "default")
    Global $sWWWRemote_dir_FS = IniRead(@ScriptDir & "\WEB-SITE\eBay\FTP\config_ftp.ini", "ftp_config", "formati_standar", "default")
    Global $passive = 1

    GUISwitch($hMainGUI, $SITIWEB_TabSheet1)

    $new_show = 1
    ;GUICtrlSetState($SITIWEB_Button19, $GUI_DISABLE) ; multi utente
    GUICtrlSetState($SITIWEB_Button8, $GUI_DISABLE) ;  naviga su inserzione
    GUICtrlDelete($SITIWEB_Button7)
    $SITIWEB_Button7 = GUICtrlCreateButton("", 6, 25, 41, 39, $BS_ICON) ; nuova inserzione eBay
    GUICtrlSetImage(-1, $DLL_LOCATE, -122)
    GUICtrlSetTip(-1, $GUI_Lang[200])
    ; GUICtrlSetState($save,$GUI_ENABLE)

    _destroy_sitiweb_up_ship()
    _destroy_sitiweb_ship()
    _destroy_sitiweb_ship2()
    GUISetCursor(15) ; mouse clessidra

    $SITIWEB_NewItem_Group4 = GUICtrlCreateGroup($GUI_Lang[168], 5, 69, 1682, 693) ; Nuovo Prodotto
    $SITIWEB_NewItem_Label5 = GUICtrlCreateLabel($GUI_Lang[169], 10, 98, 129, 17) ; Titolo massimo 80 caratteri
    $SITIWEB_NewItem_Input3 = GUICtrlCreateInput("bikini", 10, 122, 449, 21)
    GUICtrlSetLimit(-1, 80)
    $SITIWEB_NewItem_Button50 = GUICtrlCreateButton($GUI_Lang[170], 465, 122, 75, 21) ; Cerca Ctgr.
    $SITIWEB_NewItem_Label8 = GUICtrlCreateLabel($GUI_Lang[171], 10, 152, 49, 17) ; Categoria
    $SITIWEB_NewItem_Input4 = GUICtrlCreateInput("", 10, 170, 449, 21)
    $SITIWEB_NewItem_Button12 = GUICtrlCreateButton($GUI_Lang[172], 421, 374, 67, 21) ; Config. Site
    $SITIWEB_NewItem_Label9 = GUICtrlCreateLabel($GUI_Lang[173], 14, 210, 201, 17) ; Descrizione Breve massimo 1000 caratteri
    $SITIWEB_NewItem_Edit1 = GUICtrlCreateEdit("", 10, 234, 529, 113) ;, BitOR($ES_AUTOVSCROLL, $ES_AUTOHSCROLL, $ES_WANTRETURN))
    $hEdit = GUICtrlGetHandle(-1)
    GUICtrlSetLimit($SITIWEB_NewItem_Edit1, 1000)
    $hFunc = DllCallbackRegister('_EditHandler', 'lresult', 'hwnd;uint;wparam;lparam')
    $pFunc = DllCallbackGetPtr($hFunc)
    $hWndProc = _WinAPI_SetWindowLong($hEdit, $GWL_WNDPROC, $pFunc)

    $SITIWEB_NewItem_Checkbox4 = GUICtrlCreateCheckbox($GUI_Lang[174], 313, 378, 97, 17) ; Pubblica su tutti
    $SITIWEB_NewItem_Combo4 = GUICtrlCreateCombo("eBay Italia", 156, 374, 145, 25, BitOR($CBS_DROPDOWN, $CBS_AUTOHSCROLL)) ; Combo4
    GUICtrlSetData($SITIWEB_NewItem_Combo4, "eBay Australia|eBay Austria|eBay Belgium|eBay Belgium (French)|eBay Canada (English)" & _
            "|eBay Canada (French)|eBay French|eBay Germany|eBay Hong Kong|eBay India|eBay Ireland|eBay Netherlands|eBay Singapore|eBay Spain" & _
            "|eBay Switaerland|eBay UK|eBay United States|eBay Poland|eBay Philippines|eBay Malaysia|eBay Motors", "eBay Italia")

    $SITIWEB_NewItem_Label7 = GUICtrlCreateLabel($GUI_Lang[112], 156, 356, 49, 17) ; eBay Site
    $SITIWEB_NewItem_Input5 = GUICtrlCreateInput(@ScriptDir & "\WEB-SITE\eBay\PUBLICAZIONI\FOTO", 557, 134, 201, 21)
    $SITIWEB_NewItem_Button13 = GUICtrlCreateButton($GUI_Lang[176], 766, 134, 75, 21) ; Path
    $SITIWEB_NewItem_Label11 = GUICtrlCreateLabel($GUI_Lang[177], 557, 114, 69, 17) ; Location Foto
    $SITIWEB_NewItem_Button14 = GUICtrlCreateButton($GUI_Lang[178], 854, 134, 75, 21) ; Apri Cartella

    $SITIWEB_NewItem_Button54 = GUICtrlCreateButton("", 937, 117, 41, 39, $BS_ICON) ;  ricarica immagini list
    GUICtrlSetImage(-1, $DLL_LOCATE, -96)
    GUICtrlSetTip(-1, $GUI_Lang[206])

    $SITIWEB_NewItem_Combo5 = GUICtrlCreateCombo("", 10, 374, 105, 25, BitOR($CBS_DROPDOWN, $CBS_AUTOHSCROLL)) ; Combo5
    $SITIWEB_NewItem_Label12 = GUICtrlCreateLabel($GUI_Lang[180], 10, 355, 52, 17) ; Condizioni
    $SITIWEB_NewItem_Edit2 = GUICtrlCreateEdit("Hai 4 linee da suddividere con questo carattere | ", 1067, 154, 467, 276) ;, BitOR($ES_AUTOVSCROLL, $ES_AUTOHSCROLL, $ES_WANTRETURN))
    GUICtrlSetColor(-1, 0xC0C0C0)
    ;   $SITIWEB_NewItem_Edit3 = GUICtrlCreateEdit("",  1067, 154, 547, 276)

    ;$Edit3 = GUICtrlCreateEdit("", 72, 536, 297, 153)
    $SITIWEB_NewItem_Label13 = GUICtrlCreateLabel($GUI_Lang[181], 1072, 98, 106, 17) ; Descrizione Completa
    $SITIWEB_NewItem_Checkbox5 = GUICtrlCreateCheckbox($GUI_Lang[182], 1068, 438, 75, 17) ; Add Firma
    GUICtrlSetState(-1, $GUI_CHECKED)
    GUICtrlSetState(-1, $GUI_DISABLE)
    $SITIWEB_NewItem_Button15 = GUICtrlCreateButton($GUI_Lang[183], 1152, 438, 61, 21) ; Mod Firma
    $SITIWEB_NewItem_Button16 = GUICtrlCreateButton($GUI_Lang[184], 1072, 122, 115, 25) ; Apri Editor

    $SITIWEB_NewItem_Button43 = GUICtrlCreateButton($GUI_Lang[212], 1540, 158, 108, 21) ; inserisci descrizione
    $SITIWEB_NewItem_List2 = _ListView_OK("", 552, 166, 377, 266, "Descrizione_370")
    Local $aGest_foto = _FileListToArray(GUICtrlRead($SITIWEB_NewItem_Input5), "*", 2)

    For $y = 1 To UBound($aGest_foto) - 1
        Select
            Case $aGest_foto[$y] <> ".."
                _GUICtrlListView_AddItem($SITIWEB_NewItem_List2, $aGest_foto[$y])
            Case $aGest_foto[$y] = ""
                MsgBox(0, $GUI_Lang[45], $GUI_Lang[265]) ; non  ci sono cartelle
        EndSelect

    Next
    $SITIWEB_NewItem_Button66 = GUICtrlCreateButton($GUI_Lang[224], 939, 232, 99, 21) ; Copia Link a Web
    ;$SITIWEB_NewItem_Button67 = GUICtrlCreateButton($GUI_Lang[236], 938, 265, 101, 21) ; Immagini inserzione
    $SITIWEB_NewItem_Button44 = GUICtrlCreateButton($GUI_Lang[186], 936, 166, 67, 21) ; Upload
    $SITIWEB_NewItem_Combo8 = GUICtrlCreateCombo("", 10, 422, 137, 25, BitOR($CBS_DROPDOWN, $CBS_AUTOHSCROLL)) ; Combo8 -- era 187
    ;GUICtrlSetData($SITIWEB_NewItem_Combo8, "Asta online|Pubblica Annuncio|Pubblicità|Offerta al secondo")

    $SITIWEB_NewItem_Label14 = GUICtrlCreateLabel($GUI_Lang[188], 14, 403, 42, 17) ; Formato
    $SITIWEB_NewItem_Input6 = GUICtrlCreateInput("", 194, 422, 97, 21)
    $SITIWEB_NewItem_Label15 = GUICtrlCreateLabel($GUI_Lang[189], 200, 403, 91, 17) ; Prezzo di partenza
    $SITIWEB_NewItem_Input7 = GUICtrlCreateInput("", 295, 422, 89, 21)
    $SITIWEB_NewItem_Label16 = GUICtrlCreateLabel($GUI_Lang[190], 297, 403, 81, 17) ; Prezzo di riserva
    $SITIWEB_NewItem_Input8 = GUICtrlCreateInput("", 388, 422, 89, 21)
    $SITIWEB_NewItem_Label17 = GUICtrlCreateLabel($GUI_Lang[124], 394, 403, 79, 17) ; Compralo subito
    $SITIWEB_NewItem_Input9 = GUICtrlCreateInput("1", 481, 422, 41, 21)
    $SITIWEB_NewItem_Label18 = GUICtrlCreateLabel($GUI_Lang[191], 485, 403, 27, 17) ; Q.tta
    $SITIWEB_NewItem_Button45 = GUICtrlCreateButton($GUI_Lang[12], 1584, 718, 75, 21) ; Inserisci
    $SITIWEB_NewItem_Label22 = GUICtrlCreateLabel($GUI_Lang[225], 285, 464, 30, 17) ; Tempi di imballaggio per spedizioni nazionali
    GUICtrlSetTip(-1, $GUI_Lang[226])
    $SITIWEB_NewItem_Input11 = GUICtrlCreateInput("3", 318, 458, 19, 21)
    GUICtrlSetTip(-1, $GUI_Lang[226])

    $SITIWEB_NewItem_List3 = _ListView_OK("", 554, 487, 377, 266, "Descrizione_370")
    _FTP_Lista($sRemote_dir, $SITIWEB_NewItem_List3) ;$sRemote_dir

    $SITIWEB_NewItem_Label19 = GUICtrlCreateLabel($GUI_Lang[192], 560, 467, 69, 17) ; Storico inseriti
    ;$SITIWEB_NewItem_Button46 = GUICtrlCreateButton($GUI_Lang[20], 1067, 726, 59, 21) ; carica
    ;$SITIWEB_NewItem_Button47 = GUICtrlCreateButton($GUI_Lang[90], 1066, 698, 59, 21) ; Cancella
    $SITIWEB_NewItem_Button48 = GUICtrlCreateButton($GUI_Lang[217], 12, 457, 59, 21) ; opzioni
    $SITIWEB_NewItem_Label21 = GUICtrlCreateLabel($GUI_Lang[193], 88, 464, 48, 17) ;Pubblica
    ;$SITIWEB_NewItem_Button49 = GUICtrlCreateButton($GUI_Lang[194], 76, 457, 59, 21) ; Taglie
    $SITIWEB_NewItem_Button51 = GUICtrlCreateButton($GUI_Lang[195], 436, 101, 19, 17) ; ?
    $SITIWEB_NewItem_Button52 = GUICtrlCreateButton($GUI_Lang[179], 153, 424, 22, 17) ; <-?
    $SITIWEB_NewItem_Button53 = GUICtrlCreateButton($GUI_Lang[195], 123, 375, 19, 17) ; ?
    $SITIWEB_NewItem_Checkbox6 = GUICtrlCreateCheckbox($GUI_Lang[237], 352, 464, 57, 17) ; reso si


    $SITIWEB_NewItem_Button55 = GUICtrlCreateButton("<----", 940, 203, 22, 17) ;  entra e esci
    GUICtrlSetTip(-1, $GUI_Lang[200])
    $SITIWEB_NewItem_Button56 = GUICtrlCreateButton("---->", 979, 203, 22, 17) ;  entra e esci
    GUICtrlSetTip(-1, $GUI_Lang[207])
    GUICtrlSetTip($SITIWEB_NewItem_Button51, $GUI_Lang[150])
    GUICtrlSetTip($SITIWEB_NewItem_Button52, $GUI_Lang[175])
    GUICtrlSetTip($SITIWEB_NewItem_Button53, $GUI_Lang[187])

    $SITIWEB_NewItem_Button57 = GUICtrlCreateButton("", 940, 488, 41, 39, $BS_ICON)
    GUICtrlSetImage(-1, $DLL_LOCATE, -96)
    $SITIWEB_NewItem_Button58 = GUICtrlCreateButton($GUI_Lang[209], 939, 537, 67, 21) ; Selez.Tutto
    $SITIWEB_NewItem_Button59 = GUICtrlCreateButton("<----", 943, 574, 22, 17)
    GUICtrlSetTip(-1, $GUI_Lang[200])
    $SITIWEB_NewItem_Button60 = GUICtrlCreateButton("---->", 982, 574, 22, 17)
    GUICtrlSetTip(-1, $GUI_Lang[207])
    $SITIWEB_NewItem_Input10 = GUICtrlCreateInput("", 630, 459, 218, 21)
    GUICtrlSetData($SITIWEB_NewItem_Input10, $sRemote_dir)
    $SITIWEB_NewItem_Button61 = GUICtrlCreateButton("", 885, 442, 41, 39, $BS_ICON)
    GUICtrlSetImage(-1, $DLL_LOCATE, -127)
    GUICtrlSetTip(-1, $GUI_Lang[208])
    GUICtrlCreateGroup("", -99, -99, 1, 1)
    $SITIWEB_NewItem_Button64 = GUICtrlCreateButton($GUI_Lang[210], 941, 603, 67, 21) ; Linka
    $SITIWEB_NewItem_Button65 = GUICtrlCreateButton($GUI_Lang[90], 941, 630, 67, 21) ; cancella
    $SITIWEB_NewItem_Combo9 = GUICtrlCreateCombo("", 141, 458, 135, 25, BitOR($CBS_DROPDOWN, $CBS_AUTOHSCROLL))

    Global $aListStandar_format = _FileListToArray(@ScriptDir & "\WEB-SITE\eBay\PUBLICAZIONI\FORMATI_STANDARD", "*.html", $FLTA_FILES)
    $SITIWEB_NewItem_Combo6 = GUICtrlCreateCombo($aListStandar_format[1], 1216, 122, 115, 25, BitOR($CBS_DROPDOWN, $CBS_AUTOHSCROLL))
    For $j = 2 To UBound($aListStandar_format) - 1
        GUICtrlSetData($SITIWEB_NewItem_Combo6, $aListStandar_format[$j])
    Next

    $SITIWEB_NewItem_Button24 = GUICtrlCreateButton($GUI_Lang[250], 942, 657, 67, 21) ;seleziona tutto in ftp remote select all
    $SITIWEB_NewItem_Button25 = GUICtrlCreateButton($GUI_Lang[250], 939, 294, 67, 21) ;seleziona tutto in local file select all
    $SITIWEB_NewItem_Button26 = GUICtrlCreateButton($GUI_Lang[89], 1580, 490, 75, 21) ; modifica
    $SITIWEB_NewItem_Label20 = GUICtrlCreateLabel($GUI_Lang[211], 1216, 98, 84, 17) ;Formati Standard
    ;GUICtrlSetData($SITIWEB_NewItem_Combo9, "30 giorni|10 giorni|1 giorni|3 giorni|5 giorni")
    ;   GUICtrlCreateTabItem("")

    ;========================== DISABILITATI PER CONDURRE ======================================================
    _Disabilita_X_Condurre_3("Disable")
    _Disabilita_X_Condurre_2("Disable")
    ;===========================================================================================================
    _Etichetta_Aste_rimanenti()

    $SITIWEB_NewItem_Label24 = GUICtrlCreateLabel("Storico Inseriti", 1080, 464, 70, 17)
    Global $iTag_Col_OPZ = 0 ; serve per quando apri opzioni vaiazioni scegliere additemefixedprice
    Global $cont_All_sel_ftp = 1
    Global $cont_All_sel_local = 1
    Global $cont_ALL_sel_Sqlite3 = 1
    $SITIWEB_NewItem_Button27 = GUICtrlCreateButton($GUI_Lang[253], 1581, 518, 75, 21) ;Reinsert.
    $SITIWEB_NewItem_Button28 = GUICtrlCreateButton($GUI_Lang[254], 1582, 546, 75, 21) ;Reinsert+foto
    $SITIWEB_NewItem_Button29 = GUICtrlCreateButton($GUI_Lang[263], 1582, 605, 75, 21) ; Elimina in DB.
    $SITIWEB_NewItem_Button30 = GUICtrlCreateButton($GUI_Lang[264], 1582, 631, 75, 21) ; Selez. Tutti
    $SITIWEB_NewItem_List5 = _ListView_OK("", 1068, 484, 481, 266, "Titolo Insersione_310_Item specific_150_ID db_20")
    ;Local $result = _Sqlite3_Read("SELECT titolo,item_spec,id FROM eBayNewItem ORDER BY id;")
    Local $result = _Sqlite3_Read("SELECT titolo, item_spec, id FROM eBayNewItem ORDER BY id;")
    ;_ArrayDisplay($result)
    $result[0] = ""
    $result[1] = ""
    $result[2] = ""
    $result[3] = ""
    $result = _Remove_BlankIN_Array($result)
    _GUICtrlListView_BeginUpdate($SITIWEB_NewItem_List5)
    Local $r = 1, $k = 2, $h = 0
    For $i = 0 To UBound($result) - 1

        If $k <= UBound($result) - 1 Then
            GUICtrlCreateListViewItem($result[$h] & "|" & $result[$r] & "|" & $result[$k], $SITIWEB_NewItem_List5)
        EndIf
        $r += 3
        $k += 3
        $h += 3

        If Not Mod($i, 2) Then
            ;Even
            GUICtrlSetBkColor(-1, 0xffffff)
        Else
            ;Odd
            GUICtrlSetBkColor(-1, 0xe6e6e6)
        EndIf
    Next
    _GUICtrlListView_EndUpdate($SITIWEB_NewItem_List5)

    GUISetState(@SW_SHOW)
    GUISetCursor(2, 1) ; mouse puntatore
    GUICtrlCreateTabItem("") ; <=========================== This line seems important for what u want doing

    ;GUICtrlSetOnEvent($SITIWEB_NewItem_Button15, _Reg_only_mail)
    GUICtrlSetOnEvent($SITIWEB_NewItem_Button16, _Apri_Editor)
    GUICtrlSetOnEvent($SITIWEB_NewItem_Button50, _Cerca_Categoria_eBayAPI)
    GUICtrlSetOnEvent($SITIWEB_NewItem_Button12, _Config_site)
    GUICtrlSetOnEvent($SITIWEB_NewItem_Button51, _Seo_Help)
    GUICtrlSetOnEvent($SITIWEB_NewItem_Button53, _Condizioni_Help)
    GUICtrlSetOnEvent($SITIWEB_NewItem_Button52, _Formato_Help)
    GUICtrlSetOnEvent($SITIWEB_NewItem_Button13, _Folder_foto)
    GUICtrlSetOnEvent($SITIWEB_NewItem_Button14, _Folder_open_foto)
    GUICtrlSetOnEvent($SITIWEB_NewItem_Button56, _Avanti_foto)
    GUICtrlSetOnEvent($SITIWEB_NewItem_Button55, _Indietro_foto)
    GUICtrlSetOnEvent($SITIWEB_NewItem_Button54, _FileJPG_reload) ; relod list
    GUICtrlSetOnEvent($SITIWEB_NewItem_Button44, _FTP_upload) ; relod list
    GUICtrlSetOnEvent($SITIWEB_Button7, _back_eBay)
    GUICtrlSetOnEvent($SITIWEB_NewItem_Button60, _FTP_Avanti)
    GUICtrlSetOnEvent($SITIWEB_NewItem_Button59, _FTP_Indietro)
    GUICtrlSetOnEvent($SITIWEB_NewItem_Button57, _FTP_Reload)
    GUICtrlSetOnEvent($SITIWEB_NewItem_Button61, _FTP_Folder_syncro)
    GUICtrlSetOnEvent($SITIWEB_NewItem_Button58, _FTP_ALL_select)
    GUICtrlSetOnEvent($SITIWEB_NewItem_Button64, _FTP_Linker)
    GUICtrlSetOnEvent($SITIWEB_NewItem_Button65, _FTP_jpg_Cancel)
    GUICtrlSetOnEvent($SITIWEB_NewItem_Button43, _Inserisci_descrizione_in_HTML_bikini1)
    GUICtrlSetOnEvent($SITIWEB_NewItem_Button48, _Taglie_colori_opzioni)
    GUICtrlSetOnEvent($SITIWEB_NewItem_Button66, _Copia_link_clipboard)
    GUICtrlSetOnEvent($SITIWEB_NewItem_Button45, _Inserisci_Item_eBay) ; inserisci
    ;   GUICtrlSetOnEvent($SITIWEB_NewItem_Button67, _Select_Foto_X_eBay)
    GUICtrlSetOnEvent($SITIWEB_NewItem_Button25, _Select_ALL_Foto_in_Local)
    GUICtrlSetOnEvent($SITIWEB_NewItem_Button24, _Select_ALL_Foto_in_FTP)
    GUICtrlSetOnEvent($SITIWEB_NewItem_Button27, _Reinser_xml_in_eBay)
    GUICtrlSetOnEvent($SITIWEB_NewItem_Button28, _Reinser_xml_in_eBay_Foto)
    GUICtrlSetOnEvent($SITIWEB_NewItem_Button26, _Modifica_xml_in_eBay_Foto)
    GUICtrlSetOnEvent($SITIWEB_NewItem_Button29, _Elimina_xml_in_DB_SQlite3)
    GUICtrlSetOnEvent($SITIWEB_NewItem_Button30, _Seleziona_tutto_SQlite3)

    ;   GUICtrlSetOnEvent($SITIWEB_NewItem_Button46, _test_X_eBay)

    GUISetCursor(2, 1) ; mouse puntatore

EndFunc   ;==>_New_ITEM_eBay

but when i press over the  back button

go back but create 4 tab  eBay Configura and again eBay configura

how is possible exclude them bug ??

thankz  at all

 

Edited by faustf
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...