Gui einstellung wird nicht übernommen... Topic is solved

Stelle Fragen zur Programmierung mit Autohotkey

Moderator: jNizM

GamerG1rl
Posts: 48
Joined: 23 Nov 2017, 04:44

Gui einstellung wird nicht übernommen...

25 Oct 2018, 03:02

huhu.

ich hänge grade wohl irgendwie fest...
Wieso wird hier das -SysMenu und +AlwaysOnTop nicht übernommen ?

Code: Select all

Gui, 3:Destroy
Gui, 6:+AlwaysOnTop
Gui, 6:-SysMenu
Gui, 7:-SysMenu

; #####################################
; Variable01 -> 0 = Kommt von Main.ahk
; Variable01 -> 1 = Änderung an Ini
; Variable01 -> 2 = Keine Änderung
; #####################################

	Gui, 6:Destroy
	IniRead, Halle_Alt, %A_ScriptDir%\settings.ini, Lagerbestand, Halle
	IniRead, Regal_Alt, %A_ScriptDir%\settings.ini, Lagerbestand, Regal
	IniRead, Ebene_Alt, %A_ScriptDir%\settings.ini, Lagerbestand, Ebene

	Gui, 6:Add, Edit, x12 y29 w40 h20 ReadOnly, %Halle_Alt%
	Gui, 6:Add, Edit, x62 y29 w40 h20 ReadOnly, %Regal_Alt%
	Gui, 6:Add, Edit, x112 y29 w40 h20 ReadOnly, %Ebene_Alt%
	Gui, 6:Add, CheckBox, x12 y49 w140 h20 +BackgroundTrans vposdelete, Alte Pos löschen ?
	Gui, 6:Add, Text, x12 y9 w40 h20 +BackgroundTrans, Halle
	Gui, 6:Add, Text, x62 y9 w40 h20 +BackgroundTrans, Regal
	Gui, 6:Add, Text, x112 y9 w40 h20 +BackgroundTrans, Ebene
	Gui, 6:Add, Button, x22 y79 w50 h30 gNext, Next
	Gui, 6:Add, Button, x92 y79 w50 h30 gaendern, Ändern
	Gui, 6:Add, Button, x52 y119 w60 h30 gabbrechen1, Abbrechen
	
	; ### Menu ###
	{
	Menu, FileMenu, Add, Position speichern, ini6, MenuHandler
	Menu, FileMenu, Add, Exit, 6GuiClose, MenuHandler

	Menu, MyMenuBar, Add, &Datei, :FileMenu
	Gui, 6:Menu, MyMenuBar
	}
	
	Gui, 6:Show, %x6% %y6% h156 w175 ,Gui 6
	Return
	
	6GuiClose:
	ExitApp
User avatar
nnnik
Posts: 4500
Joined: 30 Sep 2013, 01:01
Location: Germany

Re: Gui einstellung wird nicht übernommen...  Topic is solved

25 Oct 2018, 03:29

Weil du direkt danach das GUI wieder zerstörst mit GUI, 6:Destroy
Recommends AHK Studio
GamerG1rl
Posts: 48
Joined: 23 Nov 2017, 04:44

Re: Gui einstellung wird nicht übernommen...

25 Oct 2018, 03:39

*facepalm* ja kla... :D Danke

Return to “Ich brauche Hilfe”

Who is online

Users browsing this forum: No registered users and 13 guests