Autor Beitrag
toms
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1099
Erhaltene Danke: 2



BeitragVerfasst: Sa 31.05.03 08:43 
Hi!

Ich möchte auf einem VCL Fenster eine Groupbox mit CreateWindowEx
erstellen.

Soweit, so gut:

ausblenden Delphi-Quelltext
1:
2:
3:
  MyGroupBox := CreateWindowEx(
         WS_EX_TRANSPARENT, 'Button''hallo...', WS_VISIBLE  or WS_CHILD or BS_GROUPBOX or BS_TEXT or WS_CLIPSIBLINGS,
         1010100100, Form1.Handle, IDC_GB,  hInstance, nil);


Die GroupBox Caption wird jedoch nicht transparent dargestellt.
Wie geht's am einfachsten?

(D6 + XP Manifest + OS: XP)
Gast
Gast
Erhaltene Danke: 1



BeitragVerfasst: Mo 28.07.03 23:38 
u.U. koennte ein SetWindowRgn() helfen eine Transparenz zu erzeugen. Eine Idee waere noch die "verdeckten" Controls nachtraeglich per SetParent() an die Groupbox zu binden. TLabel ist kein Window-Control!!!