Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: George High
  Where is George High?
 BP
 Hungary
 George High
 To: Vilhelm-Ion Praisach
  Where is Vilhelm-Ion Praisach?
 Resita
 Romania
 Vilhelm-Ion Praisach
 Tags
Subject: RE: write direction
Thread ID: 395410 Message ID: 395506 # Views: 42 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Forms
Date: Wednesday, January 15, 2014 3:10:22 PM         
   


> > Hi!
> >
> > I have a TextBox, when I start writing the write direction is left to right.
> > That's Ok.
> >
> > *0123456789---->
> >
> > I'd like to change the direction, right to left:
> >
> > <----9876543210*
> >
> > (The * is start position)
> >
> > Any idea?
> >
> > Thanks: George High
>
> An idea :
>
>
PUBLIC oFrm
> oFrm=CREATEOBJECT("MyForm")
> oFrm.show()
> 
> DEFINE CLASS MyForm as Form
> 	ADD OBJECT txt1 as textbox WITH width=200,value=SPACE(240)
> 	PROCEDURE txt1.Keypress
> 		LPARAMETERS nKey,nShift
> 		IF nKey>=32 AND nShift=0
> 			NODEFAULT
> 			DODEFAULT(nKey,nShift)
> 			This.SelStart=MAX(This.SelStart-1,0)
> 		ENDIF
> 	ENDPROC
> ENDDEFINE

>
>
> My respects

Hi Guys!

I guess I was equivocal. So, I'd like to write characters this way: The start position is at right side of TextBox,
not left side
. Why? Because the input format of textbox is '999 999 999'. And when I write a 5 digit number, I can see
this: '132 85', it's wrong for my client, he would like to see this: '13 285' (yes, when I push Enter, '132 85' turns into '13 285'
but it's not enough fine for my client)
This is the right example (last time I posted in a bad way):
*0123456789---->
<----0123456789*
The * sign is start position

Best regards: George High

ENTIRE THREAD

write direction Posted by George High @ 1/14/2014 6:40:09 PM
RE: write direction Posted by Tore Bleken @ 1/14/2014 6:53:05 PM
RE: write direction Posted by Vilhelm-Ion Praisach @ 1/14/2014 8:11:01 PM
RE: write direction Posted by David Mustakim @ 1/15/2014 6:38:04 AM
RE: write direction Posted by Vilhelm-Ion Praisach @ 1/15/2014 7:08:44 AM
RE: write direction Posted by Jun Tangunan @ 1/15/2014 11:37:41 PM
RE: write direction Posted by David Mustakim @ 1/16/2014 2:28:43 AM
RE: write direction Posted by George High @ 1/15/2014 3:10:22 PM
RE: write direction Posted by David Mustakim @ 1/15/2014 3:44:52 PM
RE: write direction Posted by George High @ 1/15/2014 4:47:39 PM
RE: write direction Posted by David Mustakim @ 1/15/2014 4:58:54 PM
RE: write direction Posted by Zia Mughal @ 1/15/2014 9:25:43 AM