Notifications
Clear all

[Closed] how to code a vertical tabcontrol like this?

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

Cant help you I’m afraid, I can’t see the picture.

1 Reply
(@fusionyuan)
Joined: 10 months ago

Posts: 0

sorry about that,the img link was updated.
thanks for your help

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
(@fusionyuan)
Joined: 10 months ago

Posts: 0

thanks,the standard TabControl is not my want.does it have another way to make this?

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.