cRadioButton

Examines or sets a radio button. 

Syntax:

cRadioButton( hwnd, flag)

Parameters:

(i) hwnd RadioButton handle from a cWndBy... function.

(i) flag See below.

Returns:

(i) Previous state of checkbox.

Flags

-1

 

 

Examine the settings of a RadioButton:
0 - Not selected
1 - Selected

1

Sets a RadioButton

 

This function is used to examine or modify the status of radio buttons. Note that radio buttons cannot be cleared. To clear a radio button, another radio button must be set.

 

Example:

AddExtender("wwctl44i.dll",0,"wwctl64i.dll")
;Note: This example designed for Windows 95
;Further note that this example shows how to navigate thru
;a tabbed dialog
Run("rundll32.exe", "shell32.dll,Control_RunDLL mmsys.cpl")
title="Multimedia Properties"
multiwnd=DllHwnd(title)
tabtitle="Video"
systabwnd=cWndbyid(multiwnd,12320)
cSetTabItem(systabwnd,2)
; confirm correct tab
videohwnd=cWndbyseq(multiwnd,1)
thistitle=cWndinfo(videohwnd,0)
If thistitle!=tabtitle
   Message("Error","Incorrect tab title")
   Exit
EndIf
fullscreenradio=cWndbyname(videohwnd,"Window")
rad=cRadioButton(fullscreenradio,-1)
Message("Video: Window Radio button set to",rad)
Exit

See Also:

cCheckBox, cClickButton