Servus,
Ich bin gerade beim Erstellen eines Controls auf ein Problem gestoßen:
Mein Control enthält Items, die nach und nach horizontal gerendert werden.
Etwas so:
[Item] .. [Item] .. [Item]
Mein Control erbt von ScrollableControl, was das Scrollen möglich macht.
Damit das Control die Scrollbalken anzeigt wenn die Items außerhalb des Control sind, benutzte ich diesen Code:
(Max.Sum() Ist die Gesamt-Breite der Items. Offset spielt keine Rolle.)
Klappt auch alles wunderbar, jedoch werden die gezeichneten Items beim scrollen "verwischt".
Ähnlich wie wenn man ein Programm, worin mit GDI gezeichnet wird, minimiert.
(Siehe Anhang)
Meine Frage:
Ist es möglich das zu unterbinden?
Meine SetStyle-Flags:
PS: Bei OnScroll zu invalidieren bringt auch nichts.
Liebe Grüße
Ich bin gerade beim Erstellen eines Controls auf ein Problem gestoßen:
Mein Control enthält Items, die nach und nach horizontal gerendert werden.
Etwas so:
[Item] .. [Item] .. [Item]
Mein Control erbt von ScrollableControl, was das Scrollen möglich macht.
Damit das Control die Scrollbalken anzeigt wenn die Items außerhalb des Control sind, benutzte ich diesen Code:
(Max.Sum() Ist die Gesamt-Breite der Items. Offset spielt keine Rolle.)
Klappt auch alles wunderbar, jedoch werden die gezeichneten Items beim scrollen "verwischt".
Ähnlich wie wenn man ein Programm, worin mit GDI gezeichnet wird, minimiert.
(Siehe Anhang)
Meine Frage:
Ist es möglich das zu unterbinden?
Meine SetStyle-Flags:
PS: Bei OnScroll zu invalidieren bringt auch nichts.
Liebe Grüße
/nicht getestet