PDA

View Full Version : Generating button on DelphiX



Jonne
15-01-2004, 08:51 PM
How can I make a button using DelphiX.

czar
17-01-2004, 03:58 PM
Possibly the easiest way to make a button in delphiX is to create your own button class. Use a graphic with four states, up down, down, mouse over and disabled. In the dxtimer loop draw your buttons. When a mouse down event occurs pass the location to the button code to check if the mouse down/up occured within the bounds of the button.