Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 12 MAY 1998 05:58:15PM Steve C. wrote:

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.


At 12 MAY 1998 06:12PM Jeff Blinn wrote:

The IMAGENUMBER property looks like what you need.

Jeff


At 13 MAY 1998 07:41AM Cameron Revelation wrote:

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


At 13 MAY 1998 08:58AM Steve C. wrote:

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.


At 13 MAY 1998 08:59AM Steve C. wrote:

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.


At 13 MAY 1998 08:59AM Steve C. wrote:

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.


At 13 MAY 1998 11:31AM Carl Pates wrote:

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

Sprezzatura Ltd

World Leaders in all things RevSoft


At 13 MAY 1998 11:58AM Steve C. wrote:

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.


At 29 JAN 2002 04:00PM Mykl Belfatto wrote:

What do you use to save a BMP with multiple images in it?


At 29 JAN 2002 04:38PM [url=http://www.sprezzatura.com" onMouseOver=window.status=Click here to visit our web site?';return(true)]The Sprezzatura Group[/url] wrote:

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.

The Sprezzatura Group

World Leaders in all things RevSoft


At 29 JAN 2002 05:08PM Oystein Reigem wrote:

Mykl,

A BMP like this one?

btnexmpl.bmp

(Hope it shows.)

- Oystein -

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/10a5836817d180ce852566020078b0cd.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1