Normal Topic Layer controls (Read 1059 times)
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Layer controls
Jan 30th, 2006 at 7:06am
Print Post Print Post  
Is there a way to control layers of elements?

Example, trying to use colored rectangles for design with Static Text element, just filled, no text/label. 

But when overlapping these elements, some are under others and some are on top. 

What are the rules?
How to pull an element closer to the foreground or closer to the bottom layer?
« Last Edit: Jan 30th, 2006 at 5:39pm by Bob_Hansen »  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Layer ciontrols
Reply #1 - Jan 30th, 2006 at 12:58pm
Print Post Print Post  
Version 2 has selection layers for selection purposes.

As to runtime, you can do this by placing the elements on your form in a way that makes them stack as you wish, then use On Form Entry code with XPos and YPos to move them into the desired positions. Stacking order in 1.1 is determined by design-time geography.
  

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


Diagonally parked in a
parallel dimension

Posts: 1290
Location: Massachusetts
Joined: May 27th, 2005
Re: Layer controls
Reply #2 - Jan 30th, 2006 at 5:42pm
Print Post Print Post  
I'm sorry but what does "design-time geography" mean?
  

**
Captain Infinity
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: Layer controls
Reply #3 - Jan 30th, 2006 at 5:43pm
Print Post Print Post  
Thanks for that information Erika.
(And welcome back from Tampa......Grin )

I can see this layering will take some advance planning in 1.1x.....If I wait for 2x, do I measure that period in hours/days/weeks/months?.  Roll Eyes

------------------------------------
For Scott -
"design-time geography"  to me means first come -first served.  My experience has shown that the first LE added to form will be on top of following LE.  So, it will be like reverse stacking ..... the layers you want on top need to be added first.

Will we see you at SANE this Saturday?
------------------------------
  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged
 
Infinity
Senior Member
Members
*****
Offline


Diagonally parked in a
parallel dimension

Posts: 1290
Location: Massachusetts
Joined: May 27th, 2005
Re: Layer controls
Reply #4 - Jan 30th, 2006 at 5:56pm
Print Post Print Post  
Quote:
"design-time geography"  to me means first come -first served.  My experience has shown that the first LE added to form will be on top of following LE.  So, it will be like reverse stacking ..... the layers you want on top need to be added first.


OK, I'll have to digest that a bit.  Still struggling with the concept.  A few weeks back Ray was helping me with a command button which was stacked with a small picture.  I couldn't get it to work because I had the stacking order wrong.  Ray fixed it for me but I'm still not sure how/what was going on with the stack.  I'll have to experiment with it a bit more (it's on the back burner right now).

Of course, once 2.0 comes out the whole affair will be moot because not only will 2.0 allow for manipulation of layers, it will also allow for a picture to be a button's label, rendering the need for a stack unnecessary.

Quote:
Will we see you at SANE this Saturday?

I plan to be there, yes.  I've been sick with a cold all weekend and still feel lousy today but I should be OK by Saturday.
  

**
Captain Infinity
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: Layer controls
Reply #5 - Jan 30th, 2006 at 8:16pm
Print Post Print Post  
Quote:
For Scott -
"design-time geography"  to me means first come -first served.  My experience has shown that the first LE added to form will be on top of following LE.  So, it will be like reverse stacking ..... the layers you want on top need to be added first.


The stacking order does not deal with the order elements were added to the form. Instead it deals with the RAW X and Y coordinates of that element, which is the design-time geography. RAW refers to the X and Y coordinates that you see in designer, Not ones that have been changed with SBasic. So an element that is further up the form gets drawn before one that is further down the form. If two elements share the same X and Y coordinates, then the element that had those coordinates first gets drawn followed by the other one, I believe.

A while back I think Erika wrote this up for Inside Sesame. August Edition of Inside Sesame 2004 Page 11, Perhaps.

If my memory is correct, the problem you were having Scott was that while both of the elements had the same X and Y coordinates the image was at those coordinates first so it was getting drawn under the button. Since the button had no backfill, it appeared to be okay until the button was clicked.

-Ray
  

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


Diagonally parked in a
parallel dimension

Posts: 1290
Location: Massachusetts
Joined: May 27th, 2005
Re: Layer controls
Reply #6 - Jan 31st, 2006 at 2:22pm
Print Post Print Post  
Quote:
f my memory is correct, the problem you were having Scott was that while both of the elements had the same X and Y coordinates the image was at those coordinates first so it was getting drawn under the button. Since the button had no backfill, it appeared to be okay until the button was clicked.

So, just as a general rule of thumb...create and place the button first and then overlay the image?

Or have I got that backwards?
  

**
Captain Infinity
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: Layer controls
Reply #7 - Jan 31st, 2006 at 2:26pm
Print Post Print Post  
It doesn't matter which is added to the form first, it matters which is in the final position first.

Resize your Button on the form
Move it to where you want it
Note the X and Y coordinates
Resize your image on the form to the same size or slightly smaller
Move it to the same X and Y coordinates as the button, or just 1 unit further down and 1 unit further to the right.

-Ray
  

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


Diagonally parked in a
parallel dimension

Posts: 1290
Location: Massachusetts
Joined: May 27th, 2005
Re: Layer controls
Reply #8 - Jan 31st, 2006 at 3:17pm
Print Post Print Post  
Thank you for the clarification.  Smiley
  

**
Captain Infinity
Back to top
IP Logged