Notifications
Clear all

[Closed] rollouts and background bitmap

Hi,

I want for my rollout to have some cool look. So I want to have a background bitmap.

This is some test code:

rollout SomeCoolPluginUI "" width: 295 height: 636 (
	subrollout __one "one"
	
	bitmap BG align:#left offset:[-15,-10] fileName:@"someBitmap"
)createDialog SomeCoolPluginUI

rollout __oneA "one A" (
		button __press "press me"
	)

rollout __twoA "two A" (
		button __press "press me"
	)

AddSubRollout SomeCoolPluginUI.__one __oneA
AddSubRollout SomeCoolPluginUI.__one __twoA
SomeCoolPluginUI.__one.height += 596
SomeCoolPluginUI.__one.pos += [0,10]

So the first issue is that on load the bitmap shows on the top. Which it should not since SomeCoolPluginUI is beeing created first.

The second issue is that when you hover a mouse over __one rollout it completely covers the bitmap and this is not what I intend.

I want for my bitmap to cover the background and all the controls to be drawn over it. all the controls like buttons, listboxes…etc work like I want to. But the subrollout is completely different. It creates a new space and then draws over the background.

I tried different bitmaps for each of the rollou, however the drawing is not nice. all the controls draws only when I hover the mouse over.

How can I make this to work I intend?

1 Reply

You’re probably better off doing this with a dotNet Form and dotNet UI controls.