FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour COMBOBOX
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
COMBOBOX
Posted: Fri Aug 25, 2017 09:16 PM
Hello,
I face some problems with COMBOBOX.
1) I would like that the combobox is painted inside the DIALOG.
2) If I use HEIGHTGET search is not working anymore.


Thanks in advance
Otto


#INCLUDE "FIVEWIN.CH"

REQUEST DBFCDX

function Main()

local cItem, aItems := {}
local oCbx
local cCbx := ""
local oCbx2
local cItem2 := ""
local oDlg
local oFont
//----------------------------------------------------------------------------//


USE Staatzu
DBEVAL( { || AAdd( aItems, FIELD->staat ) } )
CLOSE Staatzu

cItem := aItems[ 1 ]

DEFINE FONT oFont NAME "Segoe UI" SIZE 0,-16

DEFINE DIALOG oDlg ;
SIZE 800, 600 ;
PIXEL ;
FONT oFont

@ 70,120 COMBOBOX oCbx VAR cItem SIZE 200,400 PIXEL OF oDlg ;
ITEMS aItems

@ 110,120 COMBOBOX oCbx2 VAR cItem2 SIZE 200,400 PIXEL OF oDlg ;
ITEMS aItems HEIGHTGET 80/2.05

ACTIVATE DIALOG oDlg CENTERED

RELEASE FONT oFont


return nil

//----------------------------------------------------------------------------//


Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: COMBOBOX
Posted: Fri Aug 25, 2017 10:47 PM

Otto, tested in last version and I think the search works well

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: COMBOBOX
Posted: Fri Aug 25, 2017 11:07 PM

Otto
the second combobox is link to first ?
sample
Daihatsu -> copen/ sirion / terios

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: COMBOBOX
Posted: Sat Aug 26, 2017 02:12 PM
Otto

This code seems to work for me .... notice the oPrefix:lIncSearch = .T.

Code (fw): Select all Collapse
REDEFINE COMBOBOX oPrefix  var cPrefix  ID 131 of oInvt  ;
                ITEMS aPrefix  ;
                ON CHANGE ( _Isearch( oPrefix, cPrefix,oStockno,cStockno, ;
                                     oLbxA, oRs, @cQuery, oQuery )) ;
                UPDATE
           oPrefix:lIncSearch = .T.


Rick Lipkin
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: COMBOBOX
Posted: Sun Aug 27, 2017 08:45 AM

Hello Rick,

thank you fro taking your time and help.
I do not use resources.

oPrefix:lIncSearch = .T. does not help.

The problems are still there.
Best regards,
Otto

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: COMBOBOX
Posted: Sat Sep 02, 2017 01:29 PM

Mr Otto

I think FWH 17.07 resolved your issue.

Regards



G. N. Rao.

Hyderabad, India

Continue the discussion