BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TMS TTIWRadioButton problem

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Thirdparty Tools (IntraWeb)
View previous topic :: View next topic  
Author Message
Allan Hansen
Guest





PostPosted: Tue Jun 14, 2005 11:34 am    Post subject: TMS TTIWRadioButton problem Reply with quote



I'm using D7.1 with IW 5.1.30 and tms 1.6-ish.

I cannot make the TTIWRadioButton work. Do the following to see the problem:

1. Create a new Intraweb stand-alone application
2. On the form, drop two TTIWRadioButtons, a regular TIWButton and a
TIWLabel
3. Connect TIWRadioButton2.MasterButton to TIWRadioButton1
4. Insert the following code in the TIWButton's OnClick handler:

procedure TIWForm1.IWButton1Click(Sender: TObject);
begin
if TIWRadioButton1.Checked then
IWLabel1.Caption:='Test1'
else if TIWRadioButton2.Checked then
IWLabel1.Caption:='Test2'
else
IWLabel1.Caption:='ERROR';
end;

5. Run the app.
6. Select one of the radio buttons and click the button.

Now, I would expect it to print either "Test1" or "Test2" depending on which
button is selected, but that is not what happens. It prints "ERROR".

The .Checked property is not being set. Am I doing anything wrong here or is
the TTIWRadioButton buggy?

Kind regards

Allan


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Thirdparty Tools (IntraWeb) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.