#include "fivewin.ch"
function main()
local oDlg, oBrw
USE CUSTOMER
DEFINE DIALOG odlg SIZE 600,300 PIXEL //TRUEPIXEL
@ 20,20 XBROWSE oBrw SIZE -20,-20 PIXEL OF oBrw ;
DATASOURCE ALIAS() ;
COLUMNS "FIRST", "LAST", "STREET" ;
HEADERS "FIRST" + CRLF + "NAME", "LAST" + CRLF + "NAME" ;
NOBORDER
oBrw:bRClicked := { || oBrw:Edit() }
oBrw:CreateFromCode()
ACTIVATE DIALOG oDlg CENTERED
return nil
I grabbed 16.12 because I wanted to test the new lSeekBar feature
#include "fivewin.ch"
REQUEST DBFCDX
function Main()
local oDlg, oFont, oBrw
USE CUSTOMER NEW SHARED ALIAS CUST VIA "DBFCDX"
SET ORDER TO TAG FIRST
GO TOP
DEFINE FONT oFont NAME "TAHOMA" SIZE 0,-14
DEFINE DIALOG oDlg SIZE 900,400 PIXEL TRUEPIXEL FONT oFont
@ 20,20 XBROWSE oBrw SIZE -20,-20 PIXEL OF oDlg ;
DATASOURCE "CUST" AUTOCOLS ;
AUTOSORT ; // <--- This is important
LINES NOBORDER
WITH OBJECT oBrw
:lSeekBar := .t.
:bClrEdits := { || { CLR_HRED, CLR_YELLOW } }
:CreateFromCode()
END
ACTIVATE DIALOG oDlg CENTERED
RELEASE FONT oFont
return nil
resource files, so CreateFromCode() does not apply ( and is not used ).
the problem is specific to Harbour / MSVC,
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 115 guests