a dialog into a Tpanel

a dialog into a Tpanel

Postby Silvio » Wed Mar 17, 2010 6:08 pm

Can I insert a dialog into TPanel ?

sample
Function test()
Local oDlg,oFld ,oSplit
DEFINE DIALOG oDlg TITLE "test " SIZE 450,500
oPanel:=Tpanel(0,0,145,100,oDlg )
oPanel:SetColor(0,RGB(143,175,230))

@ 148, 0 FOLDER oFld PROMPT "T&race Operations" ;
OF oDlg PIXEL SIZE 250, 50

@146,0 SPLITTER oSplit ;
HORIZONTAL ;
PREVIOUS CONTROLS oPanel ;
HINDS CONTROLS oFld ;
TOP MARGIN 150 ;
BOTTOM MARGIN 50 ;
SIZE 500, 2 PIXEL ;
OF oDlg ;
_3DLOOK


ACTIVATE DIALOG oDlg center ;
ON PAINT Show_dialog(oPanel)
retu nil

Function Show_dialog()
Local oDlgFtp

DEFINE DIALOG oDlgFtp
TRANSPARENT SIZE oPanel:nwidth,oPanel:nHeight PIXEL OF oPanel ;
STYLE nOr(WS_POPUP,WS_BORDER)


//here all controls

oDlgFtp:bStart := { ||msginfo("test")}

activate dialog oDlgFtp


retu nil
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 90 guests