Search found 9 matches: restlength

Return to advanced search

Re: How to control Restlength of a GET-field during Edit ?

Mr Rao, Thank You very much for Your Help, Yes, the Clipboard was added with the Mouse. I used Your Example and with the change of Class TGet, the Clipboard-Problem will be solved. I still noticed : Spaces are not counted, because of : - Len( Trim( oSyntax1:cText ) A small change is needed, to count...
by ukoenig
Sat Mar 20, 2010 1:59 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to calc. Restlength of a GET-field during Edit (solved)
Replies: 8
Views: 1731

Re: How to control Restlength of a GET-field during Edit ?

Mr Uwe If you like u may make the modification to TGet.Prg: In the method HandleEvent() of TGet class, you find ::oGet:Assign three times. After each occurance of ::oGet:Assign(), please add the following three lines:           if ::bChange != nil        ...
by nageswaragunupudi
Sat Mar 20, 2010 1:21 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to calc. Restlength of a GET-field during Edit (solved)
Replies: 8
Views: 1731

Re: How to control Restlength of a GET-field during Edit ?

Thank You very much, Your Solution works perfect, but I noticed : including Text from Clipboard, the Chars are not counted. It means : in case pasting something from Clipboard, the length must be added to the Counter. It is not the normal Situation. T he Main-problem is solved with Your Solution : ...
by nageswaragunupudi
Sat Mar 20, 2010 12:57 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to calc. Restlength of a GET-field during Edit (solved)
Replies: 8
Views: 1731

Re: How to control Restlength of a GET-field during Edit ?

Thank You very much, Your Solution works perfect, but I noticed : including Text from Clipboard, the Chars are not counted. It means : in case pasting something from Clipboard, the length must be added to the Counter. It is not the normal Situation. The Main-problem is solved with Your Solution : co...
by ukoenig
Sat Mar 20, 2010 12:46 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to calc. Restlength of a GET-field during Edit (solved)
Replies: 8
Views: 1731

Re: How to control Restlength of a GET-field during Edit ?

Please try this logic func test()   local odlg, cVar, oGet, oSay, nRest   cVar     := PadR( 'Hello', 100 )   nRest    := Len( cVar ) - Len( Trim( cVar ) )   DEFINE DIALOG oDlg SIZE 500,100 PIXEL ...
by nageswaragunupudi
Sat Mar 20, 2010 12:22 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to calc. Restlength of a GET-field during Edit (solved)
Replies: 8
Views: 1731

Re: How to control Restlength of a GET-field during Edit ?

It works using a Key-Counter, but I need the trimmed Restlength of the Get during Input. A oGet:Sysrefresh() doesn't work to show => LEN(TRIM(cSyntax)) What happens, the user includes something from the Clipboard ? nCount := 0 // GetField-Len = ...
by ukoenig
Sat Mar 20, 2010 12:02 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to calc. Restlength of a GET-field during Edit (solved)
Replies: 8
Views: 1731

Re: How to control Restlength of a Get during Edit ?

What about oSyntax1:bKeyDown ?

Regards
Anser
by anserkk
Sat Mar 20, 2010 11:18 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to calc. Restlength of a GET-field during Edit (solved)
Replies: 8
Views: 1731

How to calc. Restlength of a GET-field during Edit (solved)

Hello in some Situations, I have to show the Restlength of a Getfield during Input. With Inputs like "Ijl", the User is confused : There is still Space inside the Get, why I cannot write anymore ! It works, but only with Return. I have ...
by ukoenig
Sat Mar 20, 2010 11:00 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to calc. Restlength of a GET-field during Edit (solved)
Replies: 8
Views: 1731

Return to advanced search