MarkRM
November 25th, 1999, 12:30 PM
I am stuck with trying to place a frame containing status information so that it is always visible on every tab of an SSTab Tabbed Dialog Control.
I need to display a frame containing live status information in the same position and with the same content on each tab, without having to create an array of identical frames which would all need to be updated every time the status changes.
I have tried to do this using ZOrder as shown below, without any luck.
private Sub tabPte_Click(PreviousTab as Integer)
' Bring the status info to the front of everything, except on Options tab
If (tabPte.Tab <> (tabPte.Tabs - 1)) then
fraTrafficAlarms.ZOrder 0
End If
End Sub
I have also considered moving the control from one tab to the other at runtime, but can't work out how to tell it which tab to show on. The code below (taken from MSDN Container Property example) gave me this idea, but I can't see how to apply it to my code.
private Sub Form_Click()
static intX as Integer
Select Case intX
Case 0
set Command1.Container = Picture1
Command1.Top= 0
Command1.Left= 0
Case 1
set Command1.Container = Frame1
Command1.Top= 0
Command1.Left= 0
Case 2
set Command1.Container = Form1
Command1.Top= 0
Command1.Left= 0
End Select
intX = intX + 1
End Sub
The tabs take up my whole application area, a bit like the Win95/98 Display Properties dialog, but without the OK/Cancel buttons below the tabs.
Thanks in advance to anyone who can help :-)
Mark
I need to display a frame containing live status information in the same position and with the same content on each tab, without having to create an array of identical frames which would all need to be updated every time the status changes.
I have tried to do this using ZOrder as shown below, without any luck.
private Sub tabPte_Click(PreviousTab as Integer)
' Bring the status info to the front of everything, except on Options tab
If (tabPte.Tab <> (tabPte.Tabs - 1)) then
fraTrafficAlarms.ZOrder 0
End If
End Sub
I have also considered moving the control from one tab to the other at runtime, but can't work out how to tell it which tab to show on. The code below (taken from MSDN Container Property example) gave me this idea, but I can't see how to apply it to my code.
private Sub Form_Click()
static intX as Integer
Select Case intX
Case 0
set Command1.Container = Picture1
Command1.Top= 0
Command1.Left= 0
Case 1
set Command1.Container = Frame1
Command1.Top= 0
Command1.Left= 0
Case 2
set Command1.Container = Form1
Command1.Top= 0
Command1.Left= 0
End Select
intX = intX + 1
End Sub
The tabs take up my whole application area, a bit like the Win95/98 Display Properties dialog, but without the OK/Cancel buttons below the tabs.
Thanks in advance to anyone who can help :-)
Mark