FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Problem in combobox
Posts: 187
Joined: Mon Oct 20, 2008 06:33 PM
Problem in combobox
Posted: Tue May 20, 2014 10:12 AM
See the example below:

Code (fw): Select all Collapse
#include "FiveWin.ch"
Function Main()
   local oDlg, oCbx
   local mItem := {"AA","BB","CC","aa","bb","cc"}
   local cItem := "aa"
   DEFINE DIALOG oDlg FROM 10,10 TO 20,50 TITLE "Item selecionado: "+cItem

   @ 0.5, 1 COMBOBOX oCbx VAR cItem STYLE CBS_DROPDOWN ITEMS mItem ON CHANGE oDlg:SetText( "Item selecionado: "+cItem )

   ACTIVATE DIALOG oDlg CENTERED
Return nil


The ComboBox shows the "AA" element instead of "aa".

I corrected this with:

Code (fw): Select all Collapse
   ACTIVATE DIALOG oDlg CENTERED ON INIT oCbx:Select(aScan(mItem,cItem))


But I imagine that in a next version of FWH is possible to modify the ComboBox class to identify the correct position case-sensitive.

Thanks,
Oscar Ribeiro

OASyS Informática

Fwh18.02 + xHarbour 1.2.3 + Bcc72
Posts: 187
Joined: Mon Oct 20, 2008 06:33 PM
Re: Problem in combobox
Posted: Wed May 21, 2014 01:06 PM

Linares,

if possible, please correct it in the next release.

Oscar Ribeiro

OASyS Informática

Fwh18.02 + xHarbour 1.2.3 + Bcc72
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Problem in combobox
Posted: Wed May 21, 2014 01:28 PM
Oscar,

Have you tried:

Code (fw): Select all Collapse
oCbx:lCaseSensitive := .t.


Regards,
James
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 187
Joined: Mon Oct 20, 2008 06:33 PM
Re: Problem in combobox
Posted: Fri May 23, 2014 10:24 AM

I tried but did not solve the problem.

Thank you.

Oscar Ribeiro

OASyS Informática

Fwh18.02 + xHarbour 1.2.3 + Bcc72
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Problem in combobox
Posted: Fri May 23, 2014 03:22 PM
Oscar,

Send me an email and I will send you a sample test program. It uses a modified version of Combobox.

You can find my email address on my website at http://www.gointellitech.com.

Regards,
James
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10

Continue the discussion