Modify

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#2775 closed Bug (No Bug)

GUICtrlRead - Return Value <> state of the button

Reported by: mLipok Owned by:
Milestone: Component: Documentation
Version: 3.3.12.0 Severity: None
Keywords: Cc:

Description

in Return Value there is sucha a description:

Checkbox, Radio state of the button. See State table

But this is not true.

for example for Checkbox it is selected text.

Attachments (0)

Change History (2)

comment:1 by Melba23, 12 years ago

Resolution: No Bug
Status: newclosed

Small spherical objects!

#include <MsgBoxConstants.au3>

$hGUI = GUICreate("Test", 500, 500)
$cCheck = GUICtrlCreateCheckbox("Checkbox", 10, 10, 200, 20)
$cRadio = GUICtrlCreateRadio("Radio", 10, 50, 200, 20)
GUISetState()

MsgBox($MB_SYSTEMMODAL, "Return", "Reading Checkbox: " & GUICtrlRead($cCheck) & _
@CRLF & "Reading Radio: " & GUICtrlRead($cRadio))

Both return the state ($GUI_UNCHECKED (4) or $GUI_CHECKED (1)) of the control.

M23

comment:2 by mLipok, 12 years ago

gosh,
you're right, I was wrong,
I have today, the day of the Freak

sorry, for confusion.

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.