AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Disabling UpDown Arrows

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Dra_Gon



Joined: 25 May 2007
Posts: 373

PostPosted: Sat Jul 05, 2008 6:26 pm    Post subject: Disabling UpDown Arrows Reply with quote

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
View user's profile Send private message Send e-mail
GodlyMario



Joined: 02 Jul 2008
Posts: 62

PostPosted: Sun Jul 06, 2008 2:54 am    Post subject: Reply with quote

number of what reached?
specifically state what to be done please
Back to top
View user's profile Send private message
engunneer



Joined: 30 Aug 2005
Posts: 8255
Location: Maywood, IL

PostPosted: Sun Jul 06, 2008 11:55 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Dra_Gon



Joined: 25 May 2007
Posts: 373

PostPosted: Mon Jul 07, 2008 4:40 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Conquer



Joined: 27 Jun 2006
Posts: 385
Location: Canada

PostPosted: Mon Jul 07, 2008 4:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
BoBo2
Guest





PostPosted: Mon Jul 07, 2008 4:47 pm    Post subject: Reply with quote

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

PostPosted: Tue Jul 08, 2008 3:19 pm    Post subject: Reply with quote

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' Laughing ? 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
View user's profile Send private message Send e-mail
[VxE]



Joined: 07 Oct 2006
Posts: 3254
Location: Simi Valley, CA

PostPosted: Wed Jul 09, 2008 12:19 am    Post subject: Reply with quote

(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' Razz
_________________
Ternary (a ? b : c) guide     TSV Table Manipulation Library
Post code inside [code][/code] tags!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group