Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Sun Nov 19, 2017 2:40 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: ClientLeft ClientTop ClientWidth ClientHeight
PostPosted: Sat Feb 09, 2013 4:14 am 
Offline

Joined: Thu Aug 23, 2012 9:45 am
Posts: 5
Location: 103.808 , 1.288
The following is a simple sample in VB6. And I am trying to figure how to do this line of code in RealStudio:

Picture1.Move TabStrip1.ClientLeft, TabStrip1.ClientTop, TabStrip1.ClientWidth, TabStrip1.ClientHeight

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
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group