Creation Button bar

Creation Button bar

Postby Silvio » Sat May 13, 2006 2:45 pm

I want create a button bar at left with many btnbmp
but I have the bitmap on a directory
Example
LOCAL aSymboli := Directory( "Pat/*.bmp" )

How I can create this button bar with btnbmp as this ? :

Image
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Postby James Bott » Mon May 15, 2006 3:43 pm

Create it as a dialog. You can change nStyle to remove the caption and system buttons or not (if you wish to make it a floating bar).
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Postby Silvio » Mon May 15, 2006 9:48 pm

yes I have understand but i have the images into a directory How I can make to make buttons in automatic ?
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Postby James Bott » Mon May 15, 2006 11:33 pm

Silvio,

>yes I have understand but i have the images into a directory How I can make to make buttons in automatic ?

I'm not sure I understand your question. If you are asking how to define the buttons when you don't know how many there are, and the number might be changing? Or, is the number of buttons going to remain fixed just like the picture you showed?

If the number of buttons is fixed, then I would layout the dialog using a resource editor and then compile all the bitmaps into the EXE.

If the number is changing, then you are going to have to write some code to figure out the size of the dialog and the placement of the buttons depending on the number of buttons found.

James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 27 guests