List field size organizing

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

appmann
Posts: 33
Joined: Wed Oct 09, 2013 9:08 pm

Re: List field size organizing

Post by appmann » Tue Oct 22, 2013 7:52 pm

Oki Klaus. It worked. I had a lot of problems before i find out that its Commas and NOT dots that seperate the locations :-)

Now i just have to play with it to get the right view.

But one more thing. I cant lock my field to the bottom.

I have tryed all setting in the inspector.

No matter what, when i resize during script, it sets the position to the same. but from the center.

That means both the effect and the fields and buttons showing, not looks great.

Am I missing something in the script? or does i have to rearrange the field during the lock screen?

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: List field size organizing

Post by Klaus » Tue Oct 22, 2013 9:12 pm

Hi appman,

ah, yes, setting width or height of an object affect its location!

Do this:
...
lock screen for visual effect
put the topleft of fld "xyz" into tOldTopLeft
## Or do you mean "bottomright"?
## Take what you need: topleft ofr bottomright :D

set the height of fld "xyz" to 176
## Now reset top left or bottom right:
set the topleft of fld "xyz" to tOldTopLeft
...

Best

Klaus

appmann
Posts: 33
Joined: Wed Oct 09, 2013 9:08 pm

Re: List field size organizing

Post by appmann » Thu Oct 24, 2013 10:35 am

Hi Klaus.

Again you was right. :-)

It worked very well with the bottomRight.

Now im almost finished with the code for the first card :-).

But i thing the code can be made easyer.

In visual Basic you can put a lot of code in the main script and neme it. Then you can call the script when you need it. (if needed more than one or two times.

It makes the code much more simple. I know its possible in LC too. How does this work. fx call ScrollingField of stack (or Card) [name]

Post Reply