Dinamically changing a group content/scrolable area
Posted: Sat May 18, 2013 3:00 pm
Greetings everyone.
I'm starting to give my first steps on LiveCode so, i'm trying to create my first real application.
I'm my application I have a content area were (later) will drag and drop "items" on it.
For this content area i'm using an group with an graphic as background to define the "content area" (which is bigger than the view area, that's why I'm using a group)
The graphic as a background is what define the area where the user may place the "items". So, the bigger the background graphic, the bigger the areal will be. So, if I need more or less content area, i simple increase/decrease this background graphic and the area will change accordingly (at least it's my idea to deal with this feature. If anyone knows a better way to do it, I'm all ears
)
When i increase or reduce this graphic size, its grows/shrinks from the centre to the sides. sometimes this is good but other times may not be.
My first question is: is there any way to increase an object size only to the left or right or to the top or bottom?
Another "problem" I'm having is that, I'm able to reduce the bg graphic to a size smaller them the area occupied by all other "items" inside the group.
My second question is: is there any way to control the resize of my background graphic so that the minimum bg size is the area occupied by all other object in that group? how can I achieve that?
Many thanks in advance for any help anyone can provide
Cheers,
- Miguel
I'm starting to give my first steps on LiveCode so, i'm trying to create my first real application.
I'm my application I have a content area were (later) will drag and drop "items" on it.
For this content area i'm using an group with an graphic as background to define the "content area" (which is bigger than the view area, that's why I'm using a group)
The graphic as a background is what define the area where the user may place the "items". So, the bigger the background graphic, the bigger the areal will be. So, if I need more or less content area, i simple increase/decrease this background graphic and the area will change accordingly (at least it's my idea to deal with this feature. If anyone knows a better way to do it, I'm all ears

When i increase or reduce this graphic size, its grows/shrinks from the centre to the sides. sometimes this is good but other times may not be.
My first question is: is there any way to increase an object size only to the left or right or to the top or bottom?
Another "problem" I'm having is that, I'm able to reduce the bg graphic to a size smaller them the area occupied by all other "items" inside the group.
My second question is: is there any way to control the resize of my background graphic so that the minimum bg size is the area occupied by all other object in that group? how can I achieve that?
Many thanks in advance for any help anyone can provide
Cheers,
- Miguel