Stephan Schaefer wrote:
I hope I find some time soon to draft an API for a component that can
be used to handle multi display support for different platforms.
I'm not sure yet if your approch to use an integer to identify a
display is sufficient. If on X it is also a string who identifies a
display we should use a string as a handle. Sure the component must
then also provide a user interface string for each registered monitor.
In a simple case this could just result in strings like "Display X" or
"Primary Display", "Secondary Display" etc.
Would be nice if we can have the same string representation on windows
as in the display settings dialog, f.e. "Sun 22 HDTV on ATI X800 XXL".
This can easily be achieved by the MultiMonitor API on Windows (using
the GetMonitorInfo() call). For the VCL API, however, I think it would
be ok to use an integer based API and additionally provide a mapping
between monitor numbers and strings.
Funny that GetMonitorInfo didn't seem to return nice strings for me, but
anyway... it's also important to discuss how we store the config option.
I would suggest storing the option as a string and then getting the
monitor number using the mapping. That way if the order of monitors
changes you still remember the correct one
Cheers
David
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]