jantograaf Posted February 8, 2018 Share Posted February 8, 2018 Hi all, I'm trying to create input-fields on a tab which are filled with data on creation of the GUI. I have successfully done this for 6 input fields on a specific tab page. However, when I add three more, the three latest inputs are filled with data but cannot be selected or edited. The code for the creation of the inputfields: expandcollapse popup;SETTINGS-TAB $TAB_SETTINGS = GUICtrlCreateTabItem("Settings") $FFSETTINGS_INTERFACE1_LABEL = GUICtrlCreateLabel("Interface 1",11,34,140) $FFSETTINGS_INTERFACE1_INPUT = GUICtrlCreateInput($Interface1,155,34,140) GUICtrlSetState(-1,64) $FFSETTINGS_INTERFACE2_LABEL = GUICtrlCreateLabel("Interface 2",11,59,140) $FFSETTINGS_INTERFACE2_INPUT = GUICtrlCreateInput($Interface2,155,59,140) GUICtrlSetState(-1,64) $FFSETTINGS_INTERFACE3_LABEL = GUICtrlCreateLabel("Interface 3",11,84,140) $FFSETTINGS_INTERFACE3_INPUT = GUICtrlCreateInput($Interface3,155,84,140) GUICtrlSetState(-1,64) $FFSETTINGS_INTERFACE4_LABEL = GUICtrlCreateLabel("Interface 4",11,109,140) $FFSETTINGS_INTERFACE4_INPUT = GUICtrlCreateInput($Interface4,155,109,140) GUICtrlSetState(-1,64) $FFSETTINGS_PANEL_LABEL = GUICtrlCreateLabel("Panel IP",11,144,140) $FFSETTINGS_PANEL_INPUT = GUICtrlCreateInput($PING_PANEL_IP,155,144,140) GUICtrlSetState(-1,64) $FFSETTINGS_ROUTER_LABEL = GUICtrlCreateLabel("Router IP",11,169,140) $FFSETTINGS_ROUTER_INPUT = GUICtrlCreateInput($PING_ROUTER_IP,155,169,140) GUICtrlSetState(-1,64) $FFSETTINGS_WIFIFUJI_LABEL = GUICtrlCreateLabel("Panelconnectie",11,204,284) $FFSETTINGS_WIFIFUJI_INPUT = GUICtrlCreateInput($WifiFUJIFILM,155,204,140) GUICtrlSetState(-1,64) $FFSETTINGS_WIFIFREE1_LABEL = GUICtrlCreateLabel("Wifi-adapter 2",11,229,284) $FFSETTINGS_WIFIFREE1_INPUT = GUICtrlCreateInput($WifiFREE1,155,229,140) GUICtrlSetState(-1,64) $FFSETTINGS_WIFIFREE2_LABEL = GUICtrlCreateLabel("Wifi-adapter 3",11,254,284) $FFSETTINGS_WIFIFREE2_INPUT = GUICtrlCreateInput($WifiFREE2,155,254,140) GUICtrlSetState(-1,64) $FFSETTINGS_SAVE_BUTTON = GUICtrlCreateButton("Save settings",11,300,284) GuiCtrlSetOnEvent($FFSETTINGS_SAVE_BUTTON, "SaveNaarIni") The data used to fill the inputfields is retrieved from an .ini-file: ;Laad data uit INI-file Global $Interface1 = IniRead("VSOL.ini","Interface Settings","Interface1","Geen geselecteerd") Global $Interface2 = IniRead("VSOL.ini","Interface Settings","Interface2","Geen geselecteerd") Global $Interface3 = IniRead("VSOL.ini","Interface Settings","Interface3","Geen geselecteerd") Global $Interface4 = IniRead("VSOL.ini","Interface Settings","Interface4","Geen geselecteerd") Global $WifiFUJIFILM = IniRead ("VSOL.ini","Wireless Interfaces","WifiFUJIFILM","") Global $WifiFREE1 = IniRead ("VSOL.ini","Wireless Interfaces","WifiAdapter2","") Global $WifiFREE2 = IniRead ("VSOL.ini","Wireless Interfaces","WifiAdapter3","") Global $PING_ROUTER_IP = IniRead ("VSOL.ini","Router Settings","IP","192.168.0.1") Global $PING_PANEL_IP = IniRead ("VSOL.ini","Panel Settings","IP","192.168.0.100") If anyone has a clue... Is there a max number of controls a GUI can show? Am I doing something wrong in creating the GUI? I look forward to hearing your thoughts on this. If I didn't give enough info, please do tell me so Kind regards, Jan Link to comment Share on other sites More sharing options...
water Posted February 8, 2018 Share Posted February 8, 2018 There is a maximum limit for controls - but you are far from this limit. Most of the time another control overlays your unresponsive control. Do you call GUICtrlCreateTabItem with the empty parameter as last action before displaying the GUI? Quote It is important to close the tab structure by creating a final tabitem control with a null text - GUICtrlCreateTabItem(""). My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
jantograaf Posted February 8, 2018 Author Share Posted February 8, 2018 I'm not sure I'm that far from the limit, I didn't include the full GUI creation code, wait... But as you can see, I did close the tab structure in the correct way. Thanks for the tip though. expandcollapse popup;Teken de backend #Region ### START Koda GUI section ### Form=D:\Programming\SVN\VSOL Backend\GUI\VSOL Backend.kxf Opt("GUIOnEventMode", 1) Local $VSOL_BACKEND = GUICreate("VSOL Backend v2.0", 309, 631, -1, -1) GUISetOnEvent($GUI_EVENT_CLOSE, "VSOL_CLOSE") GUISetIcon("C:\Users\jantograaf\Pictures\Knipsel.ico", -1) ;TAB-HOUDER $VSOL_TABS = GUICtrlCreateTab(3, 2, 305, 628) ;NETWORK-TAB $TAB_NETWORK = GUICtrlCreateTabItem("Network") ; Groep van de eerste interface $GROEP_INTERFACE1 = GUICtrlCreateGroup($Interface1, 11,34,289,110, BitOr($GUI_SS_DEFAULT_GROUP,$BS_CENTER)) GUICtrlSetFont($GROEP_INTERFACE1,8.5,$FW_BOLD,"") $GROEP_I1_NAME = GUICtrlCreateLabel("",15,50,200,15) GUICtrlSetFont($GROEP_I1_NAME,8.5,$FW_BOLD,"") $GROEP_I1_STATUS = GUICtrlCreateLabel("",15,65,200,15) $GROEP_I1_IP_SUBNET = GUICtrlCreateLabel("",15,80,240,15) $GROEP_I1_GATEWAY = GUICtrlCreateLabel("",15,95,200,15) $GROEP_I1_DNS = GUICtrlCreateLabel("",15,110,240,15) $GROEP_I1_DHCP = GUICtrlCreateLabel("",15,125,240,15) $GROEP_I1_DISABLE = GUICtrlCreateButton("OFF",268,43,30,30) GUICtrlSetState(-1,$GUI_DISABLE) GUICtrlSetOnEvent(-1,"_JANDisableInterface1") $GROEP_I1_ENABLE = GUICtrlCreateButton("ON",237,43,30,30) GUICtrlSetState(-1,$GUI_ENABLE) GUICtrlSetOnEvent(-1,"_JANEnableInterface1") ; Groep van de tweede interface $GROEP_INTERFACE2 = GUICtrlCreateGroup($Interface2, 11,146,289,110, BitOr($GUI_SS_DEFAULT_GROUP,$BS_CENTER)) GUICtrlSetFont($GROEP_INTERFACE2,8.5,$FW_BOLD,"") $GROEP_I2_NAME = GUICtrlCreateLabel("",15,162,200,15) GUICtrlSetFont($GROEP_I2_NAME,8.5,$FW_BOLD,"") $GROEP_I2_STATUS = GUICtrlCreateLabel("",15,177,200,15) $GROEP_I2_IP_SUBNET = GUICtrlCreateLabel("",15,192,240,15) $GROEP_I2_GATEWAY = GUICtrlCreateLabel("",15,207,200,15) $GROEP_I2_DNS = GUICtrlCreateLabel("",15,222,240,15) $GROEP_I2_DHCP = GUICtrlCreateLabel("",15,237,240,15) $GROEP_I2_DISABLE = GUICtrlCreateButton("OFF",268,155,30,30) GUICtrlSetState(-1,$GUI_DISABLE) GUICtrlSetOnEvent(-1,"_JANDisableInterface2") $GROEP_I2_ENABLE = GUICtrlCreateButton("ON",237,155,30,30) GUICtrlSetState(-1,$GUI_ENABLE) GUICtrlSetOnEvent(-1,"_JANEnableInterface2") ; Groep van de derde interface $GROEP_INTERFACE3 = GUICtrlCreateGroup($Interface3, 11,258,289,110, BitOr($GUI_SS_DEFAULT_GROUP,$BS_CENTER)) GUICtrlSetFont($GROEP_INTERFACE3,8.5,$FW_BOLD,"") $GROEP_I3_NAME = GUICtrlCreateLabel("",15,274,200,15) GUICtrlSetFont($GROEP_I3_NAME,8.5,$FW_BOLD,"") $GROEP_I3_STATUS = GUICtrlCreateLabel("",15,289,200,15) $GROEP_I3_IP_SUBNET = GUICtrlCreateLabel("",15,304,240,15) $GROEP_I3_GATEWAY = GUICtrlCreateLabel("",15,319,200,15) $GROEP_I3_DNS = GUICtrlCreateLabel("",15,334,240,15) $GROEP_I3_DHCP = GUICtrlCreateLabel("",15,349,240,15) $GROEP_I3_DISABLE = GUICtrlCreateButton("OFF",268,267,30,30) GUICtrlSetState(-1,$GUI_DISABLE) GUICtrlSetOnEvent(-1,"_JANDisableInterface3") $GROEP_I3_ENABLE = GUICtrlCreateButton("ON",237,267,30,30) GUICtrlSetState(-1,$GUI_ENABLE) GUICtrlSetOnEvent(-1,"_JANEnableInterface3") ; Groep van de vierde interface $GROEP_INTERFACE4 = GUICtrlCreateGroup($Interface4, 11,370,289,110, BitOr($GUI_SS_DEFAULT_GROUP,$BS_CENTER)) GUICtrlSetFont($GROEP_INTERFACE4,8.5,$FW_BOLD,"") $GROEP_I4_NAME = GUICtrlCreateLabel("",15,386,200,15) GUICtrlSetFont($GROEP_I4_NAME,8.5,$FW_BOLD,"") $GROEP_I4_STATUS = GUICtrlCreateLabel("",15,401,200,15) $GROEP_I4_IP_SUBNET = GUICtrlCreateLabel("",15,416,240,15) $GROEP_I4_GATEWAY = GUICtrlCreateLabel("",15,431,200,15) $GROEP_I4_DNS = GUICtrlCreateLabel("",15,446,240,15) $GROEP_I4_DHCP = GUICtrlCreateLabel("",15,461,240,15) $GROEP_I4_DISABLE = GUICtrlCreateButton("OFF",268,379,30,30) GUICtrlSetState(-1,$GUI_DISABLE) GUICtrlSetOnEvent(-1,"_JANDisableInterface4") $GROEP_I4_ENABLE = GUICtrlCreateButton("ON",237,379,30,30) GUICtrlSetState(-1,$GUI_ENABLE) GUICtrlSetOnEvent(-1,"_JANEnableInterface4") $BUTTON_STOP_ALL_INTERFACES = GUICtrlCreateButton("Stop All",11,525,289,30) GUICtrlSetFont(-1,11,$FW_BOLD,"") GUICtrlSetBkColor(-1,0xDA3C3C) GUICtrlSetOnEvent(-1,"_JANStopAllInterfaces") $BUTTON_START_ALL_INTERFACES = GUICtrlCreateButton("Start All",11,557,289,30) GUICtrlSetFont(-1,11,$FW_BOLD,"") GUICtrlSetBkColor(-1,0x00CC66) GUICtrlSetOnEvent(-1,"_JANStartAllInterfaces") $BUTTON_REFRESH_INTERFACES = GUICtrlCreateButton("Refresh",11,589,289,30) GUICtrlSetFont(-1,11,$FW_BOLD,"") GUICtrlSetOnEvent(-1,"_RefreshNetwork") ;PING-TAB $TAB_PING = GUICtrlCreateTabItem("Ping") ;NETWERK-TAB, Groep PANEL $GROEP_PANEL = GUICtrlCreateGroup("Panel", 11, 34, 289, 161, BitOR($GUI_SS_DEFAULT_GROUP,$BS_CENTER)) $IP_ADRES_PANEL_LABEL = GUICtrlCreateLabel("IP-adres", 19, 50, 51, 17) GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif") $IP_ADRES_PANEL = GUICtrlCreateLabel($PING_PANEL_IP, 83, 50, 120, 17) ;Maak de knop aan om de panel te pingen $BUTTON_PING_PANEL = GUICtrlCreateButton("Ping", 203, 46, 89, 25) ;Roep de functie aan om de panel te pingen bij het drukken op de knop GUICtrlSetOnEvent($BUTTON_PING_PANEL, "VSOL_FUNC_BUTTON_PING_PANEL") $PING_PANEL_STATUS = GUICtrlCreateEdit("", 24, 80, 265, 105, BitOR($ES_AUTOVSCROLL,$ES_WANTRETURN,$WS_VSCROLL)) GUICtrlSetData(-1, "") GUICtrlSetFont(-1, 7, 400, 0, "Microsoft Sans Serif") GUICtrlSetColor(-1, 0xFFFFFF) GUICtrlSetBkColor(-1, 0x000000) GUICtrlCreateGroup("", -99, -99, 1, 1) ;NETWERK-TAB, Groep ROUTER $GROEP_ROUTER = GUICtrlCreateGroup("Router", 11, 194, 289, 161, BitOR($GUI_SS_DEFAULT_GROUP,$BS_CENTER,$BS_FLAT)) $IP_ADRES_ROUTER_LABEL = GUICtrlCreateLabel("IP-adres", 19, 210, 51, 17) GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif") $IP_ADRES_ROUTER = GUICtrlCreateLabel($PING_ROUTER_IP, 83, 210, 120, 17) ;Maak de knop aan om de router te pingen $BUTTON_PING_ROUTER = GUICtrlCreateButton("Ping", 203, 206, 89, 25) ;Roep de functie aan om de router te pingen bij het drukken op de knop GUICtrlSetOnEvent($BUTTON_PING_ROUTER, "VSOL_FUNC_BUTTON_PING_ROUTER") $PING_ROUTER_STATUS = GUICtrlCreateEdit("", 24, 240, 265, 105, BitOR($ES_AUTOVSCROLL,$ES_WANTRETURN,$WS_VSCROLL)) GUICtrlSetData(-1, "") GUICtrlSetFont(-1, 7, 400, 0, "Microsoft Sans Serif") GUICtrlSetColor(-1, 0xFFFFFF) GUICtrlSetBkColor(-1, 0x000000) GUICtrlCreateGroup("", -99, -99, 1, 1) ;NETWERK-TAB, Groep MANUEEL $GROEP_MANUEEL = GUICtrlCreateGroup("Manueel", 11, 354, 289, 161, BitOR($GUI_SS_DEFAULT_GROUP,$BS_CENTER,$BS_FLAT)) $IPADRESMANUEEL = _GUICtrlIpAddress_Create($VSOL_BACKEND, 19, 370, 184, 25, -1, 0) _GUICtrlIpAddress_Set($IPADRESMANUEEL, "0.0.0.0") ControlHide($VSOL_BACKEND,"",$IPADRESMANUEEL) $BUTTON_PING_MANUEEL = GUICtrlCreateButton("Ping", 211, 370, 81, 25) ;Roep de functie aan om manueel te pingen bij het drukken op de knop GUICtrlSetOnEvent($BUTTON_PING_MANUEEL, "VSOL_FUNC_BUTTON_PING_MANUEEL") $PING_MANUEEL_STATUS = GUICtrlCreateEdit("", 24, 400, 265, 105, BitOR($ES_AUTOVSCROLL,$ES_WANTRETURN,$WS_VSCROLL)) GUICtrlSetData(-1, "") GUICtrlSetFont(-1, 7, 400, 0, "Microsoft Sans Serif") GUICtrlSetColor(-1, 0xFFFFFF) GUICtrlSetBkColor(-1, 0x000000) GUICtrlCreateGroup("", -99, -99, 1, 1) ;FUJIFILM-TOOLS-TAB $TAB_FUJIFILM_TOOLS = GUICtrlCreateTabItem("FujiFilm Tools") $FFTOOLS_SU = GUICtrlCreateButton("Service Utility", 11, 34, 289, 40, BitOR($GUI_SS_DEFAULT_GROUP,$BS_CENTER)) GUICtrlSetOnEvent($FFTOOLS_SU, "VSOL_FFTOOLS_SU") GUICtrlSetState($FFTOOLS_SU,$GUI_DISABLE) $FFTOOLS_UU = GUICtrlCreateButton("User Utility", 11,79,289,40, BitOr($GUI_SS_DEFAULT_GROUP,$BS_CENTER)) GUICtrlSetOnEvent($FFTOOLS_UU, "VSOL_FFTOOLS_UU") GUICtrlSetState($FFTOOLS_UU,$GUI_DISABLE) $FFTOOLS_RUPC = GUICtrlCreateButton("RUPC-tool", 11,124,289,40, BitOr($GUI_SS_DEFAULT_GROUP,$BS_CENTER)) GUICtrlSetOnEvent($FFTOOLS_RUPC, "VSOL_FFTOOLS_RUPC") GUICtrlSetState($FFTOOLS_RUPC,$GUI_DISABLE) $FFTOOLS_RESTART_MCM = GUICtrlCreateButton("Herstart MCManager", 11,169,289,40, BitOr($GUI_SS_DEFAULT_GROUP,$BS_CENTER)) GUICtrlSetOnEvent($FFTOOLS_RESTART_MCM, "VSOL_FFTOOLS_RESTART_MCM") GUICtrlSetState($FFTOOLS_RESTART_MCM,$GUI_DISABLE) ;SETTINGS-TAB $TAB_SETTINGS = GUICtrlCreateTabItem("Settings") $FFSETTINGS_INTERFACE1_LABEL = GUICtrlCreateLabel("Interface 1",11,34,140) $FFSETTINGS_INTERFACE1_INPUT = GUICtrlCreateInput($Interface1,155,34,140) GUICtrlSetState(-1,64) $FFSETTINGS_INTERFACE2_LABEL = GUICtrlCreateLabel("Interface 2",11,59,140) $FFSETTINGS_INTERFACE2_INPUT = GUICtrlCreateInput($Interface2,155,59,140) GUICtrlSetState(-1,64) $FFSETTINGS_INTERFACE3_LABEL = GUICtrlCreateLabel("Interface 3",11,84,140) $FFSETTINGS_INTERFACE3_INPUT = GUICtrlCreateInput($Interface3,155,84,140) GUICtrlSetState(-1,64) $FFSETTINGS_INTERFACE4_LABEL = GUICtrlCreateLabel("Interface 4",11,109,140) $FFSETTINGS_INTERFACE4_INPUT = GUICtrlCreateInput($Interface4,155,109,140) GUICtrlSetState(-1,64) $FFSETTINGS_PANEL_LABEL = GUICtrlCreateLabel("Panel IP",11,144,140) $FFSETTINGS_PANEL_INPUT = GUICtrlCreateInput($PING_PANEL_IP,155,144,140) GUICtrlSetState(-1,64) $FFSETTINGS_ROUTER_LABEL = GUICtrlCreateLabel("Router IP",11,169,140) $FFSETTINGS_ROUTER_INPUT = GUICtrlCreateInput($PING_ROUTER_IP,155,169,140) GUICtrlSetState(-1,64) $FFSETTINGS_WIFIFUJI_LABEL = GUICtrlCreateLabel("Panelconnectie",11,204,284) $FFSETTINGS_WIFIFUJI_INPUT = GUICtrlCreateInput($WifiFUJIFILM,155,204,140) GUICtrlSetState(-1,64) $FFSETTINGS_WIFIFREE1_LABEL = GUICtrlCreateLabel("Wifi-adapter 2",11,229,284) $FFSETTINGS_WIFIFREE1_INPUT = GUICtrlCreateInput($WifiFREE1,155,229,140) GUICtrlSetState(-1,64) $FFSETTINGS_WIFIFREE2_LABEL = GUICtrlCreateLabel("Wifi-adapter 3",11,254,284) $FFSETTINGS_WIFIFREE2_INPUT = GUICtrlCreateInput($WifiFREE2,155,254,140) GUICtrlSetState(-1,64) $FFSETTINGS_SAVE_BUTTON = GUICtrlCreateButton("Save settings",11,300,284) GuiCtrlSetOnEvent($FFSETTINGS_SAVE_BUTTON, "SaveNaarIni") ;Beëindig het maken van tabs GUICtrlCreateTabItem("") GUISetState(@SW_SHOW,$VSOL_BACKEND) #EndRegion ### END Koda GUI section ### Link to comment Share on other sites More sharing options...
Subz Posted February 8, 2018 Share Posted February 8, 2018 Your labels are over the top of your input fields, change 284 to 140 and it should work fine. jantograaf 1 Link to comment Share on other sites More sharing options...
jantograaf Posted February 8, 2018 Author Share Posted February 8, 2018 Oh god. OH GOD! I was so lost in my code that I didn't see the obvious. Sorry for bothering y'all. Thanks, Subz! Link to comment Share on other sites More sharing options...
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