
I would like to have a window in MDI mode with a panel on the right where to place objects such as an xbrowse and the final user can make this panel smaller with a click, and when the panel is closed it must hide to the right
I saw this on a software made in vb, I would like to create it on fwh
test of image
#include "fivewin.ch"
//----------------------------------------------------------------------------//
聽 聽 function Main()
聽 聽 聽 聽local oWnd, oBarRight, oBar
聽 聽 聽 聽SetGetColorFocus()
聽 聽 聽 聽DEFINE WINDOW oWnd MDI TITLE "test panel on dx" 聽HSCROLL VSCROLL
聽 聽 聽 聽DEFINE BUTTONBAR oBarRight OF oWnd SIZE 200,32 2007 RIGHT
聽 聽 聽 聽DEFINE BUTTONBAR oBar OF oWnd SIZE 100,32 2007
聽 聽 聽
聽 聽 聽 聽ACTIVATE WINDOW oWnd ;
聽 聽 聽 聽ON INIT TESTBROWSE(oBarRight)
聽 聽 return nil
聽 聽 //----------------------------------------------------------------------------//
聽 聽 聽FUNCTION TESTBROWSE(oBarRight)
聽 聽 聽 聽LOCAL oBrw
聽 聽 聽 聽local adata:= {;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽{"Bari",55,66,99,88,77},;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽{"Pescara",55,66,99,88,77},;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽{"Ancona",55,66,99,88,77},;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽}
聽 聽 聽 聽 @ 2,1 XBROWSE oBrw OF oBarRight SIZE 200,oBarRight:nWidth-10 PIXEL NOBORDER;
聽 聽 聽 COLS 1,2,3,4,5,6;
聽 聽 聽 HEADERS "Ruota", "E1", "E2", "E3", "E4", "E5" ;
聽 聽 聽 SIZES 聽30,35,35,35,35,35 聽;
聽 聽 聽 ARRAY adata ;
聽 聽 聽 CELL LINES
聽 聽 聽 聽 WITH OBJECT oBrw
聽 聽 聽 :nRowHeight 聽 聽:= 19
聽 聽 聽 :nClrBorder := CLR_GRAY
聽 聽 聽 :lDrawBorder := .t.
聽 聽 聽 :nColorBox := CLR_HRED
聽 聽 聽 :nMarqueeStyle 聽 聽 聽 := MARQSTYLE_HIGHLWIN7
聽 聽 聽 *:lHeader 聽 聽 聽 聽 聽 聽 := .f.
聽 聽 聽 :lHscroll 聽 聽 聽 聽 聽 聽:= .f.
聽 聽 聽 :lvscroll 聽 聽 聽 聽 聽 聽:= .f.
聽 聽 聽 :l2007 聽 聽 聽 聽 聽 聽 聽 := .F.
聽 聽 聽 :l2015 聽 聽 聽 聽 聽 聽 聽 := .f.
聽 聽 聽 :nStretchCol 聽 聽 聽 聽 := STRETCHCOL_WIDEST
聽 聽 聽 :lAllowRowSizing 聽 聽 := .F.
聽 聽 聽 :lAllowColSwapping 聽 := .F.
聽 聽 聽 :lAllowColHiding 聽 聽 := .F.
聽 聽 聽 :lRecordSelector 聽 聽 := .F.
聽 聽 聽 :nColDividerStyle 聽 聽:= LINESTYLE_LIGHTGRAY
聽 聽 聽 :nRowDividerStyle 聽 聽:= LINESTYLE_LIGHTGRAY
聽 聽 聽* :nRowDividerStyle 聽 聽:= LINESTYLE_NOLINES
聽 聽 聽 :nColDividerStyle 聽 聽:= LINESTYLE_LIGHTGRAY
聽 聽 聽 :CreateFromCode()
聽 聽 聽End
聽 聽 聽return nilI could also use a Tpanel but then it's not good because I would like the child not to go in that part that is the area in the window (owndclient) is determined as it happens with the tbar
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com


