Page 1 of 2
text adapt
Posted: Tue Aug 27, 2013 8:06 pm
by pascalh4
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
Re: text adapt
Posted: Tue Aug 27, 2013 8:42 pm
by Mark
Hi Pascal,
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
Kind regards,
Mark
Re: text adapt
Posted: Tue Aug 27, 2013 10:18 pm
by pascalh4
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
Re: text adapt
Posted: Tue Aug 27, 2013 10:26 pm
by Mark
Got a picture?
Re: text adapt
Posted: Tue Aug 27, 2013 11:17 pm
by pascalh4
hi
Got a picture?
I don't understand your question.
Pascal
Re: text adapt
Posted: Wed Aug 28, 2013 4:19 pm
by Klaus
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

Re: text adapt
Posted: Wed Aug 28, 2013 4:27 pm
by FourthWorld
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.
Re: text adapt
Posted: Wed Aug 28, 2013 4:56 pm
by Mark
Can you explain what he wants, FourthWorld?
Mark
Re: text adapt
Posted: Wed Aug 28, 2013 5:04 pm
by Klaus
Mark wrote:Can you explain what he wants, FourthWorld?
Mark
Yes, Richard, with pictures, please

Re: text adapt
Posted: Wed Aug 28, 2013 5:46 pm
by Mark
No, Klaus, with an animation
Mark
Re: text adapt
Posted: Wed Aug 28, 2013 6:11 pm
by Klaus
Oh, yes, even better!
C'mon, Richard, we're waiting!

Re: text adapt
Posted: Wed Aug 28, 2013 6:50 pm
by FourthWorld
Klaus wrote:Oh, yes, even better!
C'mon, Richard, we're waiting!

Your guess is as good as mine.
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.
Re: text adapt
Posted: Wed Aug 28, 2013 6:54 pm
by jacque
My guess is he wants to adjust the textsize as well as the size of the field itself.
Re: text adapt
Posted: Wed Aug 28, 2013 6:57 pm
by Klaus
Richard, we are only kidding!

Sorry, for being a bit silly!
Re: text adapt
Posted: Wed Aug 28, 2013 7:14 pm
by FourthWorld
Klaus wrote:Richard, we are only kidding!

Sorry, for being a bit silly!
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.
Looking forward to hearing more from Pascal on this.