get value from radio button

Discussions related to Visual Prolog
didit1
Posts: 1
Joined: 22 Apr 2012 13:03

get value from radio button

Unread post by didit1 » 22 Apr 2012 13:10

hi,
i'm new in visual prolog
so, i wonder how i get value from selected radio button and pass it into another dialog

Steve Lympany
VIP Member
Posts: 119
Joined: 31 Mar 2001 23:01

Unread post by Steve Lympany » 23 Apr 2012 17:24

Hi,
The IDE creates the following code (eg) for radio buttons

Code: Select all

predicates     onRadioButtonStateChanged : radioButton::stateChangedListener. clauses     onRadioButtonStateChanged(_Source, _OldState, _NewState).
So you would modify this code (again for eg):

Code: Select all

clauses     onRadioButtonStateChanged(_Source, _OldState,checked()):-!,          other_dlg::sendvalue("hello, checked")     onRadioButtonStateChanged(_Source, _OldState, _NewState).
cheers
s

Post Reply