Notifications
Clear all
[Closed] how to code a vertical tabcontrol like this?
Aug 23, 2015 6:34 am
hello everyone,
I need a vertical tabcontrol like the right one(i do it in photoshop :shrug: ),
I don’t know how to code, can anyone help me?
thank you!
the left one:
try(destroyDialog TabTest)catch()
rollout TabTest "Need your help,thanks!" width:500 height:100
(
dotNetControl tabs "system.windows.forms.tabControl" pos:[5,5] height:26
fn initTabs tab labels:#() =
(
tab.tabPages.clear()
tab.sizeMode = auto
tab.itemSize = dotnetObject "System.Drawing.Size" 60 22
for x in labels do tab.tabPages.add x
)
on TabTest open do
(
initTabs tabs labels:#("Basic", "deform", "Duplicate", "Mesh Edit", "Vertex", "Edge", "Polygon", "UV", "Fusion")
)
)
createDialog TabTest
6 Replies
1 Reply
Aug 23, 2015 6:34 am
it should be as simple as:
tabs.Alignment = tabs.Alignment.Right
but as i remember there were some issues with standard System.Windows.Forms.TabControl
1 Reply
Aug 23, 2015 6:34 am
take a look at this site…
http://www.codeproject.com/Articles/91387/Painting-Your-Own-Tabs-Second-Edition
Aug 23, 2015 6:34 am
thanks, k4noe
I read something like that before.but it’s more useful what you share.
but I don’t know how to code Custom painting in dotnet and mxs now.