Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to move a dialog box to a specific pixel address

Status
Not open for further replies.

Holly3g

Technical User
Jul 3, 2007
5
0
0
US
I was wondering if anyone knows how to move a dialog box pop-up to a specific pixel location on the screen. Right now I only know how to move the dialog box to one of the four cardinal directions (n,s,e,w), however I don't like how the box then is hugging the edge of the screen. Here's my code:

my @popup_opts = qw/-overanchor s -popanchor s/;
my $db_popup = $mW->Dialog(
@popup_opts,
-title => $selectedTest,
-buttons => [ 'Ok', 'Cancel' ],
-text => "Verify test parameters,\n then press Ok to proceed with tests.");
$db_popup->resizable( 0, 0 );
my $response = $db_popup->Show();


So right now, the overanchor and popanchor are displaying my box at the bottom edge of my main window.

Any suggestions would be appreciated.
Thank you!!
 
is it Tk or Win32 modules that you use to create your windows and dialog boxes?


``The wise man doesn't give the right answers,
he poses the right questions.''
TIMTOWTDI
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top