COMBOBOX

COMBOBOX

Postby Otto » Fri Aug 25, 2017 9: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

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

Image
Image
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6353
Joined: Fri Oct 07, 2005 7:07 pm

Re: COMBOBOX

Postby cnavarro » 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
User avatar
cnavarro
 
Posts: 6549
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: COMBOBOX

Postby Silvio.Falconi » 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 November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7086
Joined: Thu Oct 18, 2012 7:17 pm

Re: COMBOBOX

Postby Rick Lipkin » Sat Aug 26, 2017 2:12 pm

Otto

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

Code: Select all  Expand view  RUN

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
User avatar
Rick Lipkin
 
Posts: 2666
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: COMBOBOX

Postby Otto » Sun Aug 27, 2017 8: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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6353
Joined: Fri Oct 07, 2005 7:07 pm

Re: COMBOBOX

Postby nageswaragunupudi » Sat Sep 02, 2017 1:29 pm

Mr Otto

I think FWH 17.07 resolved your issue.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10681
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 28 guests