Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Dialog box and modality.
Sounds like a research paper.

Apparently there is no way, at least with my documentation, of making a
dialog box appear in a specific place.  It would seem that they alway
center themselves on the screen.

So, making my own dialog box out of a standard frame I come up to the
problem of how to make the widget modal.  In fact there is not even a
modal listing in the indexes of my books.  Is the modal state called
something else in TK?

Anybody know?

Thanks
Shive

Report this thread to moderator Post Follow-up to this message
Old Post
Shive
08-23-04 08:59 PM


Re: Dialog box and modality.
Shive wrote:
> So, making my own dialog box out of a standard frame I come up to the
> problem of how to make the widget modal.  In fact there is not even a
> modal listing in the indexes of my books.  Is the modal state called
> something else in TK?

perldoc Tk::grab

--Ala

Report this thread to moderator Post Follow-up to this message
Old Post
Ala Qumsieh
08-23-04 08:59 PM


Re: Dialog box and modality.
In article <pan.2004.08.23.17.13.38.984536@none.com>, shive@none.com says...
> Sounds like a research paper.
>
> Apparently there is no way, at least with my documentation, of making a
> dialog box appear in a specific place.  It would seem that they alway
> center themselves on the screen.

See if this works.  If not, can you upgrade?  Tk::DialogBox and
Tk::Dialog were improved at some point to accept Tk::Popup options.
See Tk::Popup pod if you can.

use Tk;
use Tk::Dialog;

my $mw = tkinit;
$mw->Dialog(-popanchor => 'nw', -overanchor => 'nw')->Show;
MainLoop;

--
Go to http://MarcDashevsky.com to send me e-mail.

Report this thread to moderator Post Follow-up to this message
Old Post
Marc Dashevsky
08-23-04 08:59 PM


Re: Dialog box and modality.
Thanks to both of you.  Those posts got me back in the game.

The *anchor options are interesting, even if I don't quite understand the
way they are working at the moment.

And I never even heard of "grab" but at least my book has.
Interesting...

Shive  (on a compadres machine)




Report this thread to moderator Post Follow-up to this message
Old Post
krf
08-25-04 04:04 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PerlTk archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 04:46 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.