Lazarus
Programming => LCL => Topic started 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 .
-
Can you use TSpeedButton? It has property Flat.
-
Or even BGRAControls' TBCXButton.
-
Just a crazy idea:
Use TLabel instead of TButton.
- it is flat
- can handle OnClick
- easy to color the background :D