| View previous topic :: View next topic |
| Author |
Message |
Dra_Gon
Joined: 25 May 2007 Posts: 373
|
Posted: Sat Jul 05, 2008 6:26 pm Post subject: Disabling UpDown Arrows |
|
|
Is there any way to disable the arrows of an UpDown control separately?
If the minimum number is reached then one arrow is greyed while the other is active and vice-versa?
Ciao,
Dra'Gon _________________
For a good laugh {hopefully} >> megamatts.50megs.com
My WritersCafe profile>>
http://www.writerscafe.org/writers/BlueDragonFire/ |
|
| Back to top |
|
 |
GodlyMario
Joined: 02 Jul 2008 Posts: 62
|
Posted: Sun Jul 06, 2008 2:54 am Post subject: |
|
|
number of what reached?
specifically state what to be done please |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 8255 Location: Maywood, IL
|
Posted: Sun Jul 06, 2008 11:55 pm Post subject: |
|
|
he wants an edit control with a gui window, and a buddy control (UpDown that changes the edit. if he clicks down to some (configurable) minimum value, the down button is disabled. If he clicks up to some maximum value, the up button is disabled.
I don't know how to do it, though. _________________
(Common Answers) |
|
| Back to top |
|
 |
Dra_Gon
Joined: 25 May 2007 Posts: 373
|
Posted: Mon Jul 07, 2008 4:40 pm Post subject: |
|
|
That's the correct idea, engunneer! Although I have it attached to a GroupBox with the UpDown changing it's "Title" {as well as the contents through my code}. I wasn't sure if disabling the arrows separately could be done or not, but I was certainly hoping. It's not really a major thing with my script, just something that would be nice to add to it.
Ciao,
Dra'Gon _________________
For a good laugh {hopefully} >> megamatts.50megs.com
My WritersCafe profile>>
http://www.writerscafe.org/writers/BlueDragonFire/ |
|
| Back to top |
|
 |
Conquer
Joined: 27 Jun 2006 Posts: 385 Location: Canada
|
Posted: Mon Jul 07, 2008 4:44 pm Post subject: |
|
|
| You could perhaps have two separate buttons imitating an updown control, one button for up and one button for down (perhaps with ^/v as labels). Then the buttons could have labels which would add (or subtract) one from the value of your variable. The buttons could also be individually disabled this way. |
|
| Back to top |
|
 |
BoBo2 Guest
|
Posted: Mon Jul 07, 2008 4:47 pm Post subject: |
|
|
| You could perhaps have two (/four) separate images imitating toggled buttons of an updown control. |
|
| Back to top |
|
 |
Dra_Gon
Joined: 25 May 2007 Posts: 373
|
Posted: Tue Jul 08, 2008 3:19 pm Post subject: |
|
|
| Conquer wrote: | | You could perhaps have two separate buttons imitating an updown control, one button for up and one button for down (perhaps with ^/v as labels). Then the buttons could have labels which would add (or subtract) one from the value of your variable. The buttons could also be individually disabled this way. |
| BoBo2 wrote: | | You could perhaps have two (/four) separate images imitating toggled buttons of an updown control. |
Are you 2 twins or sumpin' ? Those suggestions are just too similar.
I hadn't thought of that, but it just might be what I need to do. I can definitely make a set of images to look like buttons {normal and disabled for each} and put them into an icon library. Thanks a bunch!
Ciao,
Dra'Gon _________________
For a good laugh {hopefully} >> megamatts.50megs.com
My WritersCafe profile>>
http://www.writerscafe.org/writers/BlueDragonFire/ |
|
| Back to top |
|
 |
[VxE]
Joined: 07 Oct 2006 Posts: 3254 Location: Simi Valley, CA
|
Posted: Wed Jul 09, 2008 12:19 am Post subject: |
|
|
(triplets, btw)
You could combine the two ideas and have your regular up/down control, and two images of disabled up/down arrows to cover the working control when you need one of them disabled.
So the up/down control would be playing 'peekaboo'  _________________ Ternary (a ? b : c) guide TSV Table Manipulation Library
Post code inside [code][/code] tags! |
|
| Back to top |
|
 |
|