Hallo Leute,
ich habe ein kleines Problemchen und komme nicht weiter in oben genannten Thema. Ich möchte das meine Buttons sich automatisch an den text den Sie beinhalten anpassen. Wenn der Button 20 Zeichen an text enthält sollte dieser auch den kompletten text anzeigen.
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
$Form1 = GuiCreate("test", 585, 260, 2269, 263)
$f_path = "C:\Temp\text.txt"
$Label1 = GUICtrlCreateLabel($f_path, 24, 16, 524, 17)
$Button1 = GUICtrlCreateButton("test1", 24, 40, 75, 25)
$Button2 = GUICtrlCreateButton("test2", 112, 40, 75, 25)
$Button3 = GUICtrlCreateButton(StringLeft("Installation_" & $f_path, 7), 200, 40, 75, 25)
GUICtrlSetTip(-1, "Installation_" & $f_path)
$Button4 = GUICtrlCreateButton(StringLeft("Deinstallation_" & $f_path, 7), 288, 40, 75, 25)
GUICtrlSetTip(-1, "Deinstallation_" & $f_path)
$Button5 = GUICtrlCreateButton("Install File", 376, 40, 75, 25)
$Button6 = GUICtrlCreateButton("Add install File to test1", 24, 80, 75, 25)
GUICtrlSetResizing ($Button6, $GUI_DOCKRIGHT)
$Button7 = GUICtrlCreateButton("Cancel", 112, 176, 75, 25)
$Group1 = GUICtrlCreateGroup("Packagename", 8, 0, 569, 241)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $Button1
;~ Local $rc = _RunDos ('"start "" /wait notepad.exe "' & $f_path1)
Case $Button2
;~ Local $rc = _RunDos ('"start "" /wait notepad.exe "' & $f_path2)
Case $Button3
Case $Button4
Case $Button5
Local $exec = FileOpenDialog("select the file please", @DesktopDir, "Setup Files (*.exe;*.msi)")
Case $Button6
MsgBox(4096,"The file you selected is: " & $exec, $exec, 10)
Case $Button7
Exit
EndSwitch
WEnd
Wenn jemand von euch eine Idee hat, einfach her damit.
Thx for all.