by Roberto Parisi » Fri Apr 28, 2006 1:30 pm
Thx Enrico,
I modified the sample according to L&L VB calling docs.
DOCS ON
Calling the Designer
Once the data link is made, a single call is enough to bring up the Designer. The Design method takes a number of parameters which enable you to customize its behavior. These are described in detail in the OCX online help. A call, such as:
ListLabel1.Design 0, hWnd, "Design reports", PROJECT_LIST, "simple.lst", 1
DOCS OFF
This is the source:
#include "fivewin.ch"
#define LL_PROJECT_LIST 2
function main()
local oObj, oWnd
define window oWnd from 0,0 to 800, 800 pixel
oObj := CreateObject( "L11.List-Label11_Ctrl_32.1" )
@0,0 button "Test" action oObj:Design(0, oWnd:hWnd, "Design reports", LL_PROJECT_LIST, "simple.lst", 1)
activate window oWnd
return
Regards