Wolfgang,
>
Is there a possibilty to have a bigger row height in the LISTBOX or two rows for each record ?
>
Yes, you have to use a larger font for it. Here I show you a working example.
>
How can i have different bitmaps (hbmp) dependant on the content of one field ?
>
Yes, in this same example I show you how to use as many bitmaps as needed.
test.prg
Code: Select all
// FiveWin for Pocket PC - Testing browses
#include "FWCE.ch"
REQUEST DBFCDX
function Main()
local oWnd, oBrw, hBmp1 := ReadBitmap( CurDir() + "\go.bmp" ), hBmp2 := ReadBitmap( CurDir() + "\browse.bmp" )
local oFont
USE ( CurDir() + "\Customer" ) VIA "DBFCDX"
DEFINE WINDOW oWnd TITLE "Tutor10"
DEFINE FONT oFont NAME "Verdana" SIZE 0, -14
@ 1, 1 LISTBOX oBrw ;
FIELDS If( RecNo() % 2 == 0, hBmp1, hBmp2 ), Customer->Last, Customer->First ;
HEADERS "", "Last", "First" ;
COLSIZES 20, 70, 80 ;
SIZE 220, 167 FONT oFont
@ 12, 17 BUTTON "Done" SIZE 80, 30 ;
ACTION oWnd:End()
ACTIVATE WINDOW oWnd ;
ON CLICK MsgInfo( "Click!" )
DeleteObject( hBmp1 )
DeleteObject( hBmp2 )
oFont:End()
return nil