Autor Beitrag
Quivadis
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 314

UBUNTU 9.04
D2005 PERS, JAVA, D7 Pers.
BeitragVerfasst: Mo 14.03.05 02:15 
Hallo Freunde,

habe immer noch ein paar Probleme.

Ich habe ein Image auf dem ich male und Shapes als Anfasser setze in bestimmten abständen. Das geht schon ganz gut. Das Image passe ich immer an die Größe des Fensters an, die gemalte Linie wird auch immer an die richtige Position gesetzt, aber die Anfasser(shapes) bleiben immer an der gleichen Position. Soll heissen sie wandern nicht mit wenn das Bild vergrössert oder verkleinert wird.

Weiss jemand wie man das Problem lösen kann?

Danke, schonmal im vorraus.

Quivadis

_________________
Wissen ist macht, nichts wissen macht auch nichts. ODER: Wer nichts weis, kann nichts vergessen.
EUOCheffe
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 124



BeitragVerfasst: Mo 14.03.05 04:18 
Bin mir nicht ganz sicher, was du genau meinst, aber guck dir mal die Eigenschaften Align und Anchors an.

Zitat:
Use Align to align a control to the top, bottom, left, or right of a form or panel and have it remain there even if the size of the form, panel, or component that contains the control changes. When the parent is resized, an aligned control also resizes so that it continues to span the top, bottom, left, or right edge of the parent.


Zitat:
Use Anchors to ensure that a control maintains its current position relative to an edge of its parent, even if the parent is resized. When its parent is resized, the control holds its position relative to the edges to which it is anchored.
Quivadis Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 314

UBUNTU 9.04
D2005 PERS, JAVA, D7 Pers.
BeitragVerfasst: Mo 14.03.05 19:18 
Irgendwie bekomme ich das damit nicht hin. Die shapes sollen immer an derselben Position im Image bleiben. Jetzt wandern sie zwar mit, aber leider immer noch verkehrt. Das Image stretche ich propertional, das könnte das Problem.

Leider bekomme ich die shapes nicht auf das Image, sonder nur auf das Panel.

Naja weiter probieren. Ich finde vielleicht noch eine richtige Lösung.

_________________
Wissen ist macht, nichts wissen macht auch nichts. ODER: Wer nichts weis, kann nichts vergessen.