[Q] Detecting Display sizes, etc..

Brian Brown rbb at techgame.net
Mon Mar 24 18:07:57 UTC 2003


Greetings!

	Given the scenario of distributing an application by giving someone a 
platform appropriate VM, an image file and a changes file, is there a way to 
detect the resolution of the hardware the VM is running on and resize the 
window appropriately?

I want to use this information to dynamically populate the World with widgets 
that I create, but need to know how many will fit in the given size. I'm 
using a table layout inside a rectangle morph now, but I'm currently 
hardcoding the size of the RectangleMorph and would want to determine that 
size at runtime.

Alternatively, could I just add my objects to the World paste-up morph by 
having a TableLayout be embedded in the PasteUpMorph?

Is this making any sense?

thanks!

Brian


P.S. Can I automatically "Escape Browser" upon startup?




More information about the Squeak-dev mailing list