RADIO CONTROL IN HORIZONTAL

RADIO CONTROL IN HORIZONTAL

Postby Silvio » Fri Mar 21, 2008 8:58 am

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  Expand view  RUN
@ 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  Expand view  RUN

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?
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Postby Silvio » Fri Mar 21, 2008 9:51 am

THANKs I RESOLVE IT
SORRY
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Postby Otto » Fri Mar 21, 2008 10:08 am

Silvio,
there is a working sample on

http://fwcodesnips.com/
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Postby Antonio Linares » Fri Mar 21, 2008 10:24 am

Code: Select all  Expand view  RUN
  @ 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
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42107
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Silvio » Fri Mar 21, 2008 10:59 am

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?
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Postby Silvio » Fri Mar 21, 2008 12:35 pm

Sorry I resolve all
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Postby Otto » Fri Mar 21, 2008 12:44 pm

It would be an act of courtesy if you would also post the solution.
Regards,
Otto
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 85 guests