Recent

Author Topic: How does TIcon Work?  (Read 3547 times)

dixy999

  • Newbie
  • Posts: 3
How does TIcon Work?
« on: April 01, 2011, 11:12:23 pm »
Hi,
Does anyone have any examples on how Ticon works, ive had a trawl through the free pascal wiki and on google but i cannot figure out how it works and how i declare it. I'm just trying to show an icon in the taskbar when i hide the form and then show the form again when i click the icon. Thanks in advanced.

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: How does TIcon Work?
« Reply #1 on: April 01, 2011, 11:28:36 pm »
Perhaps this can help:
http://www.lazarus.freepascal.org/index.php/topic,10812.0.html

Also this, from Graphics.pas:

Code: [Select]
TIcon = class(TCustomIcon)
  private
    function GetIconHandle: HICON;
    procedure SetIconHandle(const AValue: HICON);
  protected
    class function GetTypeID: Word; override;
    procedure HandleNeeded; override;
  public
    function ReleaseHandle: HICON;
    function GetResourceType: TResourceType; override;
    property Handle: HICON read GetIconHandle write SetIconHandle;
  end;         
« Last Edit: April 01, 2011, 11:33:05 pm by typo »

 

TinyPortal © 2005-2018