PDA

View Full Version : Interface.openWindow, how do you move the focus to the new window?



peterb
June 22nd, 2023, 08:11
I'm implementing a small change to the Basic Roleplaying ruleset. On double-clicking a skill's name a window will open with the skills description. The same functionality already exists in the C0C7 ruleset. However, when I do this in the BRP ruleset the new window doesn't get focus. In CoC7 and 5E it does. I've been searching the dev webpages but I haven't found any way of giving a window the focus.

Trenloe
June 22nd, 2023, 08:16
Make sure you return true at the end of the onDoubleClick event.

https://fantasygroundsunity.atlassian.net/wiki/spaces/FGCP/pages/996644833/windowcontrol#onDoubleClick

peterb
June 22nd, 2023, 08:28
Aha! Thanks!