[futurebasic] Re: [FB] Making a Toolbar

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : January 2000 : Group Archive : Group : All Groups

From: Joe Lewis Wilkins <PepeToo@...>
Date: Thu, 06 Jan 2000 23:43:47 -0800
keller wrote:

> Joe Wilkins said:
>
> > If you do this, you can actually use a single picture
> > for the entire Palette, only determining which FN to call by the portion of
> the
> > picture in which the mouse is clicked.
>
> I like the idea of just one picture. It seems a lot cleaner than my idea.

There are instances, however, when using separate pictures can better define the
problem, since the coordinates of the Picture Fields could be defined using
constants that would then become the defining coordinates that would determine
whether a given Picture had been clicked-on and a particular FN called. This
would also provide, I think, an easier to expand Palette of FNs. The code could
probably be pretty tight too, using a

FOR tool% = 1 to numTools%
    'Define the coordinates of the Pict Field for the tool
    'Create the Picture Fields here
    'Increment the coordinates for the next Pict Field tool
NEXT tool%

to create the Palette's Tools and a Select Case Statement for coordinates to ID
the Tools and hence their FNs when clicked-on.

Lots of ways to skin a Palette!

Joe Wilkins