Author Topic: Axe Library : AxeLib7  (Read 13753 times)

0 Members and 2 Guests are viewing this topic.

Offline zero44

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 128
  • Rating: +21/-0
  • <!--//www.ustr.net/infrared/infrared1.shtml-->
    • View Profile
    • zero44
Axe Library : AxeLib7
« on: May 09, 2011, 09:08:35 am »
I made an Axe prgm which contains lots of Lbls, is it considered as a library ?
Most of functions are made to make DCS's style.

Spoiler For functions:
  • Get DCS7's cursor (need a ptr)
  • Open calc's variables (need name, returns ptr)
  • Close calc's variables (need name)
  • Draw a window like DCS7 (need title, Xtitle, icon's adress (0 for none))
  • Returns 1 if point(X,Y) is in rect (X,Y,W,H) (need X:r1, Y:r2, etc.)
    Info : if r3=99, returns 1 if X,Y is on the close icon
  • Draw a button like DCS7 (need XYWH, title, and 1 if title must be write)
  • Draw a small window like DCS7 (need title, 1 if close button, and XYWH)
  • Draw a b/w/transparent cursor (need adress of white)
« Last Edit: May 09, 2011, 02:36:01 pm by zero44 »
____________

Offline ZippyDee

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 729
  • Rating: +83/-8
  • Why not zoidberg?
    • View Profile
Re: "Library" in Axe
« Reply #1 on: May 09, 2011, 09:11:47 am »
A "Library" refers to a set of routines that aren't made into a full program on their own, but rather they are intended to be used by other people to aid them in making their programs.
There's something about Tuesday...


Pushpins 'n' stuff...


Offline zero44

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 128
  • Rating: +21/-0
  • <!--//www.ustr.net/infrared/infrared1.shtml-->
    • View Profile
    • zero44
Re: "Library" in Axe
« Reply #2 on: May 09, 2011, 09:15:52 am »
How can I make a real Library ?
____________

Offline ZippyDee

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 729
  • Rating: +83/-8
  • Why not zoidberg?
    • View Profile
Re: "Library" in Axe
« Reply #3 on: May 09, 2011, 09:17:52 am »
Well, if your program is a collection of routines that are not specific to a particular program, then it could be called a library.

EDIT: This was post 333 :D
« Last Edit: May 09, 2011, 09:20:09 am by ZippyDee »
There's something about Tuesday...


Pushpins 'n' stuff...


Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: "Library" in Axe
« Reply #4 on: May 09, 2011, 09:24:09 am »
I think that you can call this program a library, since it can be used in any program.
I'm not a nerd but I pretend:

Offline zero44

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 128
  • Rating: +21/-0
  • <!--//www.ustr.net/infrared/infrared1.shtml-->
    • View Profile
    • zero44
Re: "Library" in Axe
« Reply #5 on: May 09, 2011, 09:25:18 am »
I don't exactly understand what ZippyDee said ...
I have prgmAXELIB7, and in my axe source code, I write at the top:
.PROGRAM SomeThing
#Icon(---)
[---]->GDB1
prgmAXELIB7
.code

In each program, I include it but axe parser includes all code of AXELIB7, so the compiled prgm has something like 1200 bytes more ... -_-
« Last Edit: May 09, 2011, 09:26:21 am by zero44 »
____________

Offline ZippyDee

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 729
  • Rating: +83/-8
  • Why not zoidberg?
    • View Profile
Re: "Library" in Axe
« Reply #6 on: May 09, 2011, 09:26:37 am »
I think that you can call this program a library, since it can be used in any program.
Well that's the key thing...CAN it be used in any program? If it's written for only a specific program, then it's not really a library (at least not a good one). The syntax and usage of commands should be fairly straightforward and logical for general use.
There's something about Tuesday...


Pushpins 'n' stuff...


Offline zero44

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 128
  • Rating: +21/-0
  • <!--//www.ustr.net/infrared/infrared1.shtml-->
    • View Profile
    • zero44
Re: "Library" in Axe
« Reply #7 on: May 09, 2011, 09:28:19 am »
I can use it in all programs I make.

It's very useful for me, but it takes lots of place .
____________

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: "Library" in Axe
« Reply #8 on: May 09, 2011, 09:28:55 am »
zero: You should actually include a program at the end.... so, after the final return. I assume you know how to call subroutines?
I'm not a nerd but I pretend:

Offline ZippyDee

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 729
  • Rating: +83/-8
  • Why not zoidberg?
    • View Profile
Re: "Library" in Axe
« Reply #9 on: May 09, 2011, 09:30:01 am »
I can use it in all programs I make.

It's very useful for me, but it takes lots of place .
Well how else would you expect it to work? It has to take up space if you're going to include it in your program. There's no way for it to exist and take up no space...
There's something about Tuesday...


Pushpins 'n' stuff...


Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: "Library" in Axe
« Reply #10 on: May 09, 2011, 09:30:59 am »
It would be useful if axe only included the specific routines you use (the ones that are called)
I'm not a nerd but I pretend:

Offline ZippyDee

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 729
  • Rating: +83/-8
  • Why not zoidberg?
    • View Profile
Re: "Library" in Axe
« Reply #11 on: May 09, 2011, 09:32:23 am »
Yeah, that would be useful...
* ZippyDee thinks there's a very good place to bring that up SOMEWHERE on this forum...I wonder where that could be?
There's something about Tuesday...


Pushpins 'n' stuff...


Offline zero44

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 128
  • Rating: +21/-0
  • <!--//www.ustr.net/infrared/infrared1.shtml-->
    • View Profile
    • zero44
Re: "Library" in Axe
« Reply #12 on: May 09, 2011, 09:32:57 am »
It will be very great if Quigibo can write all my functions in Axe 1.0.0 ...
It will take less place, no ?

aeTIos : If I include it at the end, will it be better ?

PS: does someone know how many space will take AxeParser 1.0.0 ?
____________

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: "Library" in Axe
« Reply #13 on: May 09, 2011, 09:34:13 am »
;D I'll add a post in the feature request thread. also, I think this is in the wrong subforum, I think it should be moved to 'Other calc-related projects and ideas'. I can't move threads, tho... maybe a mod can do?

Edit:
Zero, yeah, including at the end is way better, it reduces starting time for your program. Also, Axe 1.0.0 will be the same size as it is atm (imo) since most functions are added already.
I dont think Quigibo will include your program, since you wrote it already and it is a bit too specific.
« Last Edit: May 09, 2011, 09:36:20 am by aeTIos »
I'm not a nerd but I pretend:

Offline zero44

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 128
  • Rating: +21/-0
  • <!--//www.ustr.net/infrared/infrared1.shtml-->
    • View Profile
    • zero44
Re: Library in Axe
« Reply #14 on: May 09, 2011, 09:35:12 am »
But it's for axe, no ?
____________