check this snippet:
try(destroydialog rsub) catch()
rollout sub "RO:3954402D" width:180
(
imgtag img_bt "" width:160 height:400 bitmap:(bitmap 1 1 color:orange) align:#center
on img_bt lbuttondown pos flags do
(
format "press .. \t%\n" pos
)
on img_bt lbuttonup pos flags do
(
format "release .. \t%\n" pos
)
on sub open do
(
)
)
rollout rsub "RO:3954402E" width:191
(
subrollout rol_sb width:180 height:200 pos:[4,10]
on rsub open do
(
AddSubRollout rol_sb sub
)
)
createdialog rsub
- run
- scroll orange subrollout down
- click main rollout title bar
…
First, you will see that imgtag catches mouse click of its “invisible” part (!!!)
Second, the main rollout loses focus and can’t be moved by dragging titlebar
WTF?
I met this for the first time and honestly can’t find any pure MXS solutions against this behavior. Disabling imgtag is not a solution. I need to keep all controls alive.
Any thoughts, ideas…?