Autor Beitrag
Spaceguide
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 552


(D3/D7/D8) Prof.
BeitragVerfasst: So 03.09.06 19:06 
Hi,
wenn ich eine Combobox aufklappe und im OnChange-Ergeignis etwas in eine TPaintBox zeichne, dann ist in der TPaintbox das alte Gezeichnete zu sehen, wenn man mittels Cursortasten die Auswahl geändert und mit Enter bestätigt hat. Irgendwie bekommt die verdeckte TPaintbox kein Refresh oder Invalidate beim Schließen der DropDown-Liste der Combobox mit. Erst wenn man ein Fenster über die TPaintBox hinwegschiebt wird deren Inhalt aktualisiert. Wähle ich ein Item hingegen mit der Maus aus, funktioniert alles bestens. Wie korrigiere ich das?
crowley
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 406

Win XP, Win Vista, Mandriva, Ubuntu
Delphi 4-8, Delphi 2006, Delphi 2007
BeitragVerfasst: Mo 04.09.06 14:58 
Sers,

ggf. könntest du ein Repaint der Paintbox im OnCloseUp- Event deiner Combobox auslösen... behebt zwar nicht das Fehlverhalten der Paintbox, aber löst dein Problem ;)

C.
Spaceguide Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 552


(D3/D7/D8) Prof.
BeitragVerfasst: Di 05.09.06 00:09 
Ja, danke, das hatte ich mittlerweile auch probiert, ist halt nicht wirklich schön. Zum Glück verwende ich eh eine Ableitung vom TCombobox, da lässt es sich direkt integrieren.