🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.os.os2.programmer
3 messages
3 total messages Started by Wim Bonner Wed, 30 Jan 1991 23:25
Help with invalidating AutoRadio?Buttons?
#2388
Author: Wim Bonner
Date: Wed, 30 Jan 1991 23:25
13 lines
1008 bytes
I'm trying to have a series of autoradio buttons, and make some of them
not selectable.  Is there a simple message that I can send to the button
which will tell it that it is invalid as a mouse coice?  I would prefer that
the text and button would go to  a grey color as well, to indicate the 
non-selectable nature.

Wim

-- 
|  wbonner@yoda.eecs.wsu.edu  |
| 27313853@wsuvm1.csc.wsu.edu |
|   27313853@Wsuvm1.BITNET    |
|  72561.3135@CompuServe.com  |
Re: Help with invalidating AutoRadio?Buttons?
#2382
Author: Scott Heyano
Date: Thu, 31 Jan 1991 03:44
8 lines
1129 bytes
In article <1991Jan30.232544.12606@eecs.wsu.edu> wbonner@yoda.UUCP (Wim Bonner) writes:
|I'm trying to have a series of autoradio buttons, and make some of them
|not selectable.  Is there a simple message that I can send to the button
|which will tell it that it is invalid as a mouse coice?  I would prefer that
|the text and button would go to  a grey color as well, to indicate the 
|non-selectable nature.
|
	Disable them, I believe the function is WinEnableWindow().
Re: Help with invalidating AutoRadio?Buttons?
#2383
Author: Alan Ballard
Date: Thu, 31 Jan 1991 03:54
23 lines
1705 bytes
In article <1991Jan30.232544.12606@eecs.wsu.edu> wbonner@yoda.UUCP (Wim Bonner) writes:
>I'm trying to have a series of autoradio buttons, and make some of them
>not selectable.  Is there a simple message that I can send to the button
>which will tell it that it is invalid as a mouse coice?  I would prefer that
>the text and button would go to  a grey color as well, to indicate the 
>non-selectable nature.
>
Sure; you use WinEnableWindow.  Generally with WinWindowFromId to get the
handle for the control. 
  
Something like:
   WinEnableWindow(WinWindowFromId(hwnd, IDD_xxx), FALSE);
 
where hwnd is the dialog box handle, IDD_xxx is the ID for the control,
and the last parameter is FALSE to disable and TRUE to enable.
 
(You can also do it by sending a mesage to the control, which is what
the above does indirectly.)
 
Alan Ballard                   | Internet: ballard@ucs.ubc.ca
University Computing Services  |   Bitnet: USERAB1@UBCMTSG
University of British Columbia |    Phone: 604-228-3074
Vancouver B.C. Canada V6R 1W5  |      Fax: 604-228-5116
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads