Button Toggle

  • Thread starter Thread starter Aaron
  • Start date Start date
A

Aaron

Is there any way to make a button toggle like effect in CF .NET? I'm trying
to achieve the same look as a Palm in the sense that you can have buttons
(actually radio buttons) that can stay selected, or in the down position
until another button in the same group is selected, then the original ones
pops up and the newly selected button stays down.

Thanks
 
One way that I did something like this is to NOT use a button control, but
to use two picture controls (one for down and one for up) instead. You can
recognize a 'mouse down' event on the 'up' picture, and then change the
..visible properties for the down and up appropriately to make the 'down'
button visible.

You can change the .visible back again when you want, to return the button
to the 'up' position. You will, of course, have to use some kind of picture
program to draw the button images, but this way you can get quite
sophisticated with bevels and shadows etc.
good luck

Glyn Meek
 
How is that possible when there is no MouseDown or MouseUp event, or even an
OnClick event for a PictureBox???
 
they are there , they just don't show up in the vs property sheet
this is true for MANY cf properties & events
you can still use these - you just have to do it all manually
not sure why this is - my guess is that ms just got a little lazy when
implementing the design time cf controls
 
Back
Top