Hallo!
Ich habe ein etwas seltsams Problem: Nachdem ich entdeckt habe das man die GUI's auch dynamisch, sprich "ziehen", machen kann, habe ich ein großes Projekt von mir damit ausgestattet.
Das funktioniert auch so weit sehr gut nur wenn ich das Fenster höher ziehe als es ursprünglich defniert war kann ich teilweise die Bildlaufleiste von einem GUICtrlCreateListView nicht mehr benutzen. Auch die Spaltenbreite läßt sich nicht mehr verändern. Der Mauszeiger ändert auch sein Symbol nicht mehr .
Mache ich das Fenster wieder kleiner ist alles OK. Andere Button's, Eingabefelder, Kaleder,... sind nicht davon betroffen.
Meine Defnition sieht so aus:
$kassenbuch = GUICreate($titel, 820, 650, $x_pos, $y_pos,BitOR($GUI_SS_DEFAULT_GUI,$WS_SIZEBOX,$WS_MAXIMIZEBOX,$WS_THICKFRAME))
$menu_datei = GUICtrlCreateMenu("&Datei")
$menu_laden = GUICtrlCreateMenuItem("Laden", $menu_datei)
$menu_speichern = GUICtrlCreateMenuItem("Speichern", $menu_datei)
$menu_speichernals = GUICtrlCreateMenuItem("Speichern als", $menu_datei)
$menu_ende = GUICtrlCreateMenuItem("Ende", $menu_datei)
$menu_Vorschlag_gui = GUICtrlCreateMenu("&Vorschlag")
$menu_Vorschlag_ini_load = GUICtrlCreateMenuItem("Liste laden", $menu_Vorschlag_gui)
$menu_Vorschlag_ini_save = GUICtrlCreateMenuItem("Liste speichern", $menu_Vorschlag_gui)
$menu_Vorschlag_ini_kill = GUICtrlCreateMenuItem("Liste löschen", $menu_Vorschlag_gui)
$info = GUICtrlCreateMenu("&Info")
$info_about = GUICtrlCreateMenuItem("About", $info)
$kalender = GUICtrlCreateMonthCal($heute, 5, 460, 191, 164)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT+$GUI_DOCKBOTTOM)
$info_lable = GUICtrlCreateLabel("Info", 5, 0, 1000, 30)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKRIGHT+$GUI_DOCKTOP+$GUI_DOCKBOTTOM)
GUICtrlSetFont($info_lable, 12, 800, 0, "MS Sans Serif")
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKRIGHT+$GUI_DOCKTOP+$GUI_DOCKBOTTOM)
GUICtrlSetColor ($info_lable, 0x0000ff)
$gruppe1 = GUICtrlCreateGroup("Eingabefeld", 200, 460, 615, 117)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT+$GUI_DOCKBOTTOM)
$Einnahme = GUICtrlCreateRadio("Einnahme", 210, 480, 97, 33)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT+$GUI_DOCKBOTTOM)
GUICtrlSetState(-1, $GUI_CHECKED)
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
$Ausgabe = GUICtrlCreateRadio("Ausgabe", 210, 510, 100, 25)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT+$GUI_DOCKBOTTOM)
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
$feld1 = GUICtrlCreateInput ("", 320, 510, 180, 21)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT+$GUI_DOCKBOTTOM)
$feld2 = GUICtrlCreateInput("", 520, 510, 60, 21)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT+$GUI_DOCKBOTTOM)
$feld3 = GUICtrlCreateInput("", 590, 510, 60, 21)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT+$GUI_DOCKBOTTOM)
$text_lable1 = GUICtrlCreateLabel("Kunde", 320, 490, 120, 19)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT+$GUI_DOCKBOTTOM)
$text_lable2 = GUICtrlCreateLabel("Arbeit €", 520, 490, 120, 19)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT+$GUI_DOCKBOTTOM)
$text_lable3 = GUICtrlCreateLabel("Verkauf €", 590, 490, 120, 19)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT+$GUI_DOCKBOTTOM)
$text_lable4 = GUICtrlCreateLabel("Kategorie", 600, 490, 120, 19)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT+$GUI_DOCKBOTTOM)
$kategorie = GUICtrlCreateCombo("", 600, 510, 145, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL,$CBS_SORT,$CBS_DROPDOWNLIST ))
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT+$GUI_DOCKBOTTOM)
GUICtrlSetData ($kategorie, "|" & $kategorie_daten)
GUICtrlCreateGroup($kategorie, -99, -99, 1, 1)
$gruppe2 = GUICtrlCreateGroup("Steuerung", 200, 570, 615, 55)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT+$GUI_DOCKBOTTOM)
$enter = GUICtrlCreateButton("Eingabe", 215, 590, 70, 25)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT+$GUI_DOCKBOTTOM)
$clear = GUICtrlCreateButton("Löschen", 300, 590, 70, 25)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT+$GUI_DOCKBOTTOM)
$sort = GUICtrlCreateButton("Sortieren", 385, 590, 70, 25)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT+$GUI_DOCKBOTTOM)
;Nach oben Button
$nachunten = GUICtrlCreateButton("â", 470, 590, 35, 25)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT+$GUI_DOCKBOTTOM)
GUICtrlSetFont(-1, 14, 800, 0, "Wingdings")
;Nach unten Button
$nachoben = GUICtrlCreateButton("á", 505, 590, 35, 25)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT+$GUI_DOCKBOTTOM)
GUICtrlSetFont(-1, 14, 800, 0, "Wingdings")
$Berichte = GUICtrlCreateButton("Bericht", 555, 590, 70, 25)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT+$GUI_DOCKBOTTOM)
$logview = GUICtrlCreateButton("Log-Buch", 645, 590, 70, 25)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT+$GUI_DOCKBOTTOM)
$Kassa_suchen = GUICtrlCreateButton("Suche", 730, 590, 70, 25)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT+$GUI_DOCKBOTTOM)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$vorschlag1 = GUICtrlCreateList("", 320, 535, 180, 44)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT+$GUI_DOCKBOTTOM)
$vor_text1 = GUICtrlCreateLabel("F1", 300, 537, 15, 20)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT+$GUI_DOCKBOTTOM)
GUICtrlSetColor ($vor_text1, 0x0077FF)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT+$GUI_DOCKBOTTOM)
$vor_text2 = GUICtrlCreateLabel("F2", 300, 551, 15, 20)
GUICtrlSetColor ($vor_text2, 0x0077FF)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT+$GUI_DOCKBOTTOM)
$vor_text3 = GUICtrlCreateLabel("Vorschläge", 220, 537, 55, 20)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT+$GUI_DOCKBOTTOM)
$last_wert1_1 = GUICtrlCreateLabel("", 530, 537, 40, 20)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT+$GUI_DOCKBOTTOM)
GUICtrlSetColor ($last_wert1_1, 0x0077FF)
$last_wert1_2 = GUICtrlCreateLabel("", 600, 537, 40, 20)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT+$GUI_DOCKBOTTOM)
GUICtrlSetColor ($last_wert1_2, 0x0077FF)
$last_wert2_1 = GUICtrlCreateLabel("", 530, 551, 40, 20)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT+$GUI_DOCKBOTTOM)
GUICtrlSetColor ($last_wert2_1, 0x0077FF)
$last_wert2_2 = GUICtrlCreateLabel("", 600, 551, 40, 20)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT+$GUI_DOCKBOTTOM)
GUICtrlSetColor ($last_wert2_2, 0x0077FF)
GUICtrlSetColor ($vor_text3, 0x0077FF)
$vor_text4 = GUICtrlCreateLabel("", 240, 552, 50, 22)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT+$GUI_DOCKBOTTOM)
GUICtrlSetColor ($vor_text4, 0x0077FF)
GUICtrlSetFont($vor_text4, 10, 800, 0, "MS Sans Serif")
$gruppe3 = GUICtrlCreateGroup("Anzeige", 5, 32, 810, 430)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKRIGHT+$GUI_DOCKTOP+$GUI_DOCKBOTTOM)
$ListView1 = GUICtrlCreateListView("Datum EN|Datum DE|E/A|Text|WERT1|WERT2|Kategorie|B/kB", 10, 56, 800, 400)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKRIGHT+$GUI_DOCKTOP+$GUI_DOCKBOTTOM)
_GUICtrlListView_SetColumn($ListView1, 0, "Datum EN", 0, 0)
_GUICtrlListView_SetColumn($ListView1, 1, "Datum DE", 70, 0)
_GUICtrlListView_SetColumn($ListView1, 2, "E/A", 40, 0)
_GUICtrlListView_SetColumn($ListView1, 3, "Text", 280, 0)
_GUICtrlListView_SetColumn($ListView1, 4, "Wert1", 60, 0)
_GUICtrlListView_SetColumn($ListView1, 5, "Wert2", 60, 0)
_GUICtrlListView_SetColumn($ListView1, 6, "Kategorie", 120, 0)
_GUICtrlListView_SetColumn($ListView1, 7, "B/kB", 40, 0)
$contextmenu = GUICtrlCreateContextMenu ($ListView1)
$bearbeiten = GUICtrlCreateMenuitem ("bearbeiten", $contextmenu)
$loeschen = GUICtrlCreateMenuitem ("löschen", $contextmenu)
$belegflag = GUICtrlCreateMenuitem ("Beleg/kein Beleg", $contextmenu)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUISetState(@SW_SHOW)
;Eigenes Fenster für Runtime Log (wird nicht in einer Datei aufgezeichnet)
$logview_fenster = GUICreate("logviewer", 500, 300, 10, 10, BitOR($ES_READONLY,$ES_WANTRETURN))
$logvier_edit = _GUICtrlRichEdit_Create($logview_fenster, "", 0, 0, 495, 280, BitOR($ES_MULTILINE, $WS_VSCROLL, $ES_AUTOVSCROLL))
GUISetState($GUI_HIDE, $logview_fenster)
;Suchefenster
$Kassenbuch_suche = GUICreate("Kassenbuch-Suche", 800, 650, $x_pos, $y_pos, BitOR($WS_SIZEBOX,$ES_READONLY,$ES_WANTRETURN,$GUI_SS_DEFAULT_GUI))
;$Kassenbuch_suche = GUICreate("Kassenbuch-Suche", 800, 650, $x_pos, $y_pos, BitOR($WS_SIZEBOX,$WS_THICKFRAME,$WS_SYSMENU,$WS_POPUP))
$Kassenbuch_List = GUICtrlCreateListView("Datum EN|Datum DE|E/A|Text|WERT1|WERT2|Kategorie|B/kB", 10, 10, 775, 500)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKRIGHT+$GUI_DOCKTOP+$GUI_DOCKBOTTOM)
_GUICtrlListView_SetColumn($Kassenbuch_List, 0, "Datum EN", 0, 0)
_GUICtrlListView_SetColumn($Kassenbuch_List, 1, "Datum DE", 70, 0)
_GUICtrlListView_SetColumn($Kassenbuch_List, 2, "E/A", 40, 0)
_GUICtrlListView_SetColumn($Kassenbuch_List, 3, "Text", 250, 0)
_GUICtrlListView_SetColumn($Kassenbuch_List, 4, "Wert1", 60, 0)
_GUICtrlListView_SetColumn($Kassenbuch_List, 5, "Wert2", 60, 0)
_GUICtrlListView_SetColumn($Kassenbuch_List, 6, "Kategorie", 120, 0)
_GUICtrlListView_SetColumn($Kassenbuch_List, 7, "B/kB", 40, 0)
$Kassenbuch_gruppe1 = GUICtrlCreateGroup("Textsuche", 10, 515, 775, 100)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT+$GUI_DOCKBOTTOM)
$Kassenbuch_lable = GUICtrlCreateLabel("Suchtext bitte hier eingeben:", 30, 533, 150, 20)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT+$GUI_DOCKBOTTOM)
GUICtrlSetColor ($Kassenbuch_lable, 0x0077FF)
$Kassenbuch_Eingabe = GUICtrlCreateInput ("", 30, 550, 180, 21)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT+$GUI_DOCKBOTTOM)
$kassenbuch_button_suche = GUICtrlCreateButton("Suche", 30, 580, 80, 25)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT+$GUI_DOCKBOTTOM)
$kassenbuch_sauber = GUICtrlCreateButton("Löschen", 130, 580, 80, 25)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT+$GUI_DOCKBOTTOM)
$kassenbuch_uebernehmen = GUICtrlCreateButton("Übernehmen", 230, 580, 80, 25)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT+$GUI_DOCKBOTTOM)
$kassenbuch_datum_reset = GUICtrlCreateButton("Datum Reset", 330, 580, 80, 25)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT+$GUI_DOCKBOTTOM)
$kassenbuch_button_exit = GUICtrlCreateButton("schliessen", 700, 580, 80, 25)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT+$GUI_DOCKBOTTOM)
$kassenbuch_datum_von_text = GUICtrlCreateLabel ("Anfangsdatum", 330, 533, 75, 18)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT+$GUI_DOCKBOTTOM)
GUICtrlSetColor ($kassenbuch_datum_von_text, 0x0077FF)
$kassenbuch_datum_von_gui = GUICtrlCreateDate("", 330, 550, 75, 20, 0)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT+$GUI_DOCKBOTTOM)
$kassenbuch_datum_bis_text = GUICtrlCreateLabel ("Endedatum", 420, 533, 75, 18)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT+$GUI_DOCKBOTTOM)
GUICtrlSetColor ($kassenbuch_datum_bis_text, 0x0077FF)
$kassenbuch_datum_bis_gui = GUICtrlCreateDate("", 420, 550, 75, 20, 0)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT+$GUI_DOCKBOTTOM)
$Kassenbuch_gruppe2 = GUICtrlCreateGroup("Filter: Datum", 320, 515, 190, 100)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT+$GUI_DOCKBOTTOM)
$Kassenbuch_ein = GUICtrlCreateRadio("Einnahme", 520, 530, 70, 25)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT+$GUI_DOCKBOTTOM)
GUICtrlSetState(-1, $GUI_UNCHECKED)
$Kassenbuch_aus = GUICtrlCreateRadio("Ausgabe", 520, 555, 70, 25)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT+$GUI_DOCKBOTTOM)
GUICtrlSetState(-1, $GUI_UNCHECKED)
$Kassenbuch_alles = GUICtrlCreateRadio("Beides", 520, 580, 70, 25)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT+$GUI_DOCKBOTTOM)
GUICtrlSetState(-1, $GUI_CHECKED)
$Kassenbuch_gruppe3 = GUICtrlCreateGroup("Ein/Ausgabe", 510, 515, 85, 100)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT+$GUI_DOCKBOTTOM)
$Kassenbuch_beleg_ok = GUICtrlCreateRadio("Beleg", 610, 530, 70, 25)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT+$GUI_DOCKBOTTOM)
GUICtrlSetState(-1, $GUI_UNCHECKED)
$Kassenbuch_beleg_kein = GUICtrlCreateRadio("kein Beleg", 610, 555, 70, 25)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT+$GUI_DOCKBOTTOM)
GUICtrlSetState(-1, $GUI_UNCHECKED)
$Kassenbuch_beleg_beides = GUICtrlCreateRadio("Beides", 610, 580, 70, 25)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT+$GUI_DOCKBOTTOM)
GUICtrlSetState(-1, $GUI_CHECKED)
$Kassenbuch_gruppe4 = GUICtrlCreateGroup("Filter: Beleg", 595, 515, 100, 100)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT+$GUI_DOCKBOTTOM)
GUISetState($GUI_HIDE, $Kassenbuch_suche)
Alles anzeigen
Das ist nur ein Auszug...
Mache ich da etwas falsch beim definieren von dem GUICtrlSetResizing ???
Das Problem kommt unter AutoIT 3.3.14.0 als auch unter 3.3.15.0 sowohl unter Windows 7 SP1 x64 und Win10 x64
Bitte um Unterstützung
lg
Racer