Thanks for the sample. I will take a look at it.
I found a simpler example using a panel object in my old notes.
James
- Code: Select all Expand view
- /*
Purpose : Use panel to attach extra buttonbar, browse, and tabs.
Date : 02/16/01
Author : James Bott
Language : Clipper 5.2e/Fivewin 2.0a
Revised :
Notes :
*/
#include "fivewin.ch"
function main()
local oWnd,oBar1,oPanel,oBar2,oTabs,oBrw
define window oWnd title "Testing Panel Class"
define buttonbar oBar1 of oWnd 3d size 26,28
define button of oBar1
define button of oBar1
define button of oBar1
oPanel:= TPanel():new(,,,,oWnd)
@ 205,300 tabs oTabs prompts "Charges","Contacts","Documents";
of oPanel pixel
oPanel:oBottom:=oTabs
define buttonbar oBar2 of oPanel 3d size 26,28
define button of oBar2
use customer alias "cust"
@ 0,0 XBROWSE oBrw of oPanel ALIAS "CUST"
oBrw:CreateFromCode()
oPanel:oClient:= oBrw
set message of oWnd to "Right-click on the toolbars to move them."
activate window oWnd ;
on resize oPanel:adjclient()
return nil