<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[GMan's Mods & Stuff — How to set a minimum window size to a resizeable window?]]></title>
		<link>https://gprogs.com/viewtopic.php?id=439</link>
		<atom:link href="https://gprogs.com/extern.php?action=feed&amp;tid=439&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in How to set a minimum window size to a resizeable window?.]]></description>
		<lastBuildDate>Sun, 05 Jun 2011 13:43:19 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: How to set a minimum window size to a resizeable window?]]></title>
			<link>https://gprogs.com/viewtopic.php?pid=1668#p1668</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (gman)]]></author>
			<pubDate>Sun, 05 Jun 2011 13:43:19 +0000</pubDate>
			<guid>https://gprogs.com/viewtopic.php?pid=1668#p1668</guid>
		</item>
		<item>
			<title><![CDATA[How to set a minimum window size to a resizeable window?]]></title>
			<link>https://gprogs.com/viewtopic.php?pid=1661#p1661</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Lobby)]]></author>
			<pubDate>Sat, 30 Apr 2011 15:31:04 +0000</pubDate>
			<guid>https://gprogs.com/viewtopic.php?pid=1661#p1661</guid>
		</item>
	</channel>
</rss>
