Page 1 of 1

RADIO CONTROL IN HORIZONTAL

Posted: Fri Mar 21, 2008 8:58 am
by Silvio
If I made
@ 1.5,2.6 RADIO oRadio1 VAR nOption OF oDlg UPDATE ;
PROMPT "Hex ", "Dec","Oct","Bin" _3D ;
SIZE 100, 12

it run a radio control in vertical

I want it in Horizontal

I made also

Code: Select all

@ 1.5, 4.6 RADIOITEM oRitem1 PROMPT "Hex"  RADIOMENU oRadioMen1 SIZE 40, 15 OF oDlg PIXEL
@ 1.5, 4.9 RADIOITEM oRitem2 PROMPT "Dec"  RADIOMENU oRadioMen1 SIZE 40, 15 OF oDlg PIXEL
@ 1.5, 5.3 RADIOITEM oRitem3 PROMPT "Oct"  RADIOMENU oRadioMen1 SIZE 40, 15 OF oDlg PIXEL
@ 1.5, 5.5 RADIOITEM oRitem4 PROMPT "Bin"  RADIOMENU oRadioMen1 SIZE 40, 15 OF oDlg PIXEL


But it make error

Code: Select all


Application
===========
   Path and name: C:\work\msgcalc\msgcalc.Exe (32 bits)
   Size: 1,396,224 bytes
   Time from start: 0 hours 0 mins 1 secs 
   Error occurred at: 21-03-2008, 10:23:33
   Error description: Error BASE/1004  Class: 'NIL' has no exported method: AITEMS
   Args:
     [   1] = U   

Stack Calls
===========
   Called from:  => AITEMS(0)
   Called from: msgcalc.prg => MSGCALC(123)
   Called from: msgcalc.prg => (b)MAIN(40)
   Called from: WINDOW.PRG => TWINDOW:KEYDOWN(0)
   Called from: CONTROL.PRG => TCONTROL:KEYDOWN(0)
   Called from: TGET.PRG => TGET:KEYDOWN(0)
   Called from:  => TWINDOW:HANDLEEVENT(0)
   Called from: CONTROL.PRG => TCONTROL:HANDLEEVENT(0)
   Called from: TGET.PRG => TGET:HANDLEEVENT(0)
   Called from: WINDOW.PRG => _FWH(0)
   Called from:  => DIALOGBOXINDIRECT(0)
   Called from: DIALOG.PRG => TDIALOG:ACTIVATE(0)
   Called from: msgcalc.prg => MAIN(53)







how I must make i t?

Posted: Fri Mar 21, 2008 9:51 am
by Silvio
THANKs I RESOLVE IT
SORRY

Posted: Fri Mar 21, 2008 10:08 am
by Otto
Silvio,
there is a working sample on

http://fwcodesnips.com/

Posted: Fri Mar 21, 2008 10:24 am
by Antonio Linares

Code: Select all

  @ 3, 2 RADIO oRad VAR nValue ;
      ITEMS "&One", "&Two", "T&hree" _3D SIZE 150, 25 ;
      HELPID 100, 101, 102 ;
      ON CHANGE MsgBeep()

@ 3, 20 RADIOITEM "&Dos" RADIOMENU oRad   COLOR "N/W" OF oWnd SIZE 80, 25
@ 3, 40 RADIOITEM "&Tres" RADIOMENU oRad  COLOR "N/W" OF oWnd SIZE 80, 25

Posted: Fri Mar 21, 2008 10:59 am
by Silvio
the problem is this
I made
n=n+6
@ n + 12.10,25.6 Group GroupRad1 TO 34.27,123 PIXEL
@ n + 19.48,2.6 RADIO oRadioMen1 VAR nOption OF oDlg UPDATE PIXEL ON CHANGE nOption:=oRadioMen1
@ n + 19.48,25.6 RADIOITEM oRitem1 PROMPT "Hex" RADIOMENU oRadioMen1 SIZE 20, 5 OF oDlg PIXEL
@ n + 19.48,50.6 RADIOITEM oRitem2 PROMPT "Dec" RADIOMENU oRadioMen1 SIZE 20, 5 OF oDlg PIXEL
@ n + 19.48,75.6 RADIOITEM oRitem3 PROMPT "Oct" RADIOMENU oRadioMen1 SIZE 20, 5 OF oDlg PIXEL
@ n + 19.48,98.6 RADIOITEM oRitem4 PROMPT "Bin" RADIOMENU oRadioMen1 SIZE 20, 5 OF oDlg PIXEL
n=0

First problem
it make radio 2 ,3,4 but I can see the first when I move the mouse on this...why ?

Image


Second problem
I set noption =2
but i cannot see the radio check ... why ?


Third problem
I made

ON CHANGE nOption:=oRadioMen1 it is wrong ?


another problem
when I change option I want change noption and show another radiomenu How I can make it?

Posted: Fri Mar 21, 2008 12:35 pm
by Silvio
Sorry I resolve all

Posted: Fri Mar 21, 2008 12:44 pm
by Otto
It would be an act of courtesy if you would also post the solution.
Regards,
Otto