text adapt
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
text adapt
hi,
me again!
In revressourcecenter.rev when the window is resized, the text fits in width.
To text field and geometry, it is good.
But for the writings and images, how to set up them, so they adapt to the remaining space?
I tried to find in inspectors, but I have not found.
Pascal
me again!
In revressourcecenter.rev when the window is resized, the text fits in width.
To text field and geometry, it is good.
But for the writings and images, how to set up them, so they adapt to the remaining space?
I tried to find in inspectors, but I have not found.
Pascal
Re: text adapt
Hi Pascal,
Are you asking how to adjust a field to the size of a window? Like this:
Kind regards,
Mark
Are you asking how to adjust a field to the size of a window? Like this:
Code: Select all
on resizeStack
set the rect of fld 1 to the rect of this stack
pass resizeStack
end resizeStack
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: text adapt
Thank you Mark, but it is not quite what I want.
I want to know, how to adapt the writings of the field, when the rectangle of the field is modified.
As is the event in the resource manager.
Good night.
Pascal
I want to know, how to adapt the writings of the field, when the rectangle of the field is modified.
As is the event in the resource manager.
Good night.
Pascal
Re: text adapt
Got a picture?
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: text adapt
hi
Pascal
I don't understand your question.Got a picture?
Pascal
Re: text adapt
Picture = image, means, can you please post a screenshot of what you want to achieve,
we have still no idea of what you are looking for
we have still no idea of what you are looking for

-
- VIP Livecode Opensource Backer
- Posts: 10062
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: text adapt
I think it would require an animation, as a still shot won't show what's needed.
Pascal, take a look at the formattedWidth and formattedHeight field properties. Those can be used within a textChanged handler to adjust the size of the field to fit its contents.
You may want to keep in mind that users can drag-and-drop text as well as paste, and either may exceed the physical bounds of the card, so perhaps at a certain size you could add a vertical scrollbar to the field.
Pascal, take a look at the formattedWidth and formattedHeight field properties. Those can be used within a textChanged handler to adjust the size of the field to fit its contents.
You may want to keep in mind that users can drag-and-drop text as well as paste, and either may exceed the physical bounds of the card, so perhaps at a certain size you could add a vertical scrollbar to the field.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: text adapt
Can you explain what he wants, FourthWorld?
Mark
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: text adapt
Yes, Richard, with pictures, pleaseMark wrote:Can you explain what he wants, FourthWorld?
Mark

Re: text adapt
No, Klaus, with an animation 
Mark

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: text adapt
Oh, yes, even better!
C'mon, Richard, we're waiting!
C'mon, Richard, we're waiting!

-
- VIP Livecode Opensource Backer
- Posts: 10062
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: text adapt
Your guess is as good as mine.Klaus wrote:Oh, yes, even better!
C'mon, Richard, we're waiting!
Pascal has already noted elsewhere that he's not a native English speaker, and given his posts here I'm not confident that the guess I made about what he's looking for is indeed relevant, and have been waiting for him to clarify whether it is.
If you feel it's productive to venture further guesses before we get more guidance from Pascal, you're welcome to add your own as I've already done.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: text adapt
My guess is he wants to adjust the textsize as well as the size of the field itself.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: text adapt
Richard, we are only kidding! 
Sorry, for being a bit silly!

Sorry, for being a bit silly!
-
- VIP Livecode Opensource Backer
- Posts: 10062
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: text adapt
No apology needed, though I always appreciate your sensitivity to such social graces. The fact is that I don't really know what he's looking for, though Jacque's guess seems perhaps better than my own.Klaus wrote:Richard, we are only kidding!
Sorry, for being a bit silly!
Looking forward to hearing more from Pascal on this.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn