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
//----------------------------------------------------------------------------//