Don't have an account? Register now to chat, post, use our tools, and much more.
Latest Headlines
Online Users
There are 101 users online: 3 members, 65 guests and 33 bots. Members: Roshiras. Bots: Spinn3r (1), MSN/Bing (1), Magpie Crawler (3), VoilaBot (6), Googlebot (20), MSN/Bing (2).
RSS & Social Media
SAX
You must log in to view the SAX chat widget
|
| Author |
Message |
|
Eeems

Super-Expert

Joined: 22 Jan 2009 Posts: 832 Location: Edmonton, Alberta
|
Posted: 22 Jan 2010 02:06:30 pm Post subject: |
|
|
Currently how big is it without and with the widgets? _________________
        |
|
| Back to top |
|
|
CDI

Advanced Member

Joined: 01 Sep 2005 Posts: 189 Location: http://facebook.com/403.shtml
|
Posted: 22 Jan 2010 02:22:55 pm Post subject: |
|
|
If I can get ahold of a beta, I will definitely want to write games for this if possible. Even little small ones [ I am good at making games in under 1KB of space ] |
|
| Back to top |
|
|
rthprog

Expert

Joined: 21 Sep 2007 Posts: 726 Location: Pittsburgh, PA
|
Posted: 22 Jan 2010 08:04:49 pm Post subject: |
|
|
| Eeems wrote: | | Currently how big is it without and with the widgets? |
The actual code is around 6K at the moment (including the Finder and Settings widgets). The real question you should be asking is how much space does it take up while running... each widget takes up about another 1~2K of RAM during execution.
Generally I've found that it's difficult to run more than 4 or 5 widgets without fearing a crash.
| CDI wrote: | | If I can get ahold of a beta, I will definitely want to write games for this if possible. Even little small ones [ I am good at making games in under 1KB of space] |
I'm still trying to define some good standards for widget code; my current setup is rather complex.
Eeems_ was asking about how it works; let me sort of show you.
Basically, widgets work like this
Code: :if Ans = 1:Then
://This is where the widget is initialized
:Set Up Toolbar using a routine I provided
:Draw Window using another routine I provided
:Draw any other elements using xLib
:Using a routine I provide, ask to be allocated a Pic#
:Store image to that Pic#
Else
:if Ans = 2:Then
://This is where the actual widget is run.
://DarkFire will automatically recall the PIC allocated to this widget
://The last keypress within DarkFire is stored to K, unless K = 24 or 26, in which case it remains 0
:While K!= 24 and K!=26
:Widget Code
://Periodically, when the user isn't doing anything, call another routine that runs "background" tasks
:More Widget Code
:End
:Store Pic to allocated PIC#
:Else
:if Ans = 3: Then
:very very very fast code that is periodically executed in the background
:Else
:End:End:End
Widgets can request extra PIC variables, and are responsible for protecting their variables. I want to change the last part, but it takes too much time to swap out common variables and lists all the time.
I might also add icons using the DCS format.... except the codes would have to go at the end of the program, not as a header
Last edited by rthprog on 22 Jan 2010 08:10:11 pm; edited 1 time in total |
|
| Back to top |
|
|
CDI

Advanced Member

Joined: 01 Sep 2005 Posts: 189 Location: http://facebook.com/403.shtml
|
Posted: 22 Jan 2010 08:09:01 pm Post subject: |
|
|
| That seems straightforward enough. Assuming that you have all those bits in other programs you can RCL into the widget when need-be. |
|
| Back to top |
|
|
|
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.
» Go to Registration page
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
© Copyright 2000-2013 Cemetech & Kerm Martian :: Page Execution Time: 0.024818 seconds.
|