[Gambas-user] How to clear radio buttons - not working

Ron Onstenk ronstk at ...239...
Mon Mar 17 07:32:25 CET 2008


On Monday 17 March 2008 03:07, Robert Rowe wrote:
> It's cheating but you could have a third radio button with the visible 
> property set to false. Setting the value of this radio button to true 
> should set the others to false. It might actually be clearer to have the 
> third radio button visible with a caption of "Unknown" or something 
> similar.
> 
> Robert Rowe
> 
> richard terry wrote:
> > I've a couple of radio button's on my form, and I would have thought that this 
> > code: rb1.value = false rb2. value = false, would have removed the black dot 
> > from the radio button, but not so.
> >
> > Any clues?
> >
> > Thanks
> >
> > Richard
> >

Cheating yourself and the end user.
Radio options is a way of only 1 of each of the other.
  (a) OR (b) OR (c) and not (a) maybe (b) OR (c)
 
Check box is a selection from a collection of several choises AND/OR nothing.

 
The most correct solution is (in my view):

+-- Set Extension --------------------
| [] Check box: Use custom extension
|   -- custom ----
|  () radio : save as *.gif
|  () radio : save as *.jpg
|  () radio : save as *.bmp
+-------------------------------------

Or use a selectbox with 4 rows and the first as empty
  +----------------+---+
  | [empty]        | V |  or 'Use orginal extension'
  +----------------+---+
  | save as *.gif      |
  | save as *.jpg      |
  | save as *.bmp      |
  +--------------------+

Once you have forgotten the hidden radio as unlogical control
to do something logical as a yes/no question with the check box.

It is the fault of the unlogical control preset in VB and HTML
you could have all radios conditions as 'off'

I have a problem with a local website using this misbehaviour in html
It can plays media with WMP ( as hidden), Real (as option) or Qtime (as option).
Once I did try with Real and it did not work.
No way to use WMP as default player again. Why?

Ron




Solution: It was saved in a cookie.





More information about the User mailing list