Real Software Forums
http://forums.realsoftware.com/

ClientLeft ClientTop ClientWidth ClientHeight
http://forums.realsoftware.com/viewtopic.php?f=13&t=46882
Page 1 of 1

Author:  csk [ Sat Feb 09, 2013 4:14 am ]
Post subject:  ClientLeft ClientTop ClientWidth ClientHeight

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.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/