FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour GET like facebook's search.
Posts: 33
Joined: Thu Jul 04, 2013 09:28 PM
GET like facebook's search.
Posted: Thu Aug 22, 2013 01:08 PM
Hi...

I need to make GET like facebook's search. (similar attached image)



Thanks

Eduardo Motta

EMotta Sistemas - http://www.emotta.com.br

Fivewin 13.08 - xHarbour Comercial 1.2.2 (jan/2013)
Posts: 33
Joined: Thu Jul 04, 2013 09:28 PM
Re: GET like facebook's search.
Posted: Thu Aug 22, 2013 05:10 PM

Antonio,

I resolved this question. I'm using the CUEBANNER instruction.

I also changed the "DispText" method of the TGet class.

Antonio see as it was and if you approve.

(sorry for my english)

METHOD DispText() CLASS MyGet

if ::lPassword .and. ::oGet:Type == "C"
#ifdef CLIPPER
SetWindowText( ::hWnd, Replicate( "", Len( Trim( ::oGet:buffer ) ) ) )
#else
SetWindowText( ::hWnd, Replicate( If( IsAppThemed(), Chr( 149 ), "
" ),;
Len( Trim( ::oGet:buffer ) ) ) )
#endif
else
If Empty( ::oGet:VarGet()) .and. Empty(::oGet:buffer)
SetWindowText( ::hWnd, If( ! Empty( ::cCueText );
.and. Empty( ::oGet:VarGet() ),;
"", ::oGet:buffer ) )
Else
SetWindowText( ::hWnd, If( ! Empty( ::cCueText );
.and. Empty( ::oGet:VarGet() );
.and. GetFocus() != ::hWnd,; // Focus is outside
"", ::oGet:buffer ) )
EndIf
endif

return nil

Continue the discussion