Normal Topic Text alignment (Read 1203 times)
Peter
Member
*
Offline


No personal text

Posts: 22
Joined: Jan 7th, 2004
Text alignment
Mar 3rd, 2007 at 1:43pm
Print Post Print Post  
Hi

Next question. I’m using @XlookupSourceList followed by a series of AccessStringArray commands to fill a number of elements following input of a unique ID number. Works fine except that where the line lengths are longer than the widths of the elements the text is pushed off to the left, leaving the rightmost part visible even though the element is not set to right justification. Looks odd. If I click in the element and then come out again the text reverts to usual left alignment. How can I overcome this?

Thanks again

Peter
  
Back to top
 
IP Logged
 
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Re: Text alignment
Reply #1 - Mar 3rd, 2007 at 9:41pm
Print Post Print Post  
How about using a smaller font, AND/OR making the element wider AND/OR making it a MultiLine element.
  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged
 
Peter
Member
*
Offline


No personal text

Posts: 22
Joined: Jan 7th, 2004
Re: Text alignment
Reply #2 - Mar 4th, 2007 at 10:29am
Print Post Print Post  
Thanks. Those are all possible workarounds, I agree, although not ideally suited to my application. I'd really like to understand why proramming can cause text to be right-justified in an element formatted for left justification.

Peter
  
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Text alignment
Reply #3 - Mar 4th, 2007 at 3:12pm
Print Post Print Post  
Peter,

It's a side effect of the behavior where text boxes which are not large enough to show their entire value try to show you the end of the value (where you are typing) while you are working in them, then pop back to the beginning when you leave. If the value is set by programming, the text box may not know when you are "finished" and it is time to pop the value back to the beginning.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Text alignment
Reply #4 - Mar 4th, 2007 at 4:22pm
Print Post Print Post  
Peter,

After setting the value, call CursorPosition(ElementName, 1).
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
Peter
Member
*
Offline


No personal text

Posts: 22
Joined: Jan 7th, 2004
Re: Text alignment
Reply #5 - Mar 4th, 2007 at 6:30pm
Print Post Print Post  
Thank you for your answers. It's good to know why this was happening as well as to have the solution. And on a Sunday!!

Fantastic!

Peter
  
Back to top
 
IP Logged