mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-30 13:29:25 +02:00
LCL: changed TCustomTrayIcon.Handle from PtrInt to HWND since it's correct.
Qt,Gtk2,Carbon: changed type cast from PtrInt() to HWND() for trayicon handle. git-svn-id: trunk@27789 -
This commit is contained in:
parent
e6a8e1e2a4
commit
0ef33b2c49
@ -1325,7 +1325,7 @@ type
|
||||
class procedure WSRegisterClass; override;
|
||||
procedure Notification(AComponent: TComponent; Operation: TOperation); override;
|
||||
public
|
||||
Handle: PtrInt;
|
||||
Handle: HWND;
|
||||
constructor Create(TheOwner: TComponent); override;
|
||||
destructor Destroy; override;
|
||||
function Hide: Boolean;
|
||||
|
@ -477,7 +477,7 @@ begin
|
||||
APrivateTrayIcon.bar := NSStatusBar.systemStatusBar();
|
||||
APrivateTrayIcon.LCLTrayIcon := ATrayIcon;
|
||||
|
||||
ATrayIcon.Handle := PtrInt(APrivateTrayIcon);
|
||||
ATrayIcon.Handle := HWND(APrivateTrayIcon);
|
||||
|
||||
{ Converts the icon to NSImage }
|
||||
|
||||
|
@ -474,7 +474,7 @@ begin
|
||||
Result := False;
|
||||
|
||||
TrayIconHandle := TGtk2TrayIconHandle.Create(ATrayIcon);
|
||||
ATrayIcon.Handle := PtrInt(TrayIconHandle);
|
||||
ATrayIcon.Handle := HWND(TrayIconHandle);
|
||||
{*******************************************************************
|
||||
* Now shows the GtkPlug
|
||||
*******************************************************************}
|
||||
|
@ -554,7 +554,7 @@ begin
|
||||
SystemTrayIcon := TQtSystemTrayIcon.Create(IconH);
|
||||
SystemTrayIcon.FTrayIcon := ATrayIcon;
|
||||
|
||||
ATrayIcon.Handle := PtrInt(SystemTrayIcon);
|
||||
ATrayIcon.Handle := HWND(SystemTrayIcon);
|
||||
|
||||
Text := UTF8ToUTF16(ATrayIcon.Hint);
|
||||
SystemTrayIcon.setToolTip(Text);
|
||||
|
Loading…
Reference in New Issue
Block a user