FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour DATA oTop, oLeft, oBottom, oRight, oClient
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
DATA oTop, oLeft, oBottom, oRight, oClient
Posted: Sun May 14, 2023 07:14 AM

Hello friends,

is there a sample where all the DATA oTop, oLeft, oBottom, oRight, oClient is in use?

Is it possible to use all at the same time?

Best regards,

Otto

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: DATA oTop, oLeft, oBottom, oRight, oClient
Posted: Sun May 14, 2023 07:34 AM
Dear Otto,
Code (fw): Select all Collapse
#include "FiveWin.ch"

function Main()

   local oWnd

   DEFINE WINDOW oWnd 

   oWnd:oTop = TPanel():New( 0, 0, 30, oWnd:nWidth, oWnd )
   oWnd:oTop:SetColor( "N/G" )
   oWnd:oRight = TPanel():New( 0, 0, oWnd:nHeight, 30, oWnd )
   oWnd:oRight:SetColor( "N/R" )
   oWnd:oBottom = TPanel():New( oWnd:nHeight - 30, 0, oWnd:nHeight, oWnd:nWidth, oWnd )
   oWnd:oBottom:SetColor( "N/B" )
   oWnd:oLeft = TPanel():New( 0, 0, oWnd:nHeight, 30, oWnd )
   oWnd:oLeft:SetColor( "N/BG" )
   oWnd:oClient = TPanel():New( 30, 30, oWnd:nHeight - 30, oWnd:nWidth - 30, oWnd )
   oWnd:oClient:SetColor( "N/GR" )

   ACTIVATE WINDOW oWnd CENTERED

return nil
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
Re: DATA oTop, oLeft, oBottom, oRight, oClient
Posted: Sun May 14, 2023 08:03 AM
Dear Antonio,
thank you and have a nice Sunday.
Best regards,
Otto

Continue the discussion