Grid lines in field moves down when text wraps

dunbarx at aol.com dunbarx at aol.com
Thu Oct 31 16:59:21 EDT 2013


Ah. I see now.


It sounds like you need to abandon the native properties of fields. I don't know if there is a way to prevent wrapped text from pushing the hGrid lines to fit.



So roll your own lines using line graphics. I have done this in a scrolling field where I wanted to separate banks of lines of data according to certain common attributes that those lines shared. It is much simpler to set the location of the lines at the lineHeight positions, and you can create and delete them as needed according to the number of lines in your field. If you need to, you can have them track changes in the lineHeight or textSize properties as well.



Craig




-----Original Message-----
From: Jim Schaubeck <jimschaubeck at yahoo.com>
To: How to use LiveCode <use-livecode at lists.runrev.com>
Sent: Thu, Oct 31, 2013 4:38 pm
Subject: Re: Grid lines in field moves down when text wraps


Thanks Craig,
I've tried the "showlines" setting. The "showlines" will show a dotted line 
across the field regardless of 
the text being wrapped or not.
The bad news with "showlines" is, it's
 a dotted line with no control over it's color (border/grid color of a 
field).  At least I'm not aware of how to change it's look

I set 
the hGrid to true to give me the clean look (and line color control) I want but 
the lines are getting "pushed down" when the text 
wraps (w/o cr being typed).
 
 
______________________________________________________________________________________________

  jim schaubeck                                       jimschaubeck at yahoo.com/ 714.321.4499


________________________________
 From: "dunbarx at aol.com" <dunbarx at aol.com>
To: use-livecode at lists.runrev.com 
Sent: Tuesday, October 29, 2013 4:15 PM
Subject: Re: Grid lines in field moves down when text wraps
 

Hi 


Not sure what you mean. Do you have the showLines of the field set to true? Is 
that what you meant by "gridLines"?



Do you want the "dontWrap" of the field to be "true"?



Craig Newman





-----Original Message-----
From: Jim Schaubeck <jimschaubeck at yahoo.com>
To: use-livecode <use-livecode at lists.runrev.com>
Sent: Tue, Oct 29, 2013 11:51 am
Subject: Grid lines in field moves down when text wraps


Folks,
When I use return chars in a text field, the lines behave nicely but when the 
text wraps, I can not figure out how to keep the lines from moving down on there 

own.
I've read, Googled, tested...sorry but I can't figure this one out.


Anyone know how to keep the grid lines in a text field still (not moving down) 
when text wraps?

______________________________________________________________________________________________

  jim schaubeck                                      jimschaubeck at yahoo.com/ 
714.321.4499
_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

 



More information about the use-livecode mailing list