| View previous topic :: View next topic |
| Author |
Message |
Dra_Gon
Joined: 25 May 2007 Posts: 209
|
Posted: Sat Jul 05, 2008 7: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
SciFi/Fantasy Short Stories I wrote {StohlerWorlds I} >>
http://www.mediafire.com/?2yisetu0jud |
|
| Back to top |
|
 |
GodlyMario
Joined: 02 Jul 2008 Posts: 35
|
Posted: Sun Jul 06, 2008 3:54 am Post subject: |
|
|
number of what reached?
specifically state what to be done please |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 6772 Location: Pacific Northwest, US
|
Posted: Mon Jul 07, 2008 12:55 am 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. _________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM |
|
| Back to top |
|
 |
Dra_Gon
Joined: 25 May 2007 Posts: 209
|
Posted: Mon Jul 07, 2008 5: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
SciFi/Fantasy Short Stories I wrote {StohlerWorlds I} >>
http://www.mediafire.com/?2yisetu0jud |
|
| Back to top |
|
 |
Conquer
Joined: 27 Jun 2006 Posts: 383 Location: Canada
|
Posted: Mon Jul 07, 2008 5: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 5: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: 209
|
Posted: Tue Jul 08, 2008 4: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
SciFi/Fantasy Short Stories I wrote {StohlerWorlds I} >>
http://www.mediafire.com/?2yisetu0jud |
|
| Back to top |
|
 |
[VxE]
Joined: 07 Oct 2006 Posts: 1132
|
Posted: Wed Jul 09, 2008 1: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'  _________________ My Home Thread
More Common Answers: 1. It's in the FAQ 2. Ternary ( ? : ) guide 3. Post code with [code][/code] tags |
|
| Back to top |
|
 |
|