Autor Beitrag
Hopsekey
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 26



BeitragVerfasst: Mi 04.06.03 09:38 
Ich habe ein Formular mit einem Menü. Das Hauptformular ist 1 cm größer (nach unten gezogen) als das Menü. Ich will das Hauptformular aber durchsichtig machen, so dass ich nur noch das Menü und die obere Leiste mit Vergrößern, Verkleinern, ... sehe.
1. Frage: geht das?
2. Frage: Falls ja, WIE?
Moritz M.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Mi 04.06.03 10:34 
1)Ja
2)Es gibt da die Eigenschaften TransparentColor und TransparentColorValue bei der Form. TransparentColor setzt du auf true und TransparentColorValue auf die Farbe der Form. Musst halt aufpassen, weil TransparentColorValue alle Farben, die so sind, auf Trabsparent setzt. Also musst du für die Form eine spezielle Frabe nehmen.
Tweafis
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 647

WinXP + fbsd
Delphi 5 Prof
BeitragVerfasst: Mi 04.06.03 12:30 
Onz hat folgendes geschrieben:
2)Es gibt da die Eigenschaften TransparentColor und TransparentColorValue bei der Form. TransparentColor setzt du auf true und TransparentColorValue auf die Farbe der Form. Musst halt aufpassen, weil TransparentColorValue alle Farben, die so sind, auf Trabsparent setzt. Also musst du für die Form eine spezielle Frabe nehmen.


Falls wir von der gleichen Form (TForm) sprecehn dann:

a) Die Form hat keine eigenschaften Transparentcolor und -value
b) Das Canvas ebenfalls nicht.

Wo sollen diese eigenschaften sein?

_________________
.: Es wird der Tag kommen, an dem wir es nicht mehr ändern können :.
Moritz M.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Mi 04.06.03 13:43 
Kann es sein, dass Delphi 5 diese Eigenschaft noch nicht hat? Die Eigenschaften sind da, wo auch Form1.Caption usw. ist. Dann kannst du mal folgende Kompos ausprobieren:
www.torry.net/vcl/fo...spintransparency.zip
www.torry.net/sample...s/forms/tranform.zip
www.torry.net/vcl/fo...ects/transparent.zip
www.torry.net/vcl/fo...nrect/coolformd5.zip
Tweafis
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 647

WinXP + fbsd
Delphi 5 Prof
BeitragVerfasst: Mi 04.06.03 17:24 
Hmm warscheinlich liegts daran...

Irgendwann besorg ich mir eh delphi 8 ^^

_________________
.: Es wird der Tag kommen, an dem wir es nicht mehr ändern können :.
fcg
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 360

WinXP
D3 Prof, D6 Pers
BeitragVerfasst: Mi 04.06.03 19:14 
hi

die Funtkion gibbet erst ab Delphi 6, und läuft auch nur unter WinXP!!

fcg

_________________
.: Wer für alles offen ist, kann nicht ganz dicht sein! :.
Hopsekey Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 26



BeitragVerfasst: Do 05.06.03 10:25 
Titel: Toll
Ich habe zwar Windows XP aber nur Delphi 5. UND NU?
kann ich das vielleicht durch ne andere Komponente auf dem Hauptformular machen?
Tweafis
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 647

WinXP + fbsd
Delphi 5 Prof
BeitragVerfasst: Do 05.06.03 10:38 
ausblenden Delphi-Quelltext
1:
  Form1.Brush.Style := bsClear;					


das bringt aber auch nix, da es nur verhindert das dein Formular neu gezeichnet wird :(

_________________
.: Es wird der Tag kommen, an dem wir es nicht mehr ändern können :.
Moritz M.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Do 05.06.03 14:29 
Ich hab doch die Links gepostet. Das sind Komponenten, für alle Versionen unter Delphi 6 gedacht, um die Form transparent zu machen. :)