gettingstarted
[Top] [All Lists]

Re: RadioButtons & GroupBoxes

To: Getting Started <gettingstarted at lists dot realsoftware dot com>
Subject: Re: RadioButtons & GroupBoxes
From: Scott Wagner <scott at paulmairdesign dot com>
Date: Wed, 21 Jun 2006 10:14:24 -0500
Delivered-to: listarchive at realsoftware dot com
Delivered-to: gettingstarted at lists dot realsoftware dot com
References: <200662110451320841328 dot realbasic at garman dot demon dot co dot uk> <7329B0B4-0044-4812-82B9-6C31640B3E3A at pcisys dot net> <8B198E05-B396-4959-8BAA-97E1220C6930 at declareSub dot com>
i think focus would set it. you would need to loop through the control testing for focus. that should do the trick.

Scott Wagner
On Jun 21, 2006, at 10:11 AM, Charles Yeomans wrote:


On Jun 21, 2006, at 11:03 AM, Chuck Pelto wrote:

Hi Steve,

On Jun 21, 2006, at 4:45 AM, Steve Garman wrote:

What is the best way to collect or identify all the RadioButtons in a
given GroupBox?

  dim c as Control
  for i as Integer = ControlCount - 1 DownTo 0
    c = Control(i)
    if c isa RadioButton and RadioButton(c).parent = GroupBox1 then
      MsgBox c.Name
    end if
  next i

This looks useful. Thanks.

Next, as always, question.....

What's the call to tell whether a radio button is the selected item within a such a group?

Value doesn't seem to do it. And I can't find any property inside of RectControl or Control Classes that will do it either.

Try Window.Focus.

Charles Yeomans
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>