Floooooo24 Posted May 10, 2022 Posted May 10, 2022 (edited) Hello, I have the problem, that 2 Guis bug irregular to one together. So it looks like this: the most time it looks right like this: The second GUI is hiden at the start: I don't think thar it is usefull to print 1000 lines of code, so i only post the second GUI for the begining: expandcollapse popup;---------------------------------------------------------------------------- ;Create New Error-GUI ;---------------------------------------------------------------------------- ;GUI create Local $hNewError = _Metro_CreateGUI("New Error", 500, 300, -1, -1, True) ;Erstellt die GUI GUISetState(@SW_HIDE, $hNewError) ;Versteckt die GUI $hNewError ;Create Control-Buttons (oben rechts) Local $Control_Buttons = _Metro_AddControlButtons(True, False, False, False, False) ;create Gui flags Local $GUI_CLOSE_BUTTON_NewError = $Control_Buttons[0] ;---------------------------------------------------------------------------- ;Design New Error-GUI ;---------------------------------------------------------------------------- ;Create Treeview Local $gTreeview_New = GUICtrlCreateTreeView(0 + $hGUI_OffsetX, 10 + $hGUI_OffsetY, 200, 250) ;Erstellt eine Treelist GUICtrlSetBkColor($gTreeview_New, "0x" & Int(StringRight($GUIThemeColor, 6)) + 052005) ;setzt die Hintergrundfarbe GUICtrlSetColor($gTreeview_New, $ButtonTextColor) ;setzt die Textfarbe GUICtrlSetFont($gTreeview_New, 11) ;setzt die Textgröße Local $gLabelName_New = GUICtrlCreateLabel("Erorr Name: ", 210 + $hGUI_OffsetX, 10 + $hGUI_OffsetY, 150, 25) ;Erstellt ein Label GUICtrlSetColor($gLabelName_New, $ButtonTextColor) ;setzt die Textfarbe GUICtrlSetFont($gLabelName_New, 13) ;setzt die Textgröße Local $gEditName_New = GUICtrlCreateEdit("",210 + $hGUI_OffsetX, 35 + $hGUI_OffsetY, 260, 25, BitOR($ES_AUTOHSCROLL, $ES_AUTOVSCROLL), 0) ;Erstellt ein Edit GUICtrlSetBkColor($gEditName_New, "0x" & Int(StringRight($GUIThemeColor, 6)) + 252525) ;setzt die Hintergrundfarbe GUICtrlSetColor($gEditName_New, $ButtonTextColor) ;setzt die Textfarbe GUICtrlSetFont($gEditName_New, 13, Default, Default, "Courier New") ;setzt die Textgröße und die Schrifftart Local $gLabelBeschreibung_New = GUICtrlCreateLabel("Description: ", 210 + $hGUI_OffsetX, 70 + $hGUI_OffsetY, 150, 25) ;Erstellt ein Label GUICtrlSetColor($gLabelBeschreibung_New, $ButtonTextColor) ;setzt die Textfarbe GUICtrlSetFont($gLabelBeschreibung_New, 13) ;setzt die Textgröße Local $gEditBeschreibung_New = GUICtrlCreateEdit("",210 + $hGUI_OffsetX, 95 + $hGUI_OffsetY, 260, 100, BitOR($ES_WANTRETURN, $ES_AUTOHSCROLL, $ES_AUTOVSCROLL), 0) ;Erstellt ein Edit GUICtrlSetBkColor($gEditBeschreibung_New, "0x" & Int(StringRight($GUIThemeColor, 6)) + 252525) ;setzt die Hintergrundfarbe GUICtrlSetColor($gEditBeschreibung_New, $ButtonTextColor) ;setzt die Textfarbe GUICtrlSetFont($gEditBeschreibung_New, 13, Default, Default, "Courier New") ;setzt die Textgröße und die Schrifftart Local $gSaveButton_New = _Metro_CreateButton("Save", 210 + $hGUI_OffsetX, 210 + $hGUI_OffsetY, 260, 50) ;Erstellt einen Button $root = _GUICtrlTreeView_AddChild($gTreeview_New, "", "Datenbank") ;definiert den Pfad, aus dem, die Ordner aufgelistet werden sollen _SearchFolder(@ScriptDir & "\Datenbank", $root, False, Default, $gTreeview_New) ;Startet die auflistung der Datein und Ordnern und ergänzt sie in der Treeview Thank you for the help Flo Edited May 10, 2022 by Floooooo24
Moderators Melba23 Posted May 11, 2022 Moderators Posted May 11, 2022 (edited) Floooooo24, If you want some help you are going to have to do a bit better than that! A single section of your code is not a lot of help in trying to work out what is going on. So you need to give us some more information: Have you tried without the Metro style UDF? Does the same problem arise when you do NOT have a skin? What about posting just the very basic GUI and control creation code? That might give us a clue. So please help us to help you. M23 Edited May 11, 2022 by Melba23 Speeling Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Musashi Posted May 11, 2022 Posted May 11, 2022 (edited) On 5/10/2022 at 10:18 AM, Floooooo24 said: Thank you for the help You have already asked the same question in the german forum and also received answers. To avoid unnecessary (duplicate) work for the helpers in the english forum, a hint would have been quite nice. Edited May 11, 2022 by Musashi typo "In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move."
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