<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[GMan's Mods & Stuff — How to set a minimum window size to a resizeable window?]]></title>
	<link rel="self" href="https://gprogs.com/extern.php?action=feed&amp;tid=439&amp;type=atom" />
	<updated>2011-06-05T13:43:19Z</updated>
	<generator>PunBB</generator>
	<id>https://gprogs.com/viewtopic.php?id=439</id>
		<entry>
			<title type="html"><![CDATA[Re: How to set a minimum window size to a resizeable window?]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=1668#p1668" />
			<content type="html"><![CDATA[<p>Hi Lobby.&nbsp; Ive taken a look into the code to see if there was a way to accomplish this.&nbsp; other than rebuilding the device (which would cause you to rebuild the scene) i could not find a way <img src="https://gprogs.com/img/smilies/sad.png" width="15" height="15" alt="sad" /></p>]]></content>
			<author>
				<name><![CDATA[gman]]></name>
				<uri>https://gprogs.com/profile.php?id=2</uri>
			</author>
			<updated>2011-06-05T13:43:19Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=1668#p1668</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[How to set a minimum window size to a resizeable window?]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=1661#p1661" />
			<content type="html"><![CDATA[<p>Hello, like the title of this thread already said I want to set the minimal allowed size of a resizeable window.</p><p>Here some little code to show the context in which I want the window minimum size:<br /></p><div class="codebox"><pre><code>SuperStrict

Import irrlicht.core

Local xmax:Int = 800
Local ymax:Int = 600

Local device:IrrlichtDevice = IrrlichtDevice.Create(EDT_DIRECT3D9, _DIMENSION2DI(xmax, ymax), 32, False, False, True)
Local Driver:IVideoDriver = device.getVideoDriver()
Local scmgr:ISceneManager = device.getSceneManager()

device.setResizable(True)

Local cam:ICameraSceneNode = scmgr.addCameraSceneNode()
cam.SetPosition(_VECTOR3DF(0, 0, -20))
Local cube:IMeshSceneNode = scmgr.addCubeSceneNode()
Local LIGHT:ILightSceneNode = scmgr.addLightSceneNode(, _VECTOR3DF(-5, 10, -5))

scmgr.setAmbientLight(_SCOLORF(0.1, 0.1, 0.1))
scmgr.setActiveCamera(cam)

While(device.run())
    Local rot:Vector3df = cube.GetRotation()
    rot.PlusEq(_VECTOR3DF(1, 1, 1))
    cube.SetRotation(rot)
    
    xmax = Driver.getScreenSize().getWidth()
    ymax = Driver.getScreenSize().getHeight()
    cam.setAspectRatio(xmax / Float(ymax))
    
    Driver.BeginScene()
    scmgr.drawAll()
    Driver.EndScene()
    device.setWindowCaption(Driver.getFPS() + &quot; FPS, close me by pressing &lt;Alt&gt;+&lt;F4&gt;&quot;)
Wend

device.drop()</code></pre></div><p>For the program I&#039;m writing it&#039;s important that the window can&#039;t be smaller than 400*300 or sth. like this. I didn&#039;t find anything in the internet concerning this topic so I&#039;m asking here for help.</p>]]></content>
			<author>
				<name><![CDATA[Lobby]]></name>
				<uri>https://gprogs.com/profile.php?id=298</uri>
			</author>
			<updated>2011-04-30T15:31:04Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=1661#p1661</id>
		</entry>
</feed>
