Jump to content

Recommended Posts

Posted (edited)

Hello,

I have the problem, that 2 Guis bug irregular to one together. So it looks like this:

?thumbnail=1

the most time it looks right like this:

?thumbnail=1

The second GUI is hiden at the start:

?thumbnail=1

I don't think thar it is usefull to print 1000 lines of code, so i only post the second GUI for the begining:

;----------------------------------------------------------------------------
;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 by Floooooo24
Link to post
Share on other sites
  • Moderators
Posted (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 by Melba23
Speeling

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to post
Share on other sites
Posted (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 by Musashi
typo

Musashi-C64.png

"In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move."

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

    No registered users viewing this page.

×
×
  • Create New...