Autor Beitrag
Flow_K
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 21

Windows XP

BeitragVerfasst: Sa 11.03.06 20:07 
Hey...

Ich habe eine Frage zu "Canvas" und zwar: Ist es auch möglich,dass man anstatt nur auf dem Formular herumzuzeichnen, auch in einer Groupbox zeichnen kann?

Wäre sehr nett,wenn mir jemand sagen könnte ob und wie das geht...;)

Gruß Flo
aim65
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 312

Win 9x, Win XP
Delphi 3pro, 7PE
BeitragVerfasst: Sa 11.03.06 21:06 
Kriegst sicher noch bessere Antworten, aber so etwas mache ich mit einem Panel, packe eine Paintbox drauf und dann:
ausblenden Delphi-Quelltext
1:
 with Form1.PaintBox1.Canvas do...					

Obwohl die Paintbox auf dem Panel liegt (sich auch mit Panel auf der Form verschieben läßt), stimmt die Zeile so.
Hab's mit GroupBox probiert, dort geht's nicht (die gemalte line bleibt unsichtbar).

EDIT (zur Geisterstunde): Es geht DOCH auch mit der Groupbox. Verfahren wie oben. Weiß nicht, warum#s beim ersten versuch nicht klappte...
Flow_K Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 21

Windows XP

BeitragVerfasst: So 12.03.06 19:42 
Cool!

Funktioniert bei mir auch... vielen Dank! das hat mich ne ganze Menge Arbeit gekostet;)

Flo
F34r0fTh3D4rk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 5285
Erhaltene Danke: 29

Win Vista (32), Win 7 (64)
Eclipse, SciTE, Lazarus
BeitragVerfasst: So 12.03.06 20:05 
kannst auch ein image oder ne paintbox in die groupbox packen.
Flow_K Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 21

Windows XP

BeitragVerfasst: So 12.03.06 20:21 
Hat sich alles erledigt...danke!