AutoHotkey Community

It is currently May 26th, 2012, 8:46 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Disabling UpDown Arrows
PostPosted: July 5th, 2008, 7:26 pm 
Offline

Joined: May 25th, 2007, 6:13 pm
Posts: 373
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

_________________
Image
For a good laugh {hopefully} >> megamatts.50megs.com

My WritersCafe profile>>
http://www.writerscafe.org/writers/BlueDragonFire/


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 6th, 2008, 3:54 am 
Offline

Joined: July 2nd, 2008, 3:59 pm
Posts: 62
number of what reached?
specifically state what to be done please


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 7th, 2008, 12:55 am 
Offline
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8666
Location: Salem, MA
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.

_________________
Image
(Common Answers) - New Tutorials Forum - Humongous FAQ


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 7th, 2008, 5:40 pm 
Offline

Joined: May 25th, 2007, 6:13 pm
Posts: 373
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

_________________
Image
For a good laugh {hopefully} >> megamatts.50megs.com

My WritersCafe profile>>
http://www.writerscafe.org/writers/BlueDragonFire/


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 7th, 2008, 5:44 pm 
Offline

Joined: June 27th, 2006, 2:38 pm
Posts: 385
Location: Canada
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 7th, 2008, 5:47 pm 
You could perhaps have two (/four) separate images imitating toggled buttons of an updown control.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 8th, 2008, 4:19 pm 
Offline

Joined: May 25th, 2007, 6:13 pm
Posts: 373
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' :lol: ? 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

_________________
Image
For a good laugh {hopefully} >> megamatts.50megs.com

My WritersCafe profile>>
http://www.writerscafe.org/writers/BlueDragonFire/


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 9th, 2008, 1:19 am 
Offline
User avatar

Joined: October 7th, 2006, 8:45 am
Posts: 3328
Location: Simi Valley, CA
(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' :P

_________________
Ternary (a ? b : c) guide     TSV Table Manipulation Library
Post code inside [code][/code] tags!


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: kkkddd1, poserpro, Yahoo [Bot] and 55 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group