* Mode-less GUI with iuplua in FH?

For users to report plugin bugs and request plugin enhancements; and for authors to test new/new versions of plugins, and to discuss plugin development (in the Programming Technicalities sub-forum). If you want advice on choosing or using a plugin, please ask in General Usage or an appropriate sub-forum.
Post Reply
avatar
stanm
Platinum
Posts: 34
Joined: 02 May 2014 17:46
Family Historian: V7
Location: California, USA

Mode-less GUI with iuplua in FH?

Post by stanm » 30 Jan 2015 18:17

Is it possible to launch a mode-less GUI using the iuplua library functions as a FH plugin? Experiments with iup.GetParam() suggest that it creates modal dialogues only. I'm thinking that using iup.dialog() and iup.show() would create a modeless dialog but it still may not possible to shift focus from it back to FH.

This is a general question - just exploring possible uses for plugins.
Stan Mitchell

User avatar
tatewise
Megastar
Posts: 27087
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Mode-less GUI with iuplua in FH?

Post by tatewise » 30 Jan 2015 18:32

No, I believe it is NOT possible to create a modeless GUI window with the iuplua library that allows focus to be switched back to FH.

It is even quite tricky to create multiple modeless GUI windows with iuplua within one Plugin.

It is probably by design to prevent race hazards and collisions between records being changed via FH GUI and Plugin GUI at the same time.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

avatar
stanm
Platinum
Posts: 34
Joined: 02 May 2014 17:46
Family Historian: V7
Location: California, USA

Re: Mode-less GUI with iuplua in FH?

Post by stanm » 30 Jan 2015 18:44

It is probably by design to prevent race hazards and collisions between records being changed via FH GUI and Plugin GUI at the same time.
Thanks Mike for the reply. I suspected that was the case, since plugins are primarily used for manipulating the underlying dataset.
Stan Mitchell

User avatar
tatewise
Megastar
Posts: 27087
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Mode-less GUI with iuplua in FH?

Post by tatewise » 30 Jan 2015 18:48

On reflection, I suspect it is the Plugin Lua process and FH API that is modal and so any subsidiary iuplua GUI is modal.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

Post Reply