DCRADIO question

This forum is for eXpress++ general support.
Post Reply
Message
Author
Janko
Posts: 111
Joined: Sat Mar 20, 2010 8:36 am
Location: Cerklje

DCRADIO question

#1 Post by Janko »

Dear all,

Code: Select all


@ 1,10  DCGROUP oGroup0 CAPTION 'Izberi časovni interval' SIZE 19,6
@ 1,1   DCRADIO cLMQ VALUE 'L'  PARENT oGroup0 PROMPT ' Leto'           OBJECT oL
@ 2,1   DCRADIO cLMQ VALUE 'M'  PARENT oGroup0 PROMPT ' Mesec'       OBJECT oM
@ 3,1   DCRADIO cLMQ VALUE 'Q'  PARENT oGroup0 PROMPT ' Kvartal'     OBJECT oQ

when cLMQ='M' before objects are created, the result is that second RADIOBUTTON is marked as 'selected' , but PROMPT 'Leto' is framed with dots (like having focus) and not PROMPT 'Mesec'.
How can I correct this visual annomaly? I'd appreciate any hint.

Thanks
Janko

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: DCRADIO question

#2 Post by rdonnay »

DCREAD GUI SETFOCUS @oM
The eXpress train is coming - and it has more cars.

Janko
Posts: 111
Joined: Sat Mar 20, 2010 8:36 am
Location: Cerklje

Re: DCRADIO question

#3 Post by Janko »

Thank you Roger,

I've tried this even before, but it doesn't work.
As well I've used o:xbeP_KillInputFocus() and o:xbeP_SetInputFocus() without desired effect, but I beleive SETFOCUS does the same.

Maybe some other idea?

BR JAnko

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: DCRADIO question

#4 Post by rdonnay »

The below sample program produces the results you want.

Code: Select all

#INCLUDE "dcdialog.CH"

FUNCTION Main()

LOCAL GetList[0], cLMQ := 'M', oGroup0, oL, oM, oQ


@ 1,10  DCGROUP oGroup0 CAPTION 'Izberi c(asovni interval' SIZE 19,6
@ 1,1   DCRADIO cLMQ VALUE 'L'  PARENT oGroup0 PROMPT ' Leto'           OBJECT oL
@ 2,1   DCRADIO cLMQ VALUE 'M'  PARENT oGroup0 PROMPT ' Mesec'       OBJECT oM
@ 3,1   DCRADIO cLMQ VALUE 'Q'  PARENT oGroup0 PROMPT ' Kvartal'     OBJECT oQ

DCREAD GUI FIT TITLE 'Radio Test' SETFOCUS @oM

RETURN nil

PROC appsys ; return
The eXpress train is coming - and it has more cars.

Janko
Posts: 111
Joined: Sat Mar 20, 2010 8:36 am
Location: Cerklje

Re: DCRADIO question

#5 Post by Janko »

Sorry, i missed '@'.
Yes, it works. Thanks.

Janko

Post Reply