Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RePositioning a messagebox
Message
From
21/06/2008 12:13:16
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
21/06/2008 12:00:45
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
MySQL
Miscellaneous
Thread ID:
01325946
Message ID:
01325947
Views:
54
This message has been marked as the solution to the initial question of the thread.
>Hi..
>
>I have 2 monitors and a messagebox is being positioned as always exact on the middle... But, this one isn't good... The message looks
>weird or sometimes some details of the message makes the end user to give wrong answers...
>
>I wondering if Is it a command? parameter? or maybe on the users'32 messagebox a way to reposition that one on the middle of the first monitor...
>
>A problem that sounds like a little detail... but, I believe with the dialy user it will turn upsidedown the purpose of those messages..

I had that problem with positioning of my Alert (download #9445) when I was centering it and the _screen went across both monitors, so I had to add some code to assume 1280 or 1600 if _screen.width>2000.

With messagebox(), you don't have that control, and you depend on the way windows desktop is set up. If it's two desktops stitched together (like I have now - left one horizontal, right one vertical), no problem, but once upon a time it was one big desktop (forcing same resolution on monitors) and maximizing Fox would stretch it across, which meant that my dialog was had developed a split personality - some buttons on the left, some on the right, and an odd one in the middle splayed across the plastic.

If you can't change the way desktops are set up, download my dialog - it's positioned centered on active form or _screen.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform