[Closed] dotNet tabControls align vertical?
With AX tabs there were several properties that I’m not finding equivlents of in the dotNet version. One is to align the tabs verticaly? Any one know how that is done now?
Also some of the other properties don’t appear to work as well. The tabs.SizeMode=tabs.sizeMode.fillToRight property doesn’t appear to be working unless I have .multiLine=true and there are multiple lines. Also the appearence of the buttons doesn’t appear to work either. I can set it t buttons or flatButtons and all I get are different spaces between the tabs.
Can any one confirm this?
try(destroyDialog testR)catch()
rollout testR "Test" width:200
(
dotNetControl tabs "system.windows.forms.tabControl" height:100
fn showProps tab=
(
clearListener()
format "Properties:
"
showProperties tab
format "
Methods:
"
showMethods tab
format "
Events:
"
showEvents tab
)
on testR open do
(
showProps tabs
tabs.appearance=tabs.appearance.flatbuttons
tabs.Multiline=true
tabs.RightToLeftLayout=true
-- tabs.SizeMode=tabs.sizeMode.fixed
tabs.SizeMode=tabs.sizeMode.fillToRight
tabs.tabStop=true
labels=#("Main", "Settings", "User", "Misc", "Extras")
for x in labels do tabs.tabPages.add x
-- SelectedIndex
-- SelectedTab
-- Appearance : <System.Windows.Forms.TabAppearance>
-- .ImageList : <System.Windows.Forms.ImageList>
)
)
createDialog testR
hi paul, at work right now so cant look at it fully but
tabs.alignment = (dotnetclass "system.Windows.Forms.Tabalignment").left
will make them go vertical.
Interesting, that does work but the text does not align with it:S So I can’t read any of the tabs. I might have to set a property in the tab is self for that. Thanks.
hi paul, without checking I cant be sure but you are probably right – see if the individual tab exposes any properties for that.
It still isn’t correct as it is aligned to the left but the tabs are not on their sides they are still up right. So there needs to be some way to rotate them. This isn’t just the text it is the tabs them selves.
Well it looks like a lot of work is needed to make this work correctly. The developers don’t even understand why it is needed by the sounds of it. AX controls did this automaticaly but the current method of drawing them is “As Designed” Sounds like Max.
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=334463&SiteID=1
bummer. Visual Studio obviously does something else as setting this property within a form app rotates them correctly. I will ferret around and see if i can figure anything.
Looks like there are lots of issues. This is a problem for me as I need to port a UI that I did for a client in AX controls to dotNet and all the tabs are vertical. Suggestions welcome at this point. Maybe I will see if I can some how draw them my self.
On this page… http://dotnetrix.co.uk/controls.htm there is a tabControlEx and I can load the assembly but when I showProperties on the control when it is created I don’t get anything at all. I also don’t get anything showing up in a rollout for it.
tabControlEx is .NET 1.1 (so it doesn’t work with .NET in MAXScript). tabControl 2 below is .NET 2.0 but it seems it doesn’t implement complex alignement.
ah I forgot about 1.1 not being supported Yannick, and thanks Pete for having a look at that. What a pain in the ass.