Tuesday, 15 February 2011

Delphi: handling multiple monitors and TForm.Left relative property -



Delphi: handling multiple monitors and TForm.Left relative property -

as show form display lastly time using tform.left property saved on ini file.

i'd add together back upwards multiple monitors, because in case of 2 monitors left can 2500, 2 monitors seen a singel wide monitor.

i'd save ini file monitor number (tform.monitor.monitornum) save relative left. there property tells left according monitor?

e.g. have 2 1024x768 monitors, 1 on right (main) , 1 on left (secondary/extended), if move form on right monitor 2 pixels left left property 1026. i'd "this monitor 2 , left 2".

thanks.

there's no property of tform tells relative position monitor it's on. have subtract: left - monitor.left . in illustration 1026 - 1024.

regardless, don't see advantage approach compared storing/setting left of form (i.e. 1026). can utilize makefullyvisible if concern monitor arrangement may alter between sessions.

delphi delphi-xe2 multiple-monitors

No comments:

Post a Comment