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] » Wed Jan 01, 2014 11:21 pm

..........
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: 10331
Joined: Wed May 06, 2009 2:28 pm

Re: Text Vertical Alignment (2)

Post by dunbarx » Wed Jan 01, 2014 11:51 pm

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 » Thu Jan 02, 2014 6:23 am

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] » Thu Jan 02, 2014 11:49 am

..........
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: 4172
Joined: Sun Jan 07, 2007 9:12 pm

Re: Text Vertical Alignment (2)

Post by bn » Thu Jan 02, 2014 10:25 pm

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] » Thu Jan 02, 2014 11:04 pm

..........
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 » Sat Jan 04, 2014 7:57 pm

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] » Sun Jan 05, 2014 12:30 am

..........
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 » Sun Jan 05, 2014 2:51 pm

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 » Tue Jan 07, 2014 5:52 am

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