![]() |
TIcon.Handle readonly progleme
hallo,
Ich habe folgendes problem. Die variable Handle ist als readonly deklariert. Wie kann ich den handle des icons dem TIcon zuweisen?
Delphi-Quellcode:
Var
w: Integer; Icon: TIcon; IcoHandle: HIcon; Begin // memchk; Icon := TIcon.Create; Try IcoHandle:= ExtractIcon(hinstance, pchar(paramstr(0)), 0); Icon.Handle := IcoHandle; Application.Icon.Assign(Icon); Finally Icon.Free; End; |
Re: TIcon.Handle readonly progleme
Zitat:
Hier der Beweis: (gekürzter Sourcecode)
Delphi-Quellcode:
TIcon = class(TGraphic)
private function GetHandle: HICON; procedure HandleNeeded; procedure SetHandle(Value: HICON); protected ... public ... property Handle: HICON read GetHandle write SetHandle; end; |
Re: TIcon.Handle readonly progleme
Bei delphi 7 schon.....
Delphi-Quellcode:
gibts dazu eine alternative?
property Handle: QPixmapH read GetHandle;
|
Re: TIcon.Handle readonly progleme
Was ist denn das für ein Datentyp: QPixmapH :gruebel: Kann es sein, dass du CLX-Units eingebunden hast?
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 09:59 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz