Can we insert a vertical scroll to Tpanel ?
FWH .. BC582.. xharbour
Can we insert a vertical scroll to Tpanel ?
yes
Can have a sample please ?
because on Tpanel class I not see vscroll method
I have fwh 9.10
oPanel:nStyle := nOr( oPanel:nStyle, WS_VSCROLL )
DEFINE SCROLLBAR oPanel:oVScroll VERTICAL OF oPanel RANGE 0,100#include "fivewin.ch"
static oTest
Function Main()
LOCAL oWnd, oBar, oPanel
DEFINE WINDOW oWnd ;
FROM 0, 0 TO 600, 800 PIXEL;
TITLE "test" ;
MDI
DEFINE BUTTONBAR oBar 3D SIZE 64, 64 OF oWnd 2007
DEFINE BUTTON OF oBar action write_bmp(oPanel,oBar:nHeight-1,5,"test.bmp") // first click here
DEFINE BUTTON OF oBar action write_bmp(oPanel,oTest:nBOTTOM+5,5,"test.bmp") // second click here
oPanel := TPanel(): New( oBar:nHeight-1 , 0, 400, 500, oWnd )
oPanel:nStyle := nOr( oPanel:nStyle, WS_VSCROLL )
DEFINE SCROLLBAR oPanel:oVScroll VERTICAL OF oPanel RANGE 0,100
ACTIVATE WINDOW oWnd maximized
RETURN NIL
Function write_bmp(oPanel,ntop,nleft,cBmpfile)
@ ntop,nleft BITMAP oTest FILENAME cBmpfile OF oPanel BORDER
RETURN NIL#include "FiveWin.ch"
static oTest
Function Main()
LOCAL oWnd, oBar, oPanel
DEFINE WINDOW oWnd ;
FROM 0, 0 TO 600, 800 PIXEL;
TITLE "test"
DEFINE BUTTONBAR oBar 3D SIZE 64, 64 OF oWnd 2007
DEFINE BUTTON OF oBar ACTION write_bmp( oPanel, 5, 5, "test.bmp" ) // first click here
DEFINE BUTTON OF oBar ACTION write_bmp( oPanel, oTest:nBOTTOM + 5, 5, "test.bmp" ) // second click here
oPanel := TPanel(): New( oBar:nHeight - 1 , 0, 400, 500, oWnd )
oPanel:nStyle := nOr( oPanel:nStyle, WS_VSCROLL )
DEFINE SCROLLBAR oPanel:oVScroll VERTICAL OF oPanel RANGE 0,100
oWnd:oClient = oPanel
ACTIVATE WINDOW oWnd MAXIMIZED
RETURN NIL
Function write_bmp( oPanel, ntop, nleft, cBmpfile )
@ ntop, nleft BITMAP oTest FILENAME cBmpfile OF oPanel BORDER PIXEL
RETURN NIL
ahora funciona
gracias Maestro Antonio
Necesito una lista de todos los registros con la clase de Tsection ( viewtopic.php?f=3&t=17804)