I have a pushbutton with a bitmap with 3 "images".
i.e. one .BMP file with 3 "button images"
They are for UP, DOWN, and DISABLED.
What control property do I need to look at to
determine which of the "3" images is visible.
Thanks…
Steve C.
The IMAGENUMBER property looks like what you need.
Jeff
Steve,
On a push-button, you cannot specify which of the images is visible … that is done automatically. With a bitmap control (which you can use to emulate a button) you can set the IMAGENUMBER … even easier is to use a check-box control so you can toggle the image by setting CHECK and some automatic button processing is built in.
Cameron Purdy
Revelation Software
Cameron.
What I want to do is have several push buttons at the top
of a form and allow the user to select multiple buttons.
I want to show that when a button is selected it remains
in the "down" position until the user pushes the button
again and it goes to the "up" position. Some of these buttons
may be "disabled" depending on the the users security level.
Would it be best to have a normal pushbutton to show the
3 positions up, down, and disabled, but when the button is
pushed down change the BITMAP property to a single "down" image,
and then when it is press again reload the 3 position bitmap.
Thanks…. Steve C.
Cameron.
What I want to do is have several push buttons at the top
of a form and allow the user to select multiple buttons.
I want to show that when a button is selected it remains
in the "down" position until the user pushes the button
again and it goes to the "up" position. Some of these buttons
may be "disabled" depending on the the users security level.
Would it be best to have a normal pushbutton to show the
3 positions up, down, and disabled, but when the button is
pushed down change the BITMAP property to a single "down" image,
and then when it is press again reload the 3 position bitmap.
Thanks…. Steve C.
Cameron.
What I want to do is have several push buttons at the top
of a form and allow the user to select multiple buttons.
I want to show that when a button is selected it remains
in the "down" position until the user pushes the button
again and it goes to the "up" position. Some of these buttons
may be "disabled" depending on the the users security level.
Would it be best to have a normal pushbutton to show the
3 positions up, down, and disabled, but when the button is
pushed down change the BITMAP property to a single "down" image,
and then when it is press again reload the 3 position bitmap.
Thanks…. Steve C.
Steve,
As Cameron mentioned, what you really want to do here is use CHECKBOX controls and set their BITMAP property to the one you'd use for your button. That way they remain 'down' when clicked until they are clicked again, so all this is taken care of for you, as is enabling and disabling.
The first three images states, Up, Down and Disabled are the same for CHECKBOX's and BUTTONs, so you shouldn't have to alter your bitmap.
cpates@sprezzatura.com
World Leaders in all things RevSoft
Carl,
The checkbox looks like it IS what I really need.
Funny how I've been working with OI since it first
came out… but never did notice that it
had the bitmap property also. I just over looked it.
Thanks again…
Steve C.
What do you use to save a BMP with multiple images in it?
Paint?
Imagine a six button image - each button 40x40. The total image size would be 6*40 by 40, so 240*40.
So draw six buttons into this space and save as a regular BMP.
World Leaders in all things RevSoft
Mykl,
A BMP like this one?
(Hope it shows.)
- Oystein -