Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Grid Buttons

Status
Not open for further replies.

Glenn9999

Programmer
Jun 19, 2004
2,312
US
Is there a way to get something equivalent to what you find in minesweeper using Delphi? In essence, a grid of buttons? Could you group up TButtons to do this or would it only be possible to do it by making a TPanel, drawing the "buttons" on it and then responding to clicks by figuring out which button that was pressed?

Measurement is not management.
 
depending on your delphi version you can use TGridpanel for this purpose.


/Daddy

-----------------------------------------------------
What You See Is What You Get
Never underestimate tha powah of tha google!
 
JVCL has TJvArrayButton but it appears to only support a 10x10 grid. The OnArrayButtonClicked event traps the row/column of the button. And it flickers like a madman. You could probably extended it but, in the end, you might get more value by doing your own thing.
 
Try TToolbar. It's almost a natural for this. Use Toolbar.Height to control your matrix (Y) and you can dynamically add ToolButtons.


Roo
Delphi Rules!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top