Normal Topic Hidden Command Button on my Form (Read 912 times)
Louis Galvao
Full Member
***
Offline


"Sufferin' Succatash"

Posts: 265
Location: Canada
Joined: Feb 14th, 2005
Hidden Command Button on my Form
May 24th, 2005 at 5:54pm
Print Post Print Post  
I have a form that has several Tabs on it.  Within the Tabs are some command buttons.

I inadvertently created a Command Button, dragged it somewhere and now cannot see it.

It is still there on the form (not on the Tabs) as it shows up on the Set Navigation Order option.  Also when all select all elements on the form, it hides the tabs, reveals the name of the label in the OTHER tab in the property editor but is not visible.

I have also tried moving the Tabs to see if it is hiding behind them but no luck.

Is there a way to delete it or pinpoint where exactly it is ?

Thanks,

Louis
  

Louis Galvao
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Hidden Command Button on my Form
Reply #1 - May 24th, 2005 at 6:14pm
Print Post Print Post  
You can select all elements on the Form, then deselect everything you can see. Your button may be the only thing left selected at that point.

You may also try selecting all elements on the Canvas (right-click on the Canvas) and see if you dropped it back under the Form by putting it on the Canvas.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Re: Hidden Command Button on my Form
Reply #2 - May 24th, 2005 at 6:23pm
Print Post Print Post  
If you open the Program Layout, Element list,  you should see a list of all progarmmable elements anywhere on the form.  If you do not see the command button here, then you can pretty sure it does not exist.  It may have a name like LE0 or some other generic name if you never assigned it a label.

If it is on the list, then you will need to locate it manually.  The position in the Program Layout list should give you a relative idea of its position because the listing seems to follow geography.  Tabs will alter this positioning based on top left position of the tab element.



  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: Hidden Command Button on my Form
Reply #3 - May 24th, 2005 at 6:33pm
Print Post Print Post  
If you know the name of the command button you can get the X and Y position from sBasic. Just run a simple Mass Update on one record with the following code

Code
Select All
Writeln("Button's X Pos " + @XPos(ButtonName))
Writeln("Button's Y Pos " + @YPos(ButtonName)) 



-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Louis Galvao
Full Member
***
Offline


"Sufferin' Succatash"

Posts: 265
Location: Canada
Joined: Feb 14th, 2005
Re: Hidden Command Button on my Form
Reply #4 - May 24th, 2005 at 7:35pm
Print Post Print Post  
Thanks for all 3 suggestions on this matter.

At the end of the day, I was able to select all elements (as per the first suggestion) on the form and it indicated the X Pos was 0.  I changed the X Pos and Y Pos to isolate it and there it was. 

I then deleted the button and moved my tabs upward and everything seems to be fine.

I did try the Writeln suggestion but came up with a LENID error.

Those tabs are finicky when moving elements onto them.

Thanks,

Louis
  

Louis Galvao
Back to top
 
IP Logged