I think it becames interesting.
a working sample using folderex
Code: Select all | Expand
/*
demofolderex.prg
*/
#include "fivewin.ch"
FUNCTION DemoFolderEx( lWithDialog, oDlg )
LOCAL oTab
hb_Default( @lWithDialog, .T. )
FW_SetTruePixel(.T.)
IF lWIthDialog
DEFINE DIALOG oDlg ;
TITLE "demofolderex" ;
SIZE 1024, 768
ENDIF
@ 50, 50 FOLDEREX oTab ;
PROMPTS "demofolderex" OF oDlg ;
TAB HEIGHT 22 ;
SIZE 800, 600 ;
PIXEL
IF lWithDialog
ACTIVATE DIALOG oDlg CENTER
ENDIF
(oTab) // warning -w3 -es2
RETURN Nil
Code: Select all | Expand
/*
demobutton.prg
*/
#include "fivewin.ch"
FUNCTION DemoButton( lWithDialog, oDlg )
LOCAL oButton
hb_Default( @lWithDialog, .T. )
FW_SetTruePixel(.T.)
IF lWIthDialog
DEFINE DIALOG oDlg ;
TITLE "demobutton" ;
SIZE 1024, 768
ENDIF
@ 100, 100 BUTTONBMP oButton ;
PROMPT "test" ;
OF oDlg ;
SIZE 200, 25 ;
PIXEL ;
; // RESOURCE cResName TOP ;
ACTION MsgStop( "ok" )
IF lWithDialog
ACTIVATE DIALOG oDlg CENTER
ENDIF
(oButton) // warning -w3 -es2
RETURN Nil
Code: Select all | Expand
/*
democheckbox.prg
*/
#include "fivewin.ch"
FUNCTION DemoCheckbox( lWithDialog, oDlg )
LOCAL oCheck, lValue := .T.
hb_Default( @lWithDialog, .T. )
FW_SetTruePixel(.T.)
IF lWIthDialog
DEFINE DIALOG oDlg ;
TITLE "democheckbox" ;
SIZE 1024, 768
ENDIF
@ 100, 100 CHECKBOX oCheck VAR lValue PROMPT "The Option" PIXEL ;
SIZE 200, 25 OF oDlg
IF lWithDialog
ACTIVATE DIALOG oDlg CENTER
ENDIF
(oCheck) // warning -w3 -es2
RETURN Nil
Code: Select all | Expand
/*
demoall.prg
*/
#include "fivewin.ch"
FUNCTION DemoAll()
LOCAL oDlg, oTab, oPage
FW_SetTruePixel(.T.)
DEFINE DIALOG oDlg ;
TITLE "demoall" ;
SIZE 1024, 768
@ 50, 50 FOLDEREX oTab ;
PROMPTS "X","X","X","X","X" OF oDlg ;
TAB HEIGHT 22 ;
SIZE 900, 700 ;
PIXEL
oTab:aPrompts[ 1 ] := "folderex"
oPage := oTab:aDialogs[ 1 ]
DemoFolderEx( .F., oPage )
oTab:Refresh()
oTab:aPrompts[ 2 ] := "button"
oPage := oTab:aDialogs[ 2 ]
DemoButton( .F., oPage )
oTab:Refresh()
oTab:aPrompts[ 3 ] := "checkbox"
oPage := oTab:aDialogs[3]
DemoCheckbox( .F., oPage )
oTab:Refresh()
aSize( oTab:aPrompts, 3 )
ACTIVATE DIALOG oDlg CENTER
(oTab) // warning -w3 -es2
RETURN Nil
An extra is to add buttons to run dialog standalone and to show source code.
Code is the same, for dialog or tabpage.
DemoCheckbox() -> run as dialog / standalone
DemoCheckbox( .F., oPage ) -> run on tabpage
I like the result, it is to choose a sample by image of what is needed.
Better than compile one by one.
My question:
Using DIALOG, how to add pages to folderex ?
On demoall I created several pages and remove not needed pages.
oTab:AddItem() cause error.