* Second Screen

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
User avatar
Barnowl
Gold
Posts: 21
Joined: 25 Sep 2014 10:05
Family Historian: V6

Second Screen

Post by Barnowl » 17 Jul 2015 05:26

I am working on a system with two screens
fhMessageBox appears on the same screen as FH - or the plugin editor if debugging.
iup.GetParam always appears on Screen 1
Does anyone know of any way to control this behavior?
Ian Johnson - researching Bain, Batley, Elsden, Ewen and Johnson families and the village of Easton Royal
(i>

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

Re: Second Screen

Post by tatewise » 17 Jul 2015 07:11

fhMessageBox is an FH API function, whereas iup.GetParam is an IUP function, but I know of no way to control their screen position.

Are you asking about positioning those windows in other Plugins, or in your own Plugins?
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
Barnowl
Gold
Posts: 21
Joined: 25 Sep 2014 10:05
Family Historian: V6

Re: Second Screen

Post by Barnowl » 17 Jul 2015 08:40

Thanks Mike.
Its for my own plugin to fix up an import from Family Tree Maker
I suppose if I use iup.Alarm in place of fhMessageBox it will be consistent
Ian Johnson - researching Bain, Batley, Elsden, Ewen and Johnson families and the village of Easton Royal
(i>

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

Re: Second Screen

Post by tatewise » 17 Jul 2015 15:21

Yes, I suspect if you only use preconfigured IUP dialogues then they will be consistent.

A more sophisticated technique that I use for Plugins involves using the lower level IUP features to design the dialogues, then you can choose the co-ordinates of the window, but is probably overkill in your case.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

Post Reply