New topic: 

ClientLeft ClientTop ClientWidth ClientHeight

<http://forums.realsoftware.com/viewtopic.php?t=46882>

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        csk          Post subject: ClientLeft ClientTop ClientWidth 
ClientHeightPosted: Sat Feb 09, 2013 4:14 am                         
Joined: Thu Aug 23, 2012 9:45 am
Posts: 3                The following is a simple sample in VB6. And I am 
trying to figure how to do this th line of code highlighted in bold in 
RealStudio.

VB6 codes:
Quote:Private Sub Form_Resize()
  TabStrip1.Move 0, 0, Me.ScaleWidth, Me.ScaleHeight

  'This is the line that I am trying to find out how to do in RealStudio
  Picture1.Move TabStrip1.ClientLeft, TabStrip1.ClientTop, 
TabStrip1.ClientWidth, TabStrip1.ClientHeight

End Sub

Picture1 in VB6 would be Canvas1 in RealStudio. I am unable to find ClientLeft, 
ClientTop, ClientWidth and ClientHeight for TabPanel.

ClientLeft, ClientTop, ClientWidth and ClientHeight refer to the space inside 
TabStrip1 (TabPanel). This automatically taken into account the height of the 
tabs (can be different in different versions of Windows and Windows themes). 
Meaning if TabPanel is same size, when tab is higher then client area will be 
smaller and vice versa. The code sample will work in all Windows and all Window 
themes.

Appreciate if someone can point a direction to look. Thanks.   
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to