🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #4396

Re: OS/2 Programmer - How do you make radio buttons disable?

#4396
From: Bob Niedergerke
Date: Mon, 28 Jan 1991 21:00
22 lines
1643 bytes
In article <1991Jan28.122408.11150@hellgate.utah.edu> h-lee%hogum.utah.edu@cs.utah.edu (LEE Hyo Jong) writes:
>Hi,
>
>Is it possible to control radio buttons able/disable during execution
>of the program?
>Since a radio button is a window, conceptually it should be able to control it
>by sending messages. If we create radio buttons individually by calling
>WinCreateWindow(), it is not a problem - may be called with WS_DISABLED.
>
>However, many radio buttons are usually created by WinCreateDlg() or
>WinLoadDlg().  I cannot find the apropriate message name for this case.
>So, how can I control radio buttons able/disable?  Thanks in advance,

I am miles away from the manuals, but basically, it works like this:
    Run WinEnable against the individual radio button, with the message
      parameter FALSE.  I believe this is the correct API.
    To get the window parameter that WinEnable needs, call WinWinFromID
      with the ID of the radio button.

This should work equally well with any of the dialog box controls.
Hope this helps.
bobn
Technical Details
Message-ID: <2034@umriscc.isc.umr.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!samsung!uakari.primate.wisc.edu!umriscc!mcs213c.cs.umr.edu!bobn
References: <1991Jan28.122408.11150@hellgate.utah.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!samsung!uakari.primate.wisc.edu!umriscc!mcs213c.cs.umr.edu!bobn
From: bobn@mcs213c.cs.umr.edu (Bob Niedergerke)
Newsgroups: comp.os.msdos.programmer,comp.os.os2.misc
Subject: Re: OS/2 Programmer - How do you make radio buttons disable?
Message-ID: <2034@umriscc.isc.umr.edu>
Date: 28 Jan 91 21:00:46 GMT
References: <1991Jan28.122408.11150@hellgate.utah.edu>
Sender: news@umriscc.isc.umr.edu
Followup-To: comp.os.msdos.programmer
Organization: University of Missouri - Rolla
Lines: 22