DATA oTop, oLeft, oBottom, oRight, oClient

DATA oTop, oLeft, oBottom, oRight, oClient

Postby Otto » Sun May 14, 2023 7: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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6064
Joined: Fri Oct 07, 2005 7:07 pm

Re: DATA oTop, oLeft, oBottom, oRight, oClient

Postby Antonio Linares » Sun May 14, 2023 7:34 am

Dear Otto,

Code: Select all  Expand view
#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
User avatar
Antonio Linares
Site Admin
 
Posts: 41404
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: DATA oTop, oLeft, oBottom, oRight, oClient

Postby Otto » Sun May 14, 2023 8:03 am

Dear Antonio,
thank you and have a nice Sunday.
Best regards,
Otto

Image
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6064
Joined: Fri Oct 07, 2005 7:07 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 45 guests