A place where plug-in developers can share their knowledge and experience.
pepak
Posts: 44 Joined: Wed May 03, 2006 5:10 pm
Post
by pepak » Wed Mar 26, 2008 1:17 pm
Is there a way to determine which panel (left or right) is active and which is passive?
DrKnS
Posts: 32 Joined: Thu Feb 23, 2006 6:48 pm
Contact:
Post
by DrKnS » Wed Mar 26, 2008 4:35 pm
Use FCTL_GETPANELINFO command and look at PanelInfo::PanelRect.
pepak
Posts: 44 Joined: Wed May 03, 2006 5:10 pm
Post
by pepak » Wed Mar 26, 2008 4:39 pm
Hmm, that doesn't sound too reliable. I'll rather try to find a way to avoid needing this information.
t-rex
Admin
Posts: 417 Joined: Sun Mar 20, 2005 6:10 pm
Location: Ashdod
Contact:
Post
by t-rex » Wed Mar 26, 2008 5:11 pm
You shouldn't need to know which panel is which in a plugin.
pepak
Posts: 44 Joined: Wed May 03, 2006 5:10 pm
Post
by pepak » Wed Mar 26, 2008 5:16 pm
Not for the plugin itself, but it is important for its user.
t-rex
Admin
Posts: 417 Joined: Sun Mar 20, 2005 6:10 pm
Location: Ashdod
Contact:
Post
by t-rex » Wed Mar 26, 2008 8:02 pm
Can you give more information?
pepak
Posts: 44 Joined: Wed May 03, 2006 5:10 pm
Post
by pepak » Wed Mar 26, 2008 8:16 pm
Sure. I am thinking about writing a Synchronize Folders plugin and it would be rather useful to display that "this file goes from the left panel to the right".
t-rex
Admin
Posts: 417 Joined: Sun Mar 20, 2005 6:10 pm
Location: Ashdod
Contact:
Post
by t-rex » Wed Mar 26, 2008 8:26 pm
Hm, quite logical. I think we can manage to add a PFLAGS_PANELLEFT and PFLAGS_PANELRIGHT to PanelInfo.Flags. Please open a ticket for this in Mantis.
nightroman
Posts: 15 Joined: Wed Mar 14, 2007 3:23 am
Post
by nightroman » Mon Mar 31, 2008 1:48 pm
Is not it enough to introduce only one flag, say, PFLAGS_PANELLEFT? If it is set then the panel is left, otherwise it is right...
Of course, if both flags PFLAGS_PANELRIGHT and PFLAGS_PANELLEFT exist and both are not set it gives us kind of 3rd state possible ("unknown" or something). But do we really need this?
pepak
Posts: 44 Joined: Wed May 03, 2006 5:10 pm
Post
by pepak » Tue Apr 01, 2008 4:47 am
Cool, thanks.