forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


How can I...

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
flypaper
Contributor
Contributor


Joined: 19 Oct 2001
Posts: 104

PostPosted: Wed Mar 20, 2002 8:54 pm    Post subject: How can I... Reply with quote

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
View user's profile Send private message
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Wed Mar 20, 2002 9:06 pm    Post subject: Reply with quote

Use this:

DIALOG FOCUS, editboxname

Cheers, Mac Smile

_________________
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
View user's profile Send private message Send e-mail
flypaper
Contributor
Contributor


Joined: 19 Oct 2001
Posts: 104

PostPosted: Thu Mar 21, 2002 3:39 pm    Post subject: Reply with quote

That no worky.

"Exception: Cannot focus a disabled or invisble window."
Back to top
View user's profile Send private message
Tommy
Admin Team


Joined: 16 Nov 2002
Posts: 746
Location: The Netherlands

PostPosted: Thu Mar 21, 2002 4:40 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Thu Mar 21, 2002 6:41 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
flypaper
Contributor
Contributor


Joined: 19 Oct 2001
Posts: 104

PostPosted: Thu Mar 21, 2002 7:24 pm    Post subject: Reply with quote

Whoops I'm dumb. Works once I show the dialog! Thanks yet again.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
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

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group