Why is this window sized so little ? 
Author Message
 Why is this window sized so little ?

Hi !

Why is this window only shown with a size of  120x220 pixels somewhere
on my screen ?

Here is the code:
$ref_prjform->{'ui'}->{'app_window'} = MainWindow->new();
$ref_prjform->{'ui'}->{'app_window'}->configure(-title => "e:doc
projects", -width=>320, -height=>600);
$ref_prjform->{'ui'}->{'app_window'}->minsize(120,220);
....

I tested around with the "-width" and "-height" options, it always stays
in the same size. (The size mentioned in minsize )
I would understand that if I would have set the maximal size, but not
the minsize.

System: WinNt 4.0, ActivePerl 5 5.004_04, Tk.pm 800.011

Ciao, thomas

----------------------------------------------------
Thomas Schmickl,
Department for zoology
Karl Franzens University Graz, Austria.
----------------------------------------------------
Visit the GPL e:doc-project on http://www.*-*-*.com/

----------------------------------------------------



Mon, 08 Jul 2002 03:00:00 GMT  
 Why is this window sized so little ?

Quote:
>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<


regarding Why is this window sized so little ?:

Quote:
> Hi !
> Why is this window only shown with a size of  120x220 pixels somewhere
> on my screen ?
> Here is the code:
> $ref_prjform->{'ui'}->{'app_window'} = MainWindow->new();
> $ref_prjform->{'ui'}->{'app_window'}->configure(-title => "e:doc
> projects", -width=>320, -height=>600);
> $ref_prjform->{'ui'}->{'app_window'}->minsize(120,220);
> ....
> I tested around with the "-width" and "-height" options, it always
stays
> in the same size. (The size mentioned in minsize )
> I would understand that if I would have set the maximal size, but not
> the minsize.
> System: WinNt 4.0, ActivePerl 5 5.004_04, Tk.pm 800.011
> Ciao, thomas

I may be totally missing the point, but in my opinion, "minsize" means
minimal size, meaning the size the window should AT LEAST be (ex : at
least 120x220). Equally "maxsize" means the size the window can
MAXIMALLY be, so if you want a bigger window, why not simply use
->minsize(400,400)?

Again, I'm nothing of a perl guru, but this seems logical.

Hope this helps.

Theodore Catz



Tue, 09 Jul 2002 03:00:00 GMT  
 Why is this window sized so little ?

Polygone schrieb:

Quote:
> > Here is the code:
> > $ref_prjform->{'ui'}->{'app_window'} = MainWindow->new();
> > $ref_prjform->{'ui'}->{'app_window'}->configure(-title => "e:doc
> > projects", -width=>320, -height=>600);
> > $ref_prjform->{'ui'}->{'app_window'}->minsize(120,220);
> > ....
> I may be totally missing the point, but in my opinion, "minsize" means
> minimal size, meaning the size the window should AT LEAST be (ex : at
> least 120x220). Equally "maxsize" means the size the window can
> MAXIMALLY be, so if you want a bigger window, why not simply use
> ->minsize(400,400)?

I think you will need

 $ref_prjform->{'ui'}->{'app_window'}->geometry('400x420+10+20')

for this.

400 is width
420 is height
10 is x-Offset
20 is y-Offset

Kai



Tue, 09 Jul 2002 03:00:00 GMT  
 Why is this window sized so little ?
Polygone schrieb:

Quote:
> I may be totally missing the point, but in my opinion, "minsize" means
> minimal size, meaning the size the window should AT LEAST be (ex : at
> least 120x220). Equally "maxsize" means the size the window can
> MAXIMALLY be, so if you want a bigger window, why not simply use
> ->minsize(400,400)?

This would create a window that has indeed 400x400 points but the user would
not be able to make it smaller.
So I do not want to state a maxsize, I want a minimal size of 120x220
(because there are to many widgets
in it for a smaller size) and I want to initially start at a size of about
320x600.

Quote:
> Hope this helps.

Sorry, it didnt.

ciao and thanx, thomas.
--
----------------------------------------------------
Thomas Schmickl,
Department for zoology
Karl Franzens University Graz, Austria.
----------------------------------------------------
Visit the GPL e:doc-project on http://members.magnet.at/hfbuch/edoc

----------------------------------------------------



Tue, 09 Jul 2002 03:00:00 GMT  
 Why is this window sized so little ?
Kai Wipplinger schrieb:

Quote:
> I think you will need

>  $ref_prjform->{'ui'}->{'app_window'}->geometry('400x420+10+20')

> for this.

> 400 is width
> 420 is height
> 10 is x-Offset
> 20 is y-Offset

Thanx, that worked,

thomas.

----------------------------------------------------
Thomas Schmickl,
Department for zoology
Karl Franzens University Graz, Austria.
----------------------------------------------------
Visit the GPL e:doc-project on http://members.magnet.at/hfbuch/edoc

----------------------------------------------------



Tue, 09 Jul 2002 03:00:00 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Need a little Help to have a blank space (I am not a programmer)

2. Why won't this little script work?

3. newbie-perl or why am i blind to this simple

4. Why I am glad I know perl

5. Why am I dumping core???

6. ? Now I am reaaly perplexed, Why doesn't (INDEX) work

7. CGI.pm Bug: file upload file size mismatch when file size is close to buffer size

8. Why am I stuck?

9. Why am I running out of memory?

10. Why am I getting an error with @_ ?

11. Why am I getting this regexp error?

12. why am I trashing binary files with this?

 

 
Powered by phpBB® Forum Software