Normal Topic Field Navigation (Read 1952 times)
beagle
Junior Member
**
Offline


No personal text

Posts: 80
Location: australia
Joined: May 28th, 2004
Field Navigation
Sep 11th, 2004 at 1:46am
Print Post Print Post  
I am trying to set up some navigation on my form using command buttons - but I am running into problems  Sad

I have set up a command button at the top of my form with the initial programing in the "on entry" tab

if @update goto elementname

In theory i belive this should take me to the element which it does in a way, (the cursor appears in the element)

However to get to the element I need to "page down" since the screen does not "move".

So
I included a PgDn command in the programming - so that it read

if @update goto elementname
PgDn

That didn't work either Sad - still no screen movement

I then added a forceredraw() command to the programing so that it now reads

if @update goto elementname
PgDn
forceredraw()

That did'nt work either  Angry

I also tried using throwfocus(elementname) - with the same results.

the target element is on a tabbed page - i don't know if this has any effect on the programing

- can anyone enlighten me ?

Many thanks in advance













  
Back to top
 
IP Logged
 
beagle
Junior Member
**
Offline


No personal text

Posts: 80
Location: australia
Joined: May 28th, 2004
Re: Field Navigation
Reply #1 - Sep 11th, 2004 at 6:08am
Print Post Print Post  
As an update to the above,

I can get the form working as I want

BUT

I have to press the command button & then press Shift  ???
  
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Field Navigation
Reply #2 - Sep 11th, 2004 at 12:07pm
Print Post Print Post  
In 1.0.4, the autoscrolling doesn't go if the element is on a tab page. It does in 1.0.5.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
beagle
Junior Member
**
Offline


No personal text

Posts: 80
Location: australia
Joined: May 28th, 2004
Re: Field Navigation
Reply #3 - Sep 11th, 2004 at 11:07pm
Print Post Print Post  
wo hoo!

Thanks heaps!

Looking forward to 1.0.5

Beagle
  
Back to top
 
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Field Navigation
Reply #4 - Sep 12th, 2004 at 11:24am
Print Post Print Post  
Also, an "if statement" without curly braces will only execute one following statement - so:

Code
Select All
if @update goto elementname
PgDn
 



will execute either the "goto elementname" or the "PgDn" - but not both.

Also, the "goto" statement jumps completely out of the current programming. If the "goto" happens, the PgDn cannot. If a goto statement to another LE is executed it will always be the last thing the calling segment of programming will do.
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
beagle
Junior Member
**
Offline


No personal text

Posts: 80
Location: australia
Joined: May 28th, 2004
Re: Field Navigation
Reply #5 - Sep 12th, 2004 at 10:00pm
Print Post Print Post  
Thanks ! - still learning  Wink
  
Back to top
 
IP Logged
 
Steve_in_Texas
Senior Member
*****
Offline


No personal text

Posts: 893
Location: San Antonio
Joined: Feb 21st, 2004
Re: Field Navigation
Reply #6 - Nov 6th, 2004 at 9:31pm
Print Post Print Post  
Can we "goto" a tab page LE and have the target page open automatically?

I have a form view subform and can only get it to autochange pages if the target happens to be a command button.

I can't tab out of 1 text LE to another Text LE on a different page of the same (form view) subform.

Also, how would you 'goto' an LE on the parent form, from the subform?

Thanks,
Steve
  
Back to top
IP Logged
 
Steve_in_Texas
Senior Member
*****
Offline


No personal text

Posts: 893
Location: San Antonio
Joined: Feb 21st, 2004
Re: Field Navigation
Reply #7 - Nov 6th, 2004 at 10:06pm
Print Post Print Post  
bump to top.

Oh, i see this has become an 'archived topic'. I'll start a new thread.

Steve
  
Back to top
IP Logged