View Single Post
  #4  
Old 30-01-2021, 04:09
Ele's Avatar
Ele Ele is offline
Registered User
 
Join Date: Nov 2020
Location: Near Mars
Posts: 93
Thanks: 89
Thanked 96 Times in 37 Posts
Ele is on a distinguished road
Lightbulb

Hi Mr.BLACKFIRE69,

I'm very new to Delphi but I've done this in a different way. Check out the example.


Quote:
function ButtonCreate(hParent :HWND; hLeft, hTop, hWidth, hHeight: Integer; title: PAnsiChar; titleclr, backcolor, forecolor: integer): longint;
procedure ButtonMouseEnter(Btn: longint; titleclr, backclr, foreclr: integer);
procedure ButtonMouseLeave(Btn: longint; titleclr, backclr, foreclr: integer);
procedure ButtonOnClick(Btn: longint; event: TNotifyEvent);
procedure ButtonDeInit;

Screenshots:
Attached Images
File Type: png cusbutton.png (9.1 KB, 105 views)
Attached Files
File Type: zip Custom Buttons Example.zip (245.2 KB, 31 views)
__________________
- All life is an experiment. The more experiments you make the better. -
Reply With Quote
The Following 2 Users Say Thank You to Ele For This Useful Post:
Carldric Clement (03-02-2021), ffmla (30-01-2021)