Notifications
Clear all

[Closed] Dotnet combobox cropped on resizing

Hello everyone!
Does anyone know why dotnet combobox is cropped on resizing? This occurs on initial sizing and when resizing the rollout.
Any ideas how to avoid cropping?

rollout comboTest "combo test" width:376 height:40
(
	dotNetControl combo "System.Windows.Forms.ComboBox" pos:[8,8] width:100 height:24

	fn initCombo = combo.DropDownStyle = (dotNetClass "System.Windows.Forms.ComboBoxStyle").DropDownList

	on comboTest open do
	(
		initCombo()
		combo.width = comboTest.width - 16
	)

	on comboTest resized arg do
	(
		combo.width = comboTest.width - 16
	)
)
createDialog comboTest style:#(#style_resizing, #style_titlebar, #style_sysmenu)

2020-05-12_16-17-15

5 Replies

you can set width before set style

1 Reply
(@andrfil)
Joined: 10 months ago

Posts: 0

Thanks, you helped!
But this does not remove cropping when resizing rollout.

it should be all right , show what happened with image or video

resize

I can’t solve it as I can’t reappear on my pc