He tomado el ejemplo /samples/testxbrw.prg
- Code: Select all Expand view
STATIC FUNCTION BasicCell( oWnd )
local oChild, oFont, oOut, oSpl, oBrw, oTabs
DEFINE FONT oFont NAME "Ms Sans Serif" SIZE 0,-8
DEFINE WINDOW oChild TITLE "Basic Cell selector browse" MDICHILD OF oWnd
//-----------------------------------------------------------------//
// Definimos un objeto OUTLOOK //
//-----------------------------------------------------------------//
@ -1, -1 OUTLOOK oOut ;
SIZE 125, 100 ; //Ajustamos al tamaño máximo de la ventana, tenemos que pensar que esta la barra de mensajes
COLOR CLR_BLACK , 16436871 ; //CLR_HCYAN 16741960
PIXEL ;
FONT oFont ;
OF oChild
DEFINE GROUP OF OUTLOOK oOut PROMPT "&Informes" //Defino un apartado
//-----------------------------------------------------------------//
// Definimos un objeto BROWSE //
//-----------------------------------------------------------------//
oBrw := TXBrowse():New( oWnd )
oBrw:SetRDD()
oBrw:CreateFromCode()
oBrw:cToolTip = "This is a test"
//oChild:oClient := oBrw //Si lo pongo me machaca la barra outlook
//-----------------------------------------------------------------//
// Definimos un objeto TAB //
//-----------------------------------------------------------------//
@ 1, 0 TABS oTabs PROMPTS "&One", "&Two", "T&hree", "&Four" OF oChild ;
ACTION oChild:Say( 5, 5, oTabs:nOption )
oChild:oBottom = oTabs
//----------------------------------------------------------------------------//
// Sistema de SPLITTER. objeto oSpl //
//----------------------------------------------------------------------------//
@ 1, 124 SPLITTER oSpl ;
VERTICAL ;
PREVIOUS CONTROLS oOut ;
HINDS CONTROLS oBrw , oTabs; //
LEFT MARGIN 100;
RIGHT MARGIN 200 ;
SIZE 4, 100 PIXEL ;
OF oChild ;
_3DLOOK ;
UPDATE
ACTIVATE WINDOW oChild;
ON INIT oBrw:SetFocus();
ON RESIZE oSpl:AdjRight()
RETURN NIL