Forum Discussion

dbulli's avatar
dbulli
Visitor
14 years ago

roMessageDialog above roScreen not clearing or nto showing

I was trying to use roScreen instead of roImageCanvas to see if I see any improvements in rendering. There is a point where i put i put a dialog above. The dialog won't draw. If I put an toImageCanvas in between, then it won't clear.

		
screen = CreateObject("roScreen") 'instructions
screen.Clear(&hf6f4f5FF)
screen.DrawObject(m.positions.logo.x,m.positions.logo.y, "blah.png")

d = CreateObject("roMessageDialog")
dPort = CreateObject("roMessagePort")
d.SetMessagePort(dPort)
d.SetText("message")
d.AddButton(1, "option 1")
d.AddButton(2, "option 2..")
d.EnableOverlay(true)
d.Show()
msg = Wait(0, dPort)

d.Close()
d = invalid

1 Reply

  • Putting an image canvas in between is the right approach. Be sure you're closing both the dialog and the image canvas. You will probably also need to re-draw your roScreen after closing them. You could also try using a double-buffered roScreen and see if that makes any difference.