PDA

View Full Version : Interface OpenWindow using Read Only controls



srbongo
January 23rd, 2026, 13:45
Hi all

I noticed that number controls with the < readonly /> tag set to use Interface.openWindow() opens that window behind existing windows.

If the number control does not have the read only tag, Interface.openWindow() opens it on the top of the stack.

I've seen the behavior before with Calendar Date entries double clicked to open new log windows. Attached too is an extension that adds two controls to charsheet_main in CoreRPG that show what I mean.

I've looked into it on the docs / forum threads, but can't find any mention of if this is intentional - just wondering if there's a workaround or if it's a bug, thanks!

Moon Wizard
January 23rd, 2026, 17:51
Any data entry field makes sure that the window it contains stays on top. For those situations, I suggest disabling the control completely; and either using a separate "details"/"settings"/"edit" button to open the other window, or adding a "base" generic control underneath to capture the click and open the window. We highly suggest using single clicks whenever possible; and a "details" button is more intuitive for users to find.

Regards,
JPG

srbongo
January 24th, 2026, 12:46
Ahh, ok - thanks much for the explination