Re: Buttons on a page



fatboylives wrote:

I am trying to create a page with rows of buttons on it that fill the
page. What I mean is I want buttons to fill rows with evenly sized
buttons that go from edge to edge all the same width (or as close to it
as I can) and leaving no uneven space...

Like a keypad on a telephone that you can align to the client but with
more buttons.

Can anyone suggest anything? I use D6.

Well... you can just create a lot of buttons ... like

for x:=0 to 19 do
  for y:=0 to 19 do
    begin
      button:=tbutton.create(self);
      button.parent:=self;
      button.left:=x*button.width;
      button.top:=y*button.height;
    end;


note that these buttons eat ressources. If you want realy realy many buttons (like for a minesweeper game) you shouldn't use real components - use a graphic instead that looks like many buttons.

.