Return the coordinates of the internal area (display area) of the TabStrip control. Read-only
object.ClientHeight
object.ClientWidth
object.ClientLeft
object.ClientTop
object:TabStrip Ocx
At run time, the client-coordinate properties - ClientLeft, ClientTop, ClientHeight, and ClientWidth - automatically store the coordinates of the TabStrip control's internal area, which is shared by all Tab objects in the control. So that the controls associated with a specific Tab appear when that Tab object is selected, place the Tab object's controls inside a container, such as a Frame control, whose size and position match the client-coordinate properties. To associate a container (and its controls) with a Tab object, create a control array, such as a Frame control array.
All client-coordinate properties use the scale mode of the parent form. To place a Frame control so it fits perfectly in the internal area, use the following code:
Ocx TabStrip tbs1 = "Tab1", 10, 10, 500, 300
Ocx Frame fr1
fr1.Left = tbs1.ClientLeft
fr1.Top = tbs1.ClientTop
fr1.Width = tbs1.ClientWidth
fr1.Height = tbs1.ClientHeight
tbs1.Add , , "Frame" , , fr1
tbs1.Add , , "No Frame"
Do : Sleep : Until Me Is Nothing
GFA-BASIC 32 automatically takes care of activating the container after it is associated with the TabStrip Ocx.
{Created by Sjouke Hamstra; Last updated: 25/09/2014 by James Gaite}