<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>AROS-Exec :: Forum</title>
    <link>http://aros-exec.org/</link>
    <description>No schedule &#039;n&#039; rocking! :: XOOPS Community Bulletin Board</description>
    <lastBuildDate>Wed, 22 May 2013 03:08:12 +1700</lastBuildDate>
    <docs>http://backend.userland.com/rss/</docs>
    <generator>CBB 3.08</generator>
    <category>Forum</category>
    <managingEditor>webmaster@aros-exec.org</managingEditor>
    <webMaster>webmaster@aros-exec.org</webMaster>
    <language>en</language>
        <image>
      <title>AROS-Exec :: Forum</title>
      <url>http://aros-exec.org/modules/newbb/images/xoopsbb_slogo.png</url>
      <link>http://aros-exec.org/</link>
      <width>92</width>
      <height>52</height>
    </image>
            <item>
      <title>Re: coding strategy for big gfx memory usage [by PortablE]</title>
      <link>http://aros-exec.org/modules/newbb/viewtopic.php?topic_id=8108&amp;forum=28</link>
      <description>PortablE:: coding strategy for big gfx memory usage&lt;br /&gt;
Mr Darek reported that non-drawable bitmaps still appeared to be using video memory.  I have now found &amp; fixed the problem, and it should be included with the next beta release of PortablE.</description>
      <pubDate>Mon, 06 May 2013 08:49:50 +1700</pubDate>
      <guid>http://aros-exec.org/modules/newbb/viewtopic.php?topic_id=8108&amp;forum=28</guid>
    </item>
        <item>
      <title>HOW TO GET A QUICK REPLY to your question [by PortablE]</title>
      <link>http://aros-exec.org/modules/newbb/viewtopic.php?topic_id=8184&amp;forum=28</link>
      <description>PortablE:: HOW TO GET A QUICK REPLY to your question&lt;br /&gt;
If you are asking a question by creating a new thread, I may not notice your post immediately.  To ensure that I do notice it, please ALSO post a reply on this thread - then I will get an email notification (and so check this forum ASAP).&lt;br /&gt;&lt;br /&gt;But please ONLY do this for a NEW thread (i.e. the first post), because once I have replied to that new thread, I will get email notifications of any further replies anyway (without you having to post to this thread too).</description>
      <pubDate>Thu, 11 Apr 2013 18:33:09 +1700</pubDate>
      <guid>http://aros-exec.org/modules/newbb/viewtopic.php?topic_id=8184&amp;forum=28</guid>
    </item>
        <item>
      <title>Re: my beginners program using classes [by PortablE]</title>
      <link>http://aros-exec.org/modules/newbb/viewtopic.php?topic_id=6736&amp;forum=28</link>
      <description>PortablE:: my beginners program using classes&lt;br /&gt;
Quote:&lt;div class=&quot;xoopsQuote&quot;&gt;&lt;blockquote&gt;but compilator say: strangefigures = unknown basic type&lt;br /&gt;how modify program to create global object visible in other procedures.&lt;/blockquote&gt;&lt;/div&gt;&lt;br /&gt;Make sure that you declare your &amp;quot;strangefigures&amp;quot; class before you use it with a global variable.  In other words:&lt;br /&gt;&lt;br /&gt;Quote:&lt;div class=&quot;xoopsQuote&quot;&gt;&lt;blockquote&gt;CLASS strangefigures&lt;br /&gt;...&lt;br /&gt;ENDCLASS&lt;br /&gt;...&lt;br /&gt;DEF mycircle:PTR TO strangefigures&lt;/blockquote&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Does that help?</description>
      <pubDate>Sun, 24 Mar 2013 23:03:36 +1700</pubDate>
      <guid>http://aros-exec.org/modules/newbb/viewtopic.php?topic_id=6736&amp;forum=28</guid>
    </item>
        <item>
      <title>Re: how opening fullscreen or window mode in one application [by PortablE]</title>
      <link>http://aros-exec.org/modules/newbb/viewtopic.php?topic_id=8087&amp;forum=28</link>
      <description>PortablE:: how opening fullscreen or window mode in one application&lt;br /&gt;
@mrdarek&lt;br /&gt;PortablE&#039;s modules were not really designed for switching between Full Screen &amp; Windowed modes, but it is possible with a little difficulty.  I could not put the &quot;secret code&quot; where you wanted, but my example is hopefully not too hard to follow.  Basically you have to close your program &amp; then restart it, to change between Full Screen &amp; Windowed modes.&lt;br /&gt;Quote:&lt;div class=&quot;xoopsQuote&quot;&gt;&lt;blockquote&gt;&lt;pre&gt;MODULE &#039;std/cGfxSimple&#039;&lt;br /&gt;MODULE &#039;std/cGui&#039;&lt;br /&gt;MODULE &#039;std/cAppSimple&#039;&lt;br /&gt;&lt;br /&gt;PROC main()&lt;br /&gt;	DEF menuglowne:PTR TO cGuiWindow&lt;br /&gt;	DEF guiPages:PTR TO cGuiGroupPage&lt;br /&gt;	DEF item:PTR TO cGuiItem&lt;br /&gt;	&lt;br /&gt;	DEF newstartmenu:PTR TO cGuiItem&lt;br /&gt;	DEF guiWindow:PTR TO cGuiButton&lt;br /&gt;	DEF guiFull:PTR TO cGuiButton&lt;br /&gt;	&lt;br /&gt;	DEF quit:BOOL&lt;br /&gt;	DEF restart:BOOL, fullScreen:BOOL, app:PTR TO cApp&lt;br /&gt;	&lt;br /&gt;	fullScreen := FALSE		-&gt;initial mode&lt;br /&gt;	&lt;br /&gt;	restart := FALSE&lt;br /&gt;	REPEAT&lt;br /&gt;		-&gt;specify whether your app is Full Screen or not&lt;br /&gt;		-&gt;this must be at the start of your program, otherwise you may easily cause a crash&lt;br /&gt;		IF restart THEN DestroyApp()	-&gt;BEWARE: This destroys any windows/bitmaps/sounds/etc that still exist&lt;br /&gt;		app := CreateApp(&#039;simplestart&#039;)&lt;br /&gt;		IF fullScreen THEN app.initFullWindow()&lt;br /&gt;		app.build()&lt;br /&gt;		&lt;br /&gt;		-&gt;do Graphics stuff (but only if we were restarted - due to a button being pressed)&lt;br /&gt;		IF restart&lt;br /&gt;			gfx := CreateGfxWindow(NILA)&lt;br /&gt;			IF fullScreen THEN OpenFull() ELSE OpenWindow(800,600)&lt;br /&gt;			&lt;br /&gt;			mainutility()&lt;br /&gt;			&lt;br /&gt;			CloseWindow()&lt;br /&gt;			gfx := DestroyGfxWindow(gfx)&lt;br /&gt;		ENDIF&lt;br /&gt;		&lt;br /&gt;		-&gt;open GUI window&lt;br /&gt;		menuglowne := CreateGuiWindow(&#039;simplestart&#039;)&lt;br /&gt;		guiPages := menuglowne.beginGroupPage()&lt;br /&gt;		&lt;br /&gt;			newstartmenu := menuglowne.beginGroupVertical()&lt;br /&gt;				menuglowne.addLabel(&#039;Simple start&#039;).initAlignCenter()	-&gt;# a better way to center text! #&lt;br /&gt;				menuglowne.addLabel(&#039;                                         &#039;)&lt;br /&gt;				guiWindow := menuglowne.addButton(&#039;window mode&#039;)&lt;br /&gt;				menuglowne.addLabel(&#039; &#039;)&lt;br /&gt;				guiFull := menuglowne.addButton(&#039;fullscreen mode&#039;)&lt;br /&gt;				menuglowne.addLabel(&#039; &#039;)&lt;br /&gt;			menuglowne.endGroup() -&gt; newstartmenu&lt;br /&gt;		&lt;br /&gt;		menuglowne.endGroup() -&gt;for Pages&lt;br /&gt;		&lt;br /&gt;		menuglowne.build(FALSE) -&gt; show it now&lt;br /&gt;		&lt;br /&gt;		-&gt;GUI event loop&lt;br /&gt;		restart := FALSE&lt;br /&gt;		quit := FALSE&lt;br /&gt;		REPEAT&lt;br /&gt;			item := WaitForChangedGuiItem()&lt;br /&gt;			SELECT item&lt;br /&gt;			CASE NIL&lt;br /&gt;				-&gt;(a non-item event occured) so check if user tried to close the window&lt;br /&gt;				IF menuglowne.getCloseRequest()&lt;br /&gt;					IF (guiPages.getState()=0)&lt;br /&gt;						menuglowne.close()&lt;br /&gt;						quit := TRUE&lt;br /&gt;					ELSE&lt;br /&gt;						guiPages.setStateItem(newstartmenu) &lt;br /&gt;					ENDIF&lt;br /&gt;				ENDIF&lt;br /&gt;				&lt;br /&gt;			CASE guiWindow&lt;br /&gt;				menuglowne.close()&lt;br /&gt;				restart    := TRUE&lt;br /&gt;				fullScreen := FALSE&lt;br /&gt;				&lt;br /&gt;			CASE guiFull&lt;br /&gt;				menuglowne.close()&lt;br /&gt;				restart    := TRUE&lt;br /&gt;				fullScreen := TRUE&lt;br /&gt;			ENDSELECT&lt;br /&gt;		UNTIL quit OR restart&lt;br /&gt;		&lt;br /&gt;		-&gt;this is optional, since DestroyApp() will destroy our window anyway...&lt;br /&gt;		-&gt;...but it is a good idea, as it makes clearer what is happening&lt;br /&gt;		menuglowne := DestroyGuiWindow(menuglowne)&lt;br /&gt;	UNTIL quit&lt;br /&gt;FINALLY&lt;br /&gt;	PrintException()&lt;br /&gt;ENDPROC&lt;br /&gt;&lt;br /&gt;PROC mainutility()&lt;br /&gt;	Pause(3*10)&lt;br /&gt;ENDPROC&lt;/pre&gt;&lt;/blockquote&gt;&lt;/div&gt;</description>
      <pubDate>Sun, 10 Mar 2013 21:02:21 +1700</pubDate>
      <guid>http://aros-exec.org/modules/newbb/viewtopic.php?topic_id=8087&amp;forum=28</guid>
    </item>
        <item>
      <title>Rounding floating-point numbers (and printing them) [by PortablE]</title>
      <link>http://aros-exec.org/modules/newbb/viewtopic.php?topic_id=8074&amp;forum=28</link>
      <description>PortablE:: Rounding floating-point numbers (and printing them)&lt;br /&gt;
&lt;strong&gt;MrDarek&lt;/strong&gt; asked this: Quote:&lt;div class=&quot;xoopsQuote&quot;&gt;&lt;blockquote&gt;I need round function for float values. In documentations I found Ffloor and Fceil function - they are great and very useful but I need also Fround. For example Fround(3.4)=3 Fround(3.5)=4 Fround(3.9)=4&lt;/blockquote&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Implementing fround() is very easy.  Here is the code for it, along with a program to test it works as expected:&lt;br /&gt;Quote:&lt;div class=&quot;xoopsQuote&quot;&gt;&lt;blockquote&gt;&lt;pre&gt;PROC fround(value:FLOAT) IS IF value&gt;=0 THEN Ffloor(value+0.5) ELSE Fceil(value-0.5)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;PROC main()&lt;br /&gt;	test(3.0)&lt;br /&gt;	test(3.4)&lt;br /&gt;	test(3.5)&lt;br /&gt;	test(3.9)&lt;br /&gt;	test(-3.9)&lt;br /&gt;	test(-3.1)&lt;br /&gt;FINALLY&lt;br /&gt;	PrintException()&lt;br /&gt;ENDPROC&lt;br /&gt;&lt;br /&gt;PROC test(value:FLOAT)&lt;br /&gt;	printFloat(value, &#039;fround(&#039;, &#039;) = &#039;)&lt;br /&gt;	printFloat(fround(value))&lt;br /&gt;ENDPROC&lt;br /&gt;&lt;br /&gt;PROC printFloat(value:FLOAT, before=NILA:ARRAY OF CHAR, after=NILA:ARRAY OF CHAR, decimalPlaces=6)&lt;br /&gt;	DEF valueStr:STRING, intSize&lt;br /&gt;	&lt;br /&gt;	intSize := Ffloor(Flog10(Fabs(value)))+1 !!VALUE&lt;br /&gt;	NEW valueStr[1+intSize+1+decimalPlaces]&lt;br /&gt;	RealF(valueStr, value, decimalPlaces)&lt;br /&gt;	&lt;br /&gt;	IF before = NILA THEN before := &#039;&#039;&lt;br /&gt;	IF after  = NILA THEN after  := &#039;\n&#039;&lt;br /&gt;	Print(&#039;\s\s\s&#039;, before, valueStr, after)&lt;br /&gt;FINALLY&lt;br /&gt;	END valueStr&lt;br /&gt;ENDPROC&lt;/pre&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;You may also find the printFloat() procedure useful, as it gives an easy way to print a floating-point number.</description>
      <pubDate>Sun, 03 Mar 2013 17:35:49 +1700</pubDate>
      <guid>http://aros-exec.org/modules/newbb/viewtopic.php?topic_id=8074&amp;forum=28</guid>
    </item>
        <item>
      <title>Re: MUI-Demo.e doesn&#039;t compile under MorphOS [by PortablE]</title>
      <link>http://aros-exec.org/modules/newbb/viewtopic.php?topic_id=7892&amp;forum=28</link>
      <description>PortablE:: MUI-Demo.e doesn&#039;t compile under MorphOS&lt;br /&gt;
@SamuraiCrow&lt;br /&gt;Thanks for your report.  Having looked at it, this was due to a small error in the &#039;libraries/gadtools&#039; module for MorphOS, which I have now fixed.  If you need this fix before the next (beta) release of PortablE, then please let me know.</description>
      <pubDate>Wed, 09 Jan 2013 17:07:58 +1700</pubDate>
      <guid>http://aros-exec.org/modules/newbb/viewtopic.php?topic_id=7892&amp;forum=28</guid>
    </item>
        <item>
      <title>AnnPEGCC - compile PortablE programs inside Annotate [by PortablE]</title>
      <link>http://aros-exec.org/modules/newbb/viewtopic.php?topic_id=7785&amp;forum=28</link>
      <description>PortablE:: AnnPEGCC - compile PortablE programs inside Annotate&lt;br /&gt;
Thanks to the release of &lt;a href=&quot;http://www.onyxsoft.se/annotate.html&quot; rel=&quot;external&quot; title=&quot;&quot;&gt;Annotate&lt;/a&gt; v3.0.1, I am finally able to release a little program I wrote which allows you to compile &lt;a href=&quot;http://cshandley.co.uk/portable/&quot; rel=&quot;external&quot; title=&quot;&quot;&gt;PortablE&lt;/a&gt; code from inside the Annotate editor.  So for example, say you are editing the code &quot;MyBrilliantGame.e&quot;, then you can go to Annotate&#039;s Tools menu, and choose &quot;PEGCC &amp; Run&quot; to compile &amp; run it &lt;img class=&quot;imgsmile&quot; src=&quot;http://aros-exec.org/uploads/smil3dbd4d6422f04.gif&quot; alt=&quot;&quot; /&gt;&lt;br /&gt;&lt;br /&gt;While I personally prefer to compile &amp; run stuff from the Shell, quite a few people have asked for this, so here it finally is!&lt;br /&gt;&lt;br /&gt;You can download it from here:&lt;br /&gt;&lt;a href=&quot;http://cshandley.co.uk/temp/AnnPEGCC_r1.lha&quot; title=&quot;http://cshandley.co.uk/temp/AnnPEGCC_r1.lha&quot; rel=&quot;external&quot;&gt;http://cshandley.co.uk/temp/AnnPEGCC_r1.lha&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;It works on AmigaOS4 &amp; AROS.  It will hopefully also work on MorphOS, although this is sadly untested (due to my non-booting Efika).&lt;br /&gt;&lt;br /&gt;Don&#039;t forget to download Annotate v3.0.1 if you don&#039;t have it:&lt;br /&gt;&lt;a href=&quot;http://www.onyxsoft.se/annotate.html&quot; title=&quot;http://www.onyxsoft.se/annotate.html&quot; rel=&quot;external&quot;&gt;http://www.onyxsoft.se/annotate.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;As this is the first release, please let me know if you have any problems with it...</description>
      <pubDate>Sat, 08 Dec 2012 16:04:38 +1700</pubDate>
      <guid>http://aros-exec.org/modules/newbb/viewtopic.php?topic_id=7785&amp;forum=28</guid>
    </item>
        <item>
      <title>Re: 2D arrays (2D tables) [by PortablE]</title>
      <link>http://aros-exec.org/modules/newbb/viewtopic.php?topic_id=7628&amp;forum=28</link>
      <description>PortablE:: 2D arrays (2D tables)&lt;br /&gt;
@mrdarek&lt;br /&gt;By &quot;Integral&quot; I assume you actually mean &quot;Integer&quot;? i.e. An INT, which holds a value between -32768 &amp; 32767.&lt;br /&gt;&lt;br /&gt;The modules I supplied can only store VALUEs, which is ideal for holding (A)RGB values &amp; other things.  But if you really need to only store values between -32768 &amp; 32767, then it won&#039;t be very efficient.&lt;br /&gt;&lt;br /&gt;The modules need a few trivial changes to use INT instead of VALUE.  I also renamed the objects &amp; procedures to avoid clashing with the original modules.  I have attached these new modules (note that these will NOT be included with a future release of PortablE, but they should continue to work).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I recommend that you use the &#039;CSH/cTable2Dint&#039; module, as this is easier to use &amp; still pretty fast.  Here is a little example of it&#039;s usage:&lt;br /&gt;Quote:&lt;div class=&quot;xoopsQuote&quot;&gt;&lt;blockquote&gt;&lt;pre&gt;MODULE &#039;CSH/cTable2Dint&#039;&lt;br /&gt;&lt;br /&gt;PROC main()&lt;br /&gt;	DEF mytable:PTR TO cTable2Dint, copy:PTR TO cTable2Dint&lt;br /&gt;	&lt;br /&gt;	-&gt;first table&lt;br /&gt;	NEW mytable.new(10, 15)	-&gt;table 10 wide, 15 high&lt;br /&gt;	&lt;br /&gt;	mytable.set(9, 14, 999)&lt;br /&gt;	Print(&#039;mytable get=\d \n&#039;, mytable.get(9, 14))&lt;br /&gt;	&lt;br /&gt;	-&gt;second table&lt;br /&gt;	NEW copy.new(10, 15)&lt;br /&gt;	&lt;br /&gt;	mytable.copyTo(copy)&lt;br /&gt;	Print(&#039;copy get=\d \n&#039;, copy.get(9, 14))&lt;br /&gt;FINALLY&lt;br /&gt;	PrintException()&lt;br /&gt;	&lt;br /&gt;	END mytable, copy&lt;br /&gt;ENDPROC&lt;/pre&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Each cTable2Dint is basically just a wrapper for an oTable2DintFast, and you can access that if you want.  This means that you can use the friendlier cTable2Dint, but use procedures from pTable2DintFast when you need extra speed.  For example:&lt;br /&gt;Quote:&lt;div class=&quot;xoopsQuote&quot;&gt;&lt;blockquote&gt;&lt;pre&gt;MODULE &#039;CSH/cTable2Dint&#039;, &#039;CSH/pTable2DintFast&#039;&lt;br /&gt;&lt;br /&gt;PROC main()&lt;br /&gt;	DEF mytable:PTR TO cTable2Dint, fast:PTR TO oTable2DintFast&lt;br /&gt;	DEF width, height, x, y, i&lt;br /&gt;	&lt;br /&gt;	-&gt;create cTable2Dint&lt;br /&gt;	width  := 10&lt;br /&gt;	height := 15&lt;br /&gt;	NEW mytable.new(width, height)&lt;br /&gt;	&lt;br /&gt;	Print(&#039;mytable get=\d \n&#039;, mytable.get(width-1, height-1))&lt;br /&gt;	&lt;br /&gt;	-&gt;now use pTable2DintFast procedures for extra-fast access&lt;br /&gt;	fast := mytable.fast&lt;br /&gt;	i := 0&lt;br /&gt;	FOR y := 0 TO height-1&lt;br /&gt;		FOR x := 0 TO width-1&lt;br /&gt;			table2Dint_set(fast, x, y, i++)&lt;br /&gt;		ENDFOR&lt;br /&gt;	ENDFOR&lt;br /&gt;	&lt;br /&gt;	Print(&#039;mytable get=\d \n&#039;, mytable.get(width-1, height-1))&lt;br /&gt;FINALLY&lt;br /&gt;	PrintException()&lt;br /&gt;	&lt;br /&gt;	END mytable&lt;br /&gt;ENDPROC&lt;/pre&gt;&lt;/blockquote&gt;&lt;/div&gt;</description>
      <pubDate>Sun, 04 Nov 2012 12:08:01 +1700</pubDate>
      <guid>http://aros-exec.org/modules/newbb/viewtopic.php?topic_id=7628&amp;forum=28</guid>
    </item>
        <item>
      <title>Re: New release of PortablE aimed at beginners [by PortablE]</title>
      <link>http://aros-exec.org/modules/newbb/viewtopic.php?topic_id=5728&amp;forum=28</link>
      <description>PortablE:: New release of PortablE aimed at beginners&lt;br /&gt;
I have uploaded a &lt;a href=&quot;http://cshandley.co.uk/portable/&quot; rel=&quot;external&quot; title=&quot;&quot;&gt;new PortablE beta archive&lt;/a&gt; with a very small fix (almost cosmetic):&lt;br /&gt;&lt;br /&gt;* When the installer deletes obsolete modules, it will no-longer fail to delete a couple of folders (which was harmless but might have worried some people).&lt;br /&gt;* A small &#039;bonus&#039; is that the installer will now delete a few obsolete modules that I had previously overlooked.&lt;br /&gt;&lt;br /&gt;&lt;em&gt;Users who have already installed the latest release of PortablE do NOT need to download it again!&lt;/em&gt;</description>
      <pubDate>Wed, 10 Oct 2012 18:38:38 +1700</pubDate>
      <guid>http://aros-exec.org/modules/newbb/viewtopic.php?topic_id=5728&amp;forum=28</guid>
    </item>
        <item>
      <title>Re: help in portable arrays need [by PortablE]</title>
      <link>http://aros-exec.org/modules/newbb/viewtopic.php?topic_id=5813&amp;forum=28</link>
      <description>PortablE:: help in portable arrays need&lt;br /&gt;
If anyone wants an easier (but less flexible) alternative for 2D arrays, which can only store VALUEs (rather than BYTEs, STRINGs, or whatever), then I have created a couple of nice modules:&lt;br /&gt;&lt;a href=&quot;http://aros-exec.org/modules/newbb/viewtopic.php?post_id=74208&quot; title=&quot;http://aros-exec.org/modules/newbb/viewtopic.php?post_id=74208&quot; rel=&quot;external&quot;&gt;http://aros-exec.org/modules/newbb/viewtopic.php?post_id=74208&lt;/a&gt;</description>
      <pubDate>Sat, 29 Sep 2012 10:05:13 +1700</pubDate>
      <guid>http://aros-exec.org/modules/newbb/viewtopic.php?topic_id=5813&amp;forum=28</guid>
    </item>
      </channel>
</rss>