Autor Beitrag
No0B
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 62



BeitragVerfasst: So 11.04.10 17:14 
Hallo, würde mal gerne wissen ob es möglich ist ein Bild als Form zu nutzen ?

Ich würde gerne genau die Umrisse des Bildes als Form haben also nicht rechteckig. Ist so was möglich ?
elundril
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: So 11.04.10 17:39 
naja, wenn du keine Transparenz im Bild haben willst (also sowas wie nen selbstgezeichneten schatten) könntest du die TransparentColorValue-Eigenschaft vom Form auf clLime oder einer farbe setzen die du auf dem Bild nicht hast, dann TransparentColor auf True und die Farbe vom Formular auf die selbe die du in der TransparentColorValue-Eigenschaft hast. Wenn du nun auf dein Formular ein Bild zeichnest oder ein TImage draufpappst, bleibt genau das Bild übrig (bzw die Bereiche des Bildes die nicht die Farbe haben die die TransparentColorValue-Eigenschaft hat).

lg elundril

_________________
This Signature-Space is intentionally left blank.
Bei Beschwerden, bitte den Beschwerdebutton (gekennzeichnet mit PN) verwenden.
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8549
Erhaltene Danke: 478

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: So 11.04.10 17:54 
Schau dir mal dieses Topic an, oder für einfachere Sachen dieses.

Irgendwo habe ich auch mal was gesehen, das sowas auch mit halb transparenten Bildern (PNGs) macht, aber das finde ich auf Anhieb nicht mehr.

_________________
We are, we were and will not be.
elundril
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: So 11.04.10 17:57 
das hier vielleicht?

_________________
This Signature-Space is intentionally left blank.
Bei Beschwerden, bitte den Beschwerdebutton (gekennzeichnet mit PN) verwenden.
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8549
Erhaltene Danke: 478

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: So 11.04.10 18:05 
Ne, das Beispiel, das ich im Kopf hab, sah anders aus. Aber damit scheint das ja auch zu gehen. :D

_________________
We are, we were and will not be.