Error with TexplorerBar

Error with TexplorerBar

Postby Silvio » Wed Nov 17, 2010 7:54 am

I made this on code

nMod :=1

ACTIVATE DIALOG oApp():oDlg NOWAIT;
ON PAINT (oApp():oSplitV:AdjClient() ,oApp():oSplitH:AdjRight());
ON INIT ( BuildPanel(nMod) ,;
.....





Function BuildPanel(nMod)


oApp():oTaskPanel := TExplorerBar():New( 0, 0,oApp():oPanelLeft:nwidth-5, oApp():oPanelLeft:nbottom, oApp():oPanelLeft )
oApp():oCont = oApp():oTaskPanel:AddPanel( "Customer", "c:\work\fwh\bitmaps\32x32\people.bmp",1 )
oApp():oCont:lSpecial = .T.

oApp():oCont2 = oApp():oTaskPanel:AddPanel(oApp():oDlg:cTitle,"c:\work\fwh\bitmaps\32x32\people.bmp" )
oApp():oCont2:AddLink( "Nuovo utente", Sol_Datos(.t.), "c:\work\fwh\bitmaps\16x16\additem.bmp" )





Before to create the dialog it run Sol_Datos(.t.) Function ....WHY ?
Best Regards, Saludos

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

Re: Error with TexplorerBar

Postby Daniel Garcia-Gil » Wed Nov 17, 2010 10:10 am

Silvio

from class
Code: Select all  Expand view
METHOD AddLink( cPrompt, bAction, cBitmap )


second parameter should be a codeblock you're using a function
User avatar
Daniel Garcia-Gil
 
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 pm
Location: Isla de Margarita

Re: Error with TexplorerBar

Postby Silvio » Wed Nov 17, 2010 10:18 am

oopps
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: nageswaragunupudi, RSalazarU and 97 guests