Linares - Some customizations made in Fivewin code

Linares - Some customizations made in Fivewin code

Postby sambomb » Fri Apr 05, 2013 5:29 pm

Antonio, maybe you can implement this changes in the next version.

TComoBox.Prg
Code: Select all  Expand view

   DATA   lAutoOpen        AS LOGICAL INIT .F. //-- Open the combo when focused
   DATA   nKeyCharInterval AS NUMERIC INIT 0   //-- Clean search Buffer

METHOD GotFocus() CLASS TComboBox

   ::cSearchKey := ""

   if ::lAutoOpen //-- Open the combo when focused
      ::Open()
   end

return Super:GotFocus()

METHOD KeyChar( nKey, nFlags ) CLASS TComboBox

   local nNewAT := 0, nOldAT := ::nAT, uItem

   if Len( ::aItems ) == 0
      return 0
   endif

   //-- Clean search buffer after 1 second
   if (GetTickCount() - ::nKeyCharInterval) > 1000
      ::cSearchKey := ''
   end

   ::nKeyCharInterval := GetTickCount()
...

 


In the next posts I'll post some changes made in Get, Xbrowse, etc...
Email: SamirSSabreu@gmail.com
xHarbour 1.2.3 + Fwhh 20.2
User avatar
sambomb
 
Posts: 388
Joined: Mon Oct 13, 2008 11:26 am
Location: Itaocara - RJ - Brasil

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 88 guests