Text Vertical Alignment (2)

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Text Vertical Alignment (2)

Post by [-hh] »

..........
Last edited by [-hh] on Wed Aug 13, 2014 1:38 pm, edited 1 time in total.
shiftLock happens
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10501
Joined: Wed May 06, 2009 2:28 pm

Re: Text Vertical Alignment (2)

Post by dunbarx »

Hermann.

A nice workaround. "Nice" means it does what you need, looks right and is straightforward to implement.

Isn't there an ongoing effort to enhance the text formatting properties of fields? Native properties would be a feature that would make a lot of people happy.

Craig
capellan
Posts: 654
Joined: Wed Aug 15, 2007 11:09 pm

Re: Text Vertical Alignment (2)

Post by capellan »

Really well done, Hermman!

How could you handle the field positioning when the user
resize the whole stack to fit in a cuarter or half the screen?

Al
[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Re: Text Vertical Alignment (2)

Post by [-hh] »

..........
Last edited by [-hh] on Wed Aug 13, 2014 1:38 pm, edited 1 time in total.
shiftLock happens
bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4219
Joined: Sun Jan 07, 2007 9:12 pm

Re: Text Vertical Alignment (2)

Post by bn »

Hi,

may I humbly add another stack to the list that shows some ways of resizing

http://forums.runrev.com/phpBB2/viewtop ... 581#p52581

the panes stack. It uses split panes with various elements resized/relocated while dragging vertical/horizontal dividers.

Kind regards
Bernd
[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Re: Text Vertical Alignment (2)

Post by [-hh] »

..........
Last edited by [-hh] on Wed Aug 13, 2014 1:38 pm, edited 1 time in total.
shiftLock happens
snm
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 253
Joined: Fri Dec 09, 2011 11:17 am

Re: Text Vertical Alignment (2)

Post by snm »

I didn't notice it was 2 years ago (for me rather like yesterday).
It's simple and well done Herman. Thanks for share it.

Marek
[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Re: Text Vertical Alignment (2)

Post by [-hh] »

..........
Last edited by [-hh] on Wed Aug 13, 2014 1:37 pm, edited 1 time in total.
shiftLock happens
snm
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 253
Joined: Fri Dec 09, 2011 11:17 am

Re: Text Vertical Alignment (2)

Post by snm »

Working perfect on Mac 10.8.5 LC 6.5.1.
Clicking right text field - nice surprise.

Marek
capellan
Posts: 654
Joined: Wed Aug 15, 2007 11:09 pm

Re: Text Vertical Alignment (2)

Post by capellan »

Hi Hermman,

Just today, I found time to check closely this stack. :oops:
But for the wonderful results that you are getting, I could
tell that you are having a lot of fun with LiveCode. :D
[-hh] wrote:The attached stack is an example of spanning" rows of boxes" and spanning "columns of boxes". It is still unfinished but yet answers the above question of Al to resizing the 'textBoxes'.
And it's still surprisingly simple, using a principle technique of Bernd's pane stack. Most of scripting is due to creating infos for your testing while developping. These info fields and option buttons toggle their visibility by hitting spacebar.
Resizing stack window resizes the boxes proportionally and thereafter the textFields inside the boxes (not using groups, but 'grouplike').
The proportions of width/height that the boxes hold are chosable by dragging one of the three dividers (= buttons) between the boxes.
Keep Up your Great Work! 8)

Al
Post Reply