Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 11:29 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Text Input Focus and Tabs
PostPosted: July 26th, 2006, 11:42 am 
Offline

Joined: July 13th, 2006, 1:14 pm
Posts: 3
Hey all,

Just a quick question, i was hoping somone could answer.
The project i am completing uses a login window, and uses a login button as well as a clear button. However, if you say enter your username, and then write a password, hit clear, the text input foucs remains where it is. I was wondering if there was an OpusCode or some other setting, that would make the focus return to the username box. I need this for a few other pages where clear buttons are active, im just using the login page as a small example.

Also while i am in this message, is there anyway of setting the tab order. So that a user could tab through a form rather than clicking.

Thanks alot
Helix


Top
 Profile  
 
 Post subject:
PostPosted: July 26th, 2006, 12:16 pm 
Offline

Joined: November 3rd, 2004, 2:11 pm
Posts: 323
Use this OpusScript

Code:
inputbox.SetFocus()

_________________
Opus Pro XE 9.1 Win7 64-bit Core i3 8MB RAM


Top
 Profile Visit website  
 
 Post subject: Re: Text Input Focus and Tabs
PostPosted: July 26th, 2006, 2:12 pm 
Offline

Joined: October 26th, 2004, 10:23 am
Posts: 666
Location: Digital Workshop
Master_Helix wrote:
is there anyway of setting the tab order. So that a user could tab through a form rather than clicking.

The tab order follows the page object order (i.e. the order downwards in the organizer tree)

_________________
ddww Opus Developer


Top
 Profile Visit website  
 
 Post subject:
PostPosted: July 26th, 2006, 2:16 pm 
Offline

Joined: October 26th, 2004, 1:26 pm
Posts: 262
Hi Helix,

Welcome to the forum. :) What version of Opus are you using?

I'm not sure what you mean by 'clear' button? (one would interpret this as making the contents of the input box variable blank/empty)

In your password input box, (or your last input box) that you wish the focus I-beam to disappear, go to the input box's Properties Tab >> Text Input Tab >> and untick the option "Return skips to next text box". That should make the focus I-beam disappear.

If this is not suitable, then as "bwpatric" suggests, you can use some OpusScript to set focus to another object on your clear button. (sometimes a tiny delay works best when changing the focus, using the SetFocus() script.

As usual, Duncan is too quick and beat me to answering the tab order question. :D

_________________
Cheers,
Steve


Top
 Profile  
 
 Post subject: Simple solution
PostPosted: July 27th, 2006, 12:32 am 
Offline

Joined: October 25th, 2004, 2:20 pm
Posts: 686
Location: Naperville, Illinois (USA)
Opus: 7.05
OS: Win XP SP3
System: P4 3.2GHz 1GB RAM 2-TB HDs + 4 more
On your "Clear" Button, set the Action to "Go to Page Current (Reset)." This will cause the current Page to reappear, and I'm sure you must have a reset Variables on this screen. Your cursor will be at the proper Text Input Object this way.

Sometimes "simple" is better.

_________________
Fred Harms, Extraordinary Demos
Naperville, Illinois (USA) 630/904-3636
demofred@aol.com


Top
 Profile Visit website  
 
 Post subject:
PostPosted: July 30th, 2006, 10:34 am 
Offline

Joined: July 13th, 2006, 1:14 pm
Posts: 3
Thanks for the replys demofred, Steve H, Duncan Lilly, and bwpatric.
For those playing at home im on a trial version of Opus Pro XE. and hopefully (crosses fingers) the company will be purchacing the full version shortly.

As for the responces Steve was right in saying the clear button just sets the text boxes to "".

I found that bwpatric's opusScript worked the best, and has solved my problem. Also duncans telling me that the order goes by the tree has left me with a bit of ajusting to do :P

Thanks all again for the great support.

Helix


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 67 guests


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group