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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tk- windows resizing looks ugly

Status
Not open for further replies.

MoshiachNow

IS-IT--Management
Joined
Feb 6, 2002
Messages
1,851
Location
IL
HI,

I have the following scrolled text window:

my $mw = new MainWindow;
$mw->configure(-title=>"rehost.exe Ver $VERSION on $computer");
$mw->geometry('+150+10');
my $txt = $mw->Scrolled('Text',-font => 'Arial 8 bold', -background =>'snow3',-relief => 'sunken',
-foreground =>'DeepSkyBlue4', -borderwidth => 2,-setgrid => 'true',
-height =>30, -width=> 80, -scrollbars=> 'e');


the problem is that resizing of this window is weared and does not behave predictable (mouse movements wise).

Appreciate an advise.
Thanks


Long live king Moshiach !
 
You can avoid it. Just putting off window resize.
Use minsize and maxsize....

Code:
e.g 

$mw = MainWindow->new();
$mw->geometry("530x310+300+120");
$mw->minsize(530,310);
$mw->maxsize(530,310);

my $txt = $mw->Scrolled('Text',-font => 'Arial 8 bold', -background =>'snow3',-relief => 'sunken',
                -foreground =>'DeepSkyBlue4', -borderwidth => 2,-setgrid => 'true',
                   -height =>30, -width=> 80, -scrollbars=> 'e');

dmazzini
GSM System and Telecomm Consultant

 
Or just

Code:
$mw->resizable (0,0);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top