Revision [17050]

Last edited on 2011-07-21 12:43:16 by darkcity
Additions:
[[HomePage]] > [[SoftwareIndex Software Index]] > [[SoftwareDevelopment Development]]


Revision [16966]

Edited on 2011-07-20 12:06:11 by darkcity
Deletions:
[[Homepage]] > [[PuppyVersionIndex Puppy Version]]


Revision [16965]

Edited on 2011-07-20 11:46:36 by darkcity

No Differences

Revision [16964]

Edited on 2011-07-20 11:45:34 by darkcity
Additions:
== ""Overview of PuppyBasic"" ==
Deletions:
== Overview of [[http://puppylinux.org/wikka/PuppyBasic PuppyBasic]] ==


Revision [16963]

Edited on 2011-07-20 11:44:42 by darkcity
Deletions:
//**Warning**// this page needs updating


Revision [16962]

Edited on 2011-07-20 11:44:22 by darkcity
Additions:
{{include TagInfoUpdate}}
Deletions:
{{include TagInfoUpate}}


Revision [16950]

Edited on 2011-07-20 11:29:02 by darkcity
Additions:
[[Homepage]] > [[PuppyVersionIndex Puppy Version]]
//**Warning**// this page needs updating
{{include TagInfoUpate}}
== Overview of [[http://puppylinux.org/wikka/PuppyBasic PuppyBasic]] ==
== Tutorials ==
=="" New in [[http://puppylinux.org/wikka/PuppyBasic PuppyBasic]] V2.5""==
Deletions:
//**Warning**// this page needs updating as it was written during the creation of [[http://puppylinux.org/wikka/PuppyBasic PuppyBasic]]
==== Overview of [[http://puppylinux.org/wikka/PuppyBasic PuppyBasic]] ====
==== Tutorials ====
==== New in [[http://puppylinux.org/wikka/PuppyBasic PuppyBasic]] V2.5 ====


Revision [4621]

Edited on 2009-12-03 23:45:26 by CrustyLobster
Additions:
See also: [[http://puppylinux.org/wikka/WxBasic WxBasic]], [[http://puppylinux.org/wikka/WxBasicscript WxBasicscript]], http://noforum.de/wxBasicscript-documentation/wxbasic/frameset.htm
[[http://puppylinux.org/wikka/PuppyBasic PuppyBasic]] is the new name for [[http://puppylinux.org/wikka/WxBasicscript WxBasicscript]], which is a simplified version of [[WxBasic]]. Mark Ulrich added new functions for the Linux platform.---[[http://puppylinux.org/wikka/PuppyBasic PuppyBasic]] offers some "pre-defined" dialogs to make it simple to make simple GUI applications. It is currently version 2.5
http://noforum.de/wxBasicscript-documentation/wxbasicscript/index.htm;
http://www.murga-linux.com/puppy/%7Epuppy/viewtopic.php?t=3486
http://www.murga-linux.com/puppy/%7Epuppy/viewtopic.php?p=20582#20582
Then you have to open that file, and check if it is empty ot not. If it is not empty, the webserver is running. This method is not 100% exact, but should do it usually. [[http://www.murga.org/%7Epuppy/viewtopic.php?p=13222#13222 PuppyBasic aka Wxbasicscript]]
http://www.murga-linux.com/puppy/%7Epuppy/viewtopic.php?t=2182
Deletions:
See also: [[http://puppylinux.org/wikka/WxBasic WxBasic]], [[http://puppylinux.org/wikka/WxBasicscript WxBasicscript]], http://noforum.de/wxBasicscript-documentation/wxbasic/frameset.htm∞
[[http://puppylinux.org/wikka/PuppyBasic PuppyBasic]] is the new name for [[http://puppylinux.org/wikka/WxBasicscript WxBasicscript]], which is a simplified version of [[http://puppylinux.org/wikka/WxBasic WxBasic]]. Mark Ulrich added new functions for the Linux platform.---[[http://puppylinux.org/wikka/PuppyBasic PuppyBasic]] offers some "pre-defined" dialogs to make it simple to make simple GUI applications. It is currently version 2.5
http://noforum.de/wxBasicscript-documentation/wxbasicscript/index.htm∞
http://www.murga.org/%7Epuppy/viewtopic.php?t=3486∞
http://www.murga.org/%7Epuppy/viewtopic.php?p=20582#20582∞
Then you have to open that file, and check if it is empty ot not. If it is not empty, the webserver is running. This method is not 100% exact, but should do it usually. [[http://www.murga.org/%7Epuppy/viewtopic.php?p=13222#13222 PuppyBasic aka Wxbasicscript]]∞
http://www.murga.org/%7Epuppy/viewtopic.php?t=2182∞
Sample [[http://puppylinux.org/wikka/PuppyBasic PuppyBasic]] programs:
[[http://puppylinux.org/wikka/hexdumpBASIC hexdumpBASIC]]


Revision [969]

Edited on 2009-09-14 12:40:39 by Puppyite [created category]
Additions:
==Categories==
CategoryDevelopment
Deletions:
[[http://puppylinux.org/wikka/CategoryDevelopment CategoryDevelopment]]


Revision [784]

Edited on 2009-09-03 18:09:05 by Puppyite [converted to wikki code & initial edit]
Additions:
{{image url="http://tinypic.com/dzjes5.gif" title="WikkiImage" alt="WikkiImage"}}
See also: [[http://puppylinux.org/wikka/WxBasic WxBasic]], [[http://puppylinux.org/wikka/WxBasicscript WxBasicscript]], http://noforum.de/wxBasicscript-documentation/wxbasic/frameset.htm∞
//**Warning**// this page needs updating as it was written during the creation of [[http://puppylinux.org/wikka/PuppyBasic PuppyBasic]]
==== Overview of [[http://puppylinux.org/wikka/PuppyBasic PuppyBasic]] ====
[[http://puppylinux.org/wikka/PuppyBasic PuppyBasic]] is the new name for [[http://puppylinux.org/wikka/WxBasicscript WxBasicscript]], which is a simplified version of [[http://puppylinux.org/wikka/WxBasic WxBasic]]. Mark Ulrich added new functions for the Linux platform.---[[http://puppylinux.org/wikka/PuppyBasic PuppyBasic]] offers some "pre-defined" dialogs to make it simple to make simple GUI applications. It is currently version 2.5
Amish is currently working on writing a manual for [[http://puppylinux.org/wikka/PuppyBasic PuppyBasic]]
==== Tutorials ====
http://noforum.de/wxBasicscript-documentation/wxbasicscript/index.htm∞
==== New in [[http://puppylinux.org/wikka/PuppyBasic PuppyBasic]] V2.5 ====
changes to wxBasic:
New file xwin.c It is included in main.c
The functions from this file were added to builtin.h
Other changes:
main.c
Changes are marked with:
MU
//changed code//
MU
The change in main.c allows to execute wxBasic-commands without passing a filename, like:
puppybasic2 -e 'a=1:b=2:c=a+b:print c'
To compile [[http://puppylinux.org/wikka/PuppyBasic PuppyBasic]], run:
./_compilePuppyBasic2.sh
This creates a [[http://puppylinux.org/wikka/PuppyBasic PuppyBasic]]-2.5.tar.gz that can be installed as alien Package in Puppylinux, or extracted to all Linuxsystems that meet these dependencies:
sh-3.00# ldd wxbasicscript
linux-gate.so.1 => (0xffffe000)
libm.so.6 => /lib/libm.so.6 (0x40014000)--- libSM.so.6 => /usr/X11R7/lib/libSM.so.6 (0x4003a000)
libICE.so.6 => /usr/X11R7/lib/libICE.so.6 (0x40042000)--- libX11.so.6 => /usr/X11R7/lib/libX11.so.6 (0x4005a000)
libXmu.so.6 => /usr/X11R7/lib/libXmu.so.6 (0x40148000)--- libc.so.6 => /lib/libc.so.6 (0x4015d000)
/lib/ld-linux.so.2 (0x40000000)--- libXau.so.6 => /usr/X11R7/lib/libXau.so.6 (0x40269000)
libXdmcp.so.6 => /usr/X11R7/lib/libXdmcp.so.6 (0x4026d000)--- libdl.so.2 => /lib/libdl.so.2 (0x40272000)
libXt.so.6 => /usr/X11R7/lib/libXt.so.6 (0x40276000)--- libXext.so.6 => /usr/X11R7/lib/libXext.so.6 (0x402c6000)
sh-3.00#
==== [[http://puppylinux.org/wikka/PuppyBasic PuppyBasic]] use: ====
* wxbasicscript included standard in Puppy 1.0.5 and greater
* Write your program using a text editor (even Leafpad / Beaver) into a file with the .wxbs extension;
* Change to executable with ROX
==== Running Programs ====
**How does one execute a wxbasic program?** **Do you just type 'wxbasic [filename]'?**
When in Puppy any file with the extension **.wxbs** would be interpreted as a runnable program
You can also run any text file manually as a BASIC progam, with either of these command formats:
# puppybasic helloworld
# wxbasicscript helloworld

For now use rxvt
Create a program in a text editor and save for example
%%(language-ref)
Tutorial for Puppy 1.0.5 wxBasic - Lobster Sep 2005, uses PuppyBasic script created by Mark Ulrich
xmessage ( MSG )
%%
Running the code:
#wxbasicsh helloworld.wxbs (you must have wxbasicscript - details to follow shortly - this page being developed)
or
wxbasicsh myprogram.wxbsh
You also might add the line
to your program file as the first line to main.wxb, and make it executable:
chmod 755 main.wxb
Then you can start it like a "main.exe":
./main.wxb
(or click on it in rox)
Nb:
Lines beginning with are comments and will be ignored during execution.
Take existing applications, and modify to your needs.
http://www.murga.org/%7Epuppy/viewtopic.php?t=3486∞
To start, this might be easier:
http://www.murga.org/%7Epuppy/viewtopic.php?p=20582#20582∞
The main concept:
You have a shellscript, that runs "main.pb" in the /resource -folder.
main.pb basically just displays xxx.tpl, which is the grafical user-interface (GUI).
In the Gui you can see Button-definitions. When a button is clicked, a shell-command or a script is executed, that creates a textfile in /tmp. Then the textarea is refreshed, that's to say it reloads the textfile.
This is right the concept you would need. To determine, if the webserver is running, you might need a shell-command like:
ps|grep httpd >/tmp/httpdcheck.txt
In puppybasic, you execute it like this:
shell( "ps|grep httpd >/tmp/httpdcheck.txt" )
Then you have to open that file, and check if it is empty ot not. If it is not empty, the webserver is running. This method is not 100% exact, but should do it usually. [[http://www.murga.org/%7Epuppy/viewtopic.php?p=13222#13222 PuppyBasic aka Wxbasicscript]]∞
It will be installed together with the example:
http://www.murga.org/%7Epuppy/viewtopic.php?t=2182∞
Sample [[http://puppylinux.org/wikka/PuppyBasic PuppyBasic]] programs:
[[http://puppylinux.org/wikka/hexdumpBASIC hexdumpBASIC]]
----
[[http://puppylinux.org/wikka/CategoryDevelopment CategoryDevelopment]]
Deletions:
""<img title="WikiImage" alt="image" src="http://tinypic.com/dzjes5.gif" /><br />
<br />
<div class="indent">
See also: <a href="http://puppylinux.org/wikka/WxBasic">WxBasic</a>, <a href="http://puppylinux.org/wikka/WxBasicscript">WxBasicscript</a>, <a href="http://noforum.de/wxBasicscript-documentation/wxbasic/frameset.htm" class="ext">http://noforum.de/wxBasicscript-documentation/wxbasic/frameset.htm</a><span class="exttail">∞</span>
</div>
<br />
<em><strong>Warning</strong></em> this page needs updating as it was written during the creation of <a href="http://puppylinux.org/wikka/PuppyBasic">PuppyBasic</a><br />
<br />
<h3> Overview of <a href="http://puppylinux.org/wikka/PuppyBasic">PuppyBasic</a> </h3>
<a href="http://puppylinux.org/wikka/PuppyBasic">PuppyBasic</a> is the new name for <a href="http://puppylinux.org/wikka/WxBasicscript">WxBasicscript</a>, which is a simplified version of <a href="http://puppylinux.org/wikka/WxBasic">WxBasic</a>. Mark Ulrich added new functions for the Linux platform.<br />
<a href="http://puppylinux.org/wikka/PuppyBasic">PuppyBasic</a> offers some "pre-defined" dialogs to make it simple to make simple GUI applications. It is currently version 2.5<br />
<br />
Amish is currently working on writing a manual for <a href="http://puppylinux.org/wikka/PuppyBasic">PuppyBasic</a><br />
<br />
<h3> Tutorials </h3>
<a href="http://noforum.de/wxBasicscript-documentation/wxbasicscript/index.htm" class="ext">http://noforum.de/wxBasicscript-documentation/wxbasicscript/index.htm</a><span class="exttail">∞</span><br />
<br />
<h3> New in <a href="http://puppylinux.org/wikka/PuppyBasic">PuppyBasic</a> V2.5 </h3>
<br />
changes to wxBasic:<br />
<br />
New file xwin.c<br />
<br />
It is included in main.c<br />
<br />
The functions from this file were added to builtin.h<br />
<br />
<hr />
Other changes:<br />
main.c<br />
<br />
Changes are marked with<br />
<br />
<em>MU<br />
changed code<br />
</em>MU<em><br />
<br />
The change in main.c allows to execute wxBasic-commands without passing a filename, like<br />
<br />
puppybasic2 -e 'a=1:b=2:c=a+b:print c'<br />
<br />
<hr />
To compile <a href="http://puppylinux.org/wikka/PuppyBasic">PuppyBasic</a>, run<br />
./_compilePuppyBasic2.sh<br />
<br />
This creates a <a href="http://puppylinux.org/wikka/PuppyBasic">PuppyBasic</a>-2.5.tar.gz that can be installed as alien Package in Puppylinux,<br />
or extracted to all Linuxsystems that meet these dependencies:<br />
sh-3.00# ldd wxbasicscript<br />
<div class="indent">
linux-gate.so.1 => (0xffffe000)<br />
libm.so.6 => /lib/libm.so.6 (0x40014000)<br />
libSM.so.6 => /usr/X11R7/lib/libSM.so.6 (0x4003a000)<br />
libICE.so.6 => /usr/X11R7/lib/libICE.so.6 (0x40042000)<br />
libX11.so.6 => /usr/X11R7/lib/libX11.so.6 (0x4005a000)<br />
libXmu.so.6 => /usr/X11R7/lib/libXmu.so.6 (0x40148000)<br />
libc.so.6 => /lib/libc.so.6 (0x4015d000)<br />
/lib/ld-linux.so.2 (0x40000000)<br />
libXau.so.6 => /usr/X11R7/lib/libXau.so.6 (0x40269000)<br />
libXdmcp.so.6 => /usr/X11R7/lib/libXdmcp.so.6 (0x4026d000)<br />
libdl.so.2 => /lib/libdl.so.2 (0x40272000)<br />
libXt.so.6 => /usr/X11R7/lib/libXt.so.6 (0x40276000)<br />
libXext.so.6 => /usr/X11R7/lib/libXext.so.6 (0x402c6000)
</div>
sh-3.00#<br />
<br />
<h3><a href="http://puppylinux.org/wikka/PuppyBasic">PuppyBasic</a> use:</h3>
<br />
* wxbasicscript included standard in Puppy 1.0.5 and greater<br />
* Write your program using a text editor (even Leafpad / Beaver) into a file with the .wxbs extension;<br />
* Change to executable with ROX<br />
<br />
<h3>Running Programs</h3>
<br />
<strong>How does one execute a wxbasic program?</strong><br />
<strong>Do you just type 'wxbasic [filename]'?</strong><br />
<br />
<div class="indent">
When in Puppy any file with the extension <strong>.wxbs</strong> would be interpreted as a runnable program
</div>
<br />
You can also run any text file manually as a BASIC progam, with either of these command formats:<br />
# puppybasic helloworld<br />
# wxbasicscript helloworld<br />
<br />
For now use rxvt<br />
Create a program in a text editor and save for example<br />
<br />
<div class="indent">
</div>
<div class="code">
<pre>
//Tutorial for Puppy 1.0.5 wxBasic - Lobster Sep 2005, uses PuppyBasic script created by Mark Ulrich
xmessage ( MSG )
</pre>
</div>
<br />
<br />
Running the code:<br />
<div class="indent">
#wxbasicsh helloworld.wxbs (you must have wxbasicscript - details to follow shortly - this page being developed)
</div>
<br />
or <br />
wxbasicsh myprogram.wxbsh<br />
<br />
You also might add the line<br />
#!/usr/bin/wxbasicscript<br />
to your program file as the first line to main.wxb, and make it executable:<br />
<br />
chmod 755 main.wxb<br />
<br />
Then you can start it like a "main.exe":<br />
./main.wxb<br />
(or click on it in rox) <br />
<br />
Nb:<br />
Lines beginning with </em> are comments and will be ignored during execution. <br />
<br />
Take existing applications, and modify to your needs.<br />
<br />
<a href="http://www.murga.org/%7Epuppy/viewtopic.php?t=3486" class="ext">http://www.murga.org/%7Epuppy/viewtopic.php?t=3486</a><span class="exttail">∞</span><br />
<br />
To start, this might be easier:<br />
<a href="http://www.murga.org/%7Epuppy/viewtopic.php?p=20582#20582" class="ext">http://www.murga.org/%7Epuppy/viewtopic.php?p=20582#20582</a><span class="exttail">∞</span><br />
<br />
The main concept:<br />
You have a shellscript, that runs "main.pb" in the /resource -folder.<br />
main.pb basically just displays xxx.tpl , which is the grafical user-interface (GUI).<br />
<br />
In the Gui you can see Button-definitions.<br />
When a button is clicked, a shell-command or a script is executed, that creates a textfile in /tmp.<br />
Then the textarea is refreshed, that's to say it reloads the textfile.<br />
<br />
This is right the concept you would need.<br />
<br />
To determine, if the webserver is running, you might need a shell-command like<br />
ps|grep httpd >/tmp/httpdcheck.txt<br />
<br />
In puppybasic, you execute it like this:<br />
shell( "ps|grep httpd >/tmp/httpdcheck.txt" )<br />
<br />
Then you have to open that file, and check if it is empty ot not.<br />
If it is not empty, the webserver is running.<br />
<br />
This method is not 100% exact, but should do it usually. <br />
<br />
<br />
<a href="http://www.murga.org/%7Epuppy/viewtopic.php?p=13222#13222" class="ext">PuppyBasic aka Wxbasicscript</a><span class="exttail">∞</span> <br />
It will be installed together with the example:<br />
<a href="http://www.murga.org/%7Epuppy/viewtopic.php?t=2182" class="ext">http://www.murga.org/%7Epuppy/viewtopic.php?t=2182</a><span class="exttail">∞</span><br />
<br />
<br />
Sample <a href="http://puppylinux.org/wikka/PuppyBasic">PuppyBasic</a> programs:<br />
<a href="http://puppylinux.org/wikka/hexdumpBASIC">hexdumpBASIC</a><br />
<hr />
<a href="http://puppylinux.org/wikka/CategoryDevelopment">CategoryDevelopment</a>""


Revision [698]

Edited on 2009-08-30 22:52:32 by CrustyLobster [converted to wikki code & initial edit]
Additions:
""<img title="WikiImage" alt="image" src="http://tinypic.com/dzjes5.gif" /><br />
<a href="http://puppylinux.org/wikka/CategoryDevelopment">CategoryDevelopment</a>""
Deletions:
<img title="WikiImage" alt="image" src="http://tinypic.com/dzjes5.gif" /><br />
<a href="http://puppylinux.org/wikka/CategoryDevelopment">CategoryDevelopment</a>


Revision [601]

The oldest known version of this page was created on 2009-08-25 00:27:32 by coolpup [converted to wikki code & initial edit]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki