Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
141 user(s) are online (124 user(s) are browsing Forums)

Members: 2
Guests: 139

amigait, Mr_byte, more...

Support us!

Headlines

 
  Register To Post  

Set minimum size of window?
Home away from home
Home away from home


See User information
In my program i want to set a minimum size of the window.
As i don't want the user to be able to set as small window as on the picture.
Tried to set WA_MinWidth,400,WA_MinHeight,200. But nothing happens,any ideas????
Resized Image

X5000
Go to top
Re: Set minimum size of window?
Just can't stay away
Just can't stay away


See User information
@Antique

That pic is 395x400. Perhaps you just need to set the numbers larger?

Go to top
Re: Set minimum size of window?
Home away from home
Home away from home


See User information
@MickJT

I've tried setting different values,nothing happens. Even tried the WA_MaxWidth. Nothing happens with that aswell... Hmmmm.

X5000
Go to top
Re: Set minimum size of window?
Just can't stay away
Just can't stay away


See User information
@Antique

Ahh. You're gonna have to wait until someone comes on who actually knows some C programming then! I thought i'd just throw my suggestion out there incase it was something extremely simple.

Go to top
Re: Set minimum size of window?
Supreme Council
Supreme Council


See User information
Looks like you need to set CHILD_MinWidth on one of the objects, possibly the root layout...

Simon

Comments made in any post are personal opinion, and are in no-way representative of any commercial entity unless specifically stated as such.
----
http://codebench.co.uk
Go to top
Re: Set minimum size of window?
Home away from home
Home away from home


See User information
@Rigo

Thanks,that did the work.

X5000
Go to top
Re: Set minimum size of window?
Quite a regular
Quite a regular


See User information
@Antique

Don't forget that if someone (a user, for instance) changes the system font type or size, the window minimum size will also change. Don't use a fixed MinWidth/MinHeight, you should calculate a width/height based on the current system font.

cheers
tony
Go to top
Re: Set minimum size of window?
Amigans Defender
Amigans Defender


See User information
@Antique

It is sometimes useful to set a minimum width of your buttons , to prevent layout changes that cause button image and text overlap (like your picture shows). This is done using the BUTTON_DomainString tag. If you specify, for example,

GA_Text, "Button",
BUTTON_DomainString, "Minimum width",

the button will always be wide enough to display the text "Minimum width", using the current preferences font.

The Rear Window blog

AmigaOne X5000 @ 2GHz / 4GB RAM / Radeon RX 560 / ESI Juli@ / AmigaOS 4.1 Final Edition
SAM440ep-flex @ 667MHz / 1GB RAM / Radeon 9250 / AmigaOS 4.1 Final Edition
Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project