METHOD Paint() CLASS TTabs

Post Reply
User avatar
Otto
Posts: 7020
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

METHOD Paint() CLASS TTabs

Post by Otto »

Hello friends,
I’m not sure whether this is still inside the TTabs class, but this seems to prevent changing the height.

Code: Select all | Expand

METHOD Paint() CLASS TTabs

   local aInfo := ::DispBegin()
   local n, nLastPrmpt
   local hDC := ::hDC
   local lNeedButtons := .f.
   local hDCMem, hOldBmp
   local nBarwidth

   local nOrient  := ::nOrientation

   ::nOrientation = If( ::oWnd:oTop == Self, OR_TOP, ;
                     If( ::oWnd:oBottom == Self, OR_BOTTOM, ;
                     If( ::oWnd:oLeft == Self, OR_LEFT, ;
                     If( ::oWnd:oRight == Self, OR_RIGHT, ;
                     OR_BOTTOM ))))

   if nOrient != ::nOrientation
      if ::nOrientation > OR_BOTTOM
         ::nWidth  = BARHEIGHT
      else
         ::nHeight = BARHEIGHT
      endif
   endif

Best regards,
Otto

User avatar
Antonio Linares
Site Admin
Posts: 44515
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: METHOD Paint() CLASS TTabs

Post by Antonio Linares »

Dear Otto,

Height is hardcoded as Class TTabs uses bitmaps for drawing, so it requires new bitmaps and also to modify the class code.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply