View previous topic :: View next topic |
Author |
Message |
flypaper Contributor
Joined: 19 Oct 2001 Posts: 104
|
Posted: Wed Mar 20, 2002 8:54 pm Post subject: How can I... |
|
|
Is there a way to make the cursor appear in a specific edit box when the program is started? The only way I have found to do this is to make it the first edit box. Is there another way? |
|
Back to top |
|
|
Mac Professional Member
Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Wed Mar 20, 2002 9:06 pm Post subject: |
|
|
Use this:
DIALOG FOCUS, editboxname
Cheers, Mac _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
|
|
Back to top |
|
|
flypaper Contributor
Joined: 19 Oct 2001 Posts: 104
|
Posted: Thu Mar 21, 2002 3:39 pm Post subject: |
|
|
That no worky.
"Exception: Cannot focus a disabled or invisble window." |
|
Back to top |
|
|
Tommy Admin Team
Joined: 16 Nov 2002 Posts: 746 Location: The Netherlands
|
Posted: Thu Mar 21, 2002 4:40 pm Post subject: |
|
|
I expect the dialog is required to be shown while you try to use DIALOG FOCUS, in that case it should work for sure.
Tommy |
|
Back to top |
|
|
Mac Professional Member
Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Thu Mar 21, 2002 6:41 pm Post subject: |
|
|
It worky just fine for me...
But it does have to be visible. :)
Code: |
OPTION SCALE, 96
OPTION DECIMALSEP, "."
TITLE By Mac
DIALOG CREATE,Test prog,-1,0,215,60
DIALOG ADD,BUTTON,B1,5,110,100,20,"Focus Up"
DIALOG ADD,BUTTON,B2,35,110,100,20,"Focus Down"
DIALOG ADD,EDIT,E1,5,5,100,20
DIALOG ADD,EDIT,E2,35,5,100,20
DIALOG SHOW
:EVLOOP
WAIT EVENT
goto @event()
:B1BUTTON
DIALOG FOCUS, E1
goto EVLOOP
:B2BUTTON
DIALOG FOCUS, E2
goto EVLOOP
:CLOSE
EXIT
|
_________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
|
|
Back to top |
|
|
flypaper Contributor
Joined: 19 Oct 2001 Posts: 104
|
Posted: Thu Mar 21, 2002 7:24 pm Post subject: |
|
|
Whoops I'm dumb. Works once I show the dialog! Thanks yet again. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|