DATA oTop, oLeft, oBottom, oRight, oClient

Post Reply
User avatar
Otto
Posts: 6403
Joined: Fri Oct 07, 2005 7:07 pm
Has thanked: 22 times
Been thanked: 2 times
Contact:

DATA oTop, oLeft, oBottom, oRight, oClient

Post by Otto »

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
Antonio Linares
Site Admin
Posts: 42513
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 73 times
Contact:

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

Post by Antonio Linares »

Dear Otto,

Code: Select all | Expand

#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
Otto
Posts: 6403
Joined: Fri Oct 07, 2005 7:07 pm
Has thanked: 22 times
Been thanked: 2 times
Contact:

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

Post by Otto »

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
********************************************************************
Post Reply