Lazarus

Programming => LCL => Topic started by: airpas on December 17, 2013, 09:29:04 am

Title: Flat TButton , how?
Post by: airpas on December 17, 2013, 09:29:04 am
hi
there is no property to make tbutton flat ,so i tried adding BS_FLAT to the tbutton style with GetWindowLong and SetWindowLong  but seems not working or the stye dosen't set properly.
with native win32 api it works fine , just passing ( WS_VISIBLE or WS_CHILD or BS_FLAT ) to CreateWindowEx .

Title: Re: Flat TButton , how?
Post by: Avishai on December 17, 2013, 10:34:36 am
Can you use TSpeedButton?  It has property Flat.
Title: Re: Flat TButton , how?
Post by: JD on December 17, 2013, 10:40:52 am
Or even BGRAControls' TBCXButton.
Title: Re: Flat TButton , how?
Post by: PizzaProgram on December 20, 2013, 10:49:21 am
Just a crazy idea:
 Use TLabel instead of TButton.
- it is flat
- can handle OnClick
- easy to color the background  :D