To Control order controls

To Control order controls

Postby MdaSolution » Wed Mar 31, 2010 6:18 pm

I have a source dialog .. @ x,y

I want to control the order of the controls of this dialog

it is possible make it ?
FWH .. BC582.. xharbour
User avatar
MdaSolution
 
Posts: 401
Joined: Tue Jan 05, 2010 2:33 pm

Re: To Control order controls

Postby Enrico Maria Giordano » Wed Mar 31, 2010 9:16 pm

Just create the controls in the right order or use oJump property to force the desired order.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: To Control order controls

Postby MdaSolution » Wed Mar 31, 2010 9:22 pm

oJump property ^?

can you make a test sample ?
FWH .. BC582.. xharbour
User avatar
MdaSolution
 
Posts: 401
Joined: Tue Jan 05, 2010 2:33 pm

Re: To Control order controls

Postby Enrico Maria Giordano » Wed Mar 31, 2010 9:29 pm

Here it is:

Code: Select all  Expand view
#include "Fivewin.ch"

 
FUNCTION MAIN( )
 
    LOCAL oDlg, oGet1, oGet2, oBtn

    LOCAL cVar1 := SPACE( 30 )
    LOCAL cVar2 := SPACE( 30 )

    DEFINE DIALOG oDlg
 
    @ 1, 1 GET oGet1 VAR cVar1

    oGet1:bGotFocus = { || oGet1:oJump := oBtn }

    @ 2, 1 GET oGet2 VAR cVar2

    oGet2:bGotFocus = { || oGet2:oJump := oGet1 }

    @ 3, 1 BUTTON oBtn PROMPT "&Close";
           ACTION oDlg:End()

    oBtn:bGotFocus = { || oBtn:oJump := oGet2 }

    ACTIVATE DIALOG oDlg;
             CENTER
 
    RETURN NIL


EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: To Control order controls

Postby MdaSolution » Wed Mar 31, 2010 10:15 pm

thanks I not Know this oJump parameter, when it is builded ?
FWH .. BC582.. xharbour
User avatar
MdaSolution
 
Posts: 401
Joined: Tue Jan 05, 2010 2:33 pm

Re: To Control order controls

Postby Enrico Maria Giordano » Thu Apr 01, 2010 8:39 am

I don't know exactly but many years ago.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], Marc Venken and 98 guests