Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Using Measurement studio with Tabs

Whenever I place a measurement studio control on top of a tab control it goes underneth the tab control and can no longer be seen.  In the code I can tell it to come to the top using 'BringWindowToTop" and it is visable but while in the editor it is not, making it hard to place controls properly.  Is there a way to force the control to the top in the editor and if so how?
0 Kudos
Message 1 of 4
(7,157 Views)
Hi Born2Burn,

The way controls on a form are displayed is determined by their z-order. The control's z-order is determined by its position in the form's Controls collection, with the first control in the collection being at the front (top layer) and the last at the back.  You will need to change control's z-order in order to make things look right.

There are a few options to fix this at design time:
  • Right-click on the Measurement Studio Control and select Bring to Front. This will change it's position in the form's Controls collection to 0, making it the top of z-order. Similarly, you could right-click on the Tab control and choose Send to Back.
  • Select the Measurement Studio Control and click Format » Order » Bring to Front from Visual Studio's menu. There are also two icons on the Layout toolbar that will allow you to either "Send to Front" or "Send to Back".

Additionally, Visual Studio 2005 also includes a very useful tool window called Document Outline.  You can access this from View » Other Windows » Document Outline, or by using the keyboard shortcut: Ctrl+Alt+T.  The Document Outline will allow you to rearrange controls by simply draging and droping them into their correct z-order

0 Kudos
Message 2 of 4
(7,132 Views)
Interesting thing here.  When I right click on the control "Send to Back" or "Send to Front" are not listed as options, nor do they appear in the format menu.  When I customize the menu and add the "Send to Back" and "Send to Front" controls to it they are grayed out when any control is selected, so I still can't seem to be able to set the Z-Order.  Also when trying to use the document outline and no matter what is selected or not selected all it says is "There are no items to show for the seleted document".  Do you have any other ideas or suggestions for this problem
0 Kudos
Message 3 of 4
(7,120 Views)
Hi Born2Burn,

Does this occur for all controls, even non-Measurement Studio controls?  For example, can you adjust the z-order of the normal button control?
0 Kudos
Message 4 of 4
(7,099 Views)