Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: Matrefeytontias on September 03, 2012, 10:15:20 am

Title: [Axiom] AxiomGUI
Post by: Matrefeytontias on September 03, 2012, 10:15:20 am
Hi guys !

I'm working on an Axiom which provides widgets for your GUIs, like a button, an alert ...

For now, I only have 4 funcs :

Alert(title,text)Key :normalpdf(Draws a modal auto-sized message box with title and text
Button(outputAddr,X,Y,text)Key : normalcdf(draws a button at the given location with text drawn inside, and store X, Y, X+W and Y+H in respectively outputAddr, outputAddr+1, outputAddr+2 and outputAddr+3 in order to test it later with a mouse click or something.
ProgressBar(Y,P)Key : invNorm(draws a progress bar at (0,Y) and fill it at P percent.
GUIstackKey : geometcdf(custom var (for now $90D3), you can use it for your widgets

All of these commands are available in the distrib menu [2nd] [vars].

Here is the latest screeshot (I'll update it, the mouse is not part of the Axiom) :

(http://mattias.refeyton.fr/espace-ti/axiomGui/axiomgui3.gif)
Title: Re: [Axiom] AxiomGUI
Post by: TheMachine02 on September 03, 2012, 10:18:52 am
that very funny and could be useful  :D

great work  :thumbsup:
Title: Re: [Axiom] AxiomGUI
Post by: Matrefeytontias on September 03, 2012, 10:24:52 am
Thanks :)

It's in active work, so I'll update it regularly.
Title: Re: [Axiom] AxiomGUI
Post by: MGOS on September 03, 2012, 11:18:45 am
That's a really cool axiom!

How about a text-box function which lets the user input text or numbers and displays it (if not to difficult)
TextBox(addr,X,Y,width,enable/mode)
The enable/mode is like an alpha-toggle; 0=doesn't respond to any key presses, 1=number input, 2=letter input
Auto-stop when the box is full and - of course - DEL as backspace.
Returns a number (when mode was 1) or a pointer to the string (when mode was 2)

Title: Re: [Axiom] AxiomGUI
Post by: Matrefeytontias on September 03, 2012, 11:55:10 am
How, that's way too difficult :/ I really don't know how to do an input in ASM.
Title: Re: [Axiom] AxiomGUI
Post by: MGOS on September 03, 2012, 12:21:04 pm
How, that's way too difficult :/ I really don't know how to do an input in ASM.

Oh, well... input has been a highly requested feature for a long time and it'll be awesome if someone finally makes that.
Here is my basic idea how it could work:
Title: Re: [Axiom] AxiomGUI
Post by: Matrefeytontias on September 03, 2012, 12:24:51 pm
Yeah, I know the method, but I don't see how to apply it :/ maybe I'll do it, but much later, since there are many widgets simpler to code (and mostly I still haven't done the mouse() command ;D )
Title: Re: [Axiom] AxiomGUI
Post by: MGOS on September 03, 2012, 12:28:53 pm
Yeah, I know the method, but I don't see how to apply it :/ maybe I'll do it, but much later, since there are many widgets simpler to code (and mostly I still haven't done the mouse() command ;D )
Ok, sure :)
If I knew how to make axioms I'd give it a try myself.
Title: Re: [Axiom] AxiomGUI
Post by: Matrefeytontias on September 03, 2012, 01:04:05 pm
There's a how-to-do file in the Axe zip, it's called AxiomSDK.txt, it describes how to write an axiom :) I learned with it.
Title: Re: [Axiom] AxiomGUI
Post by: Yeong on September 03, 2012, 01:17:26 pm
Wow. This could be very useful for my project :D
Title: Re: [Axiom] AxiomGUI
Post by: MGOS on September 03, 2012, 01:21:19 pm
There's a how-to-do file in the Axe zip, it's called AxiomSDK.txt, it describes how to write an axiom :) I learned with it.
I looked at it, but I think I'm not advanced enough in asm to fully understand it  :-\
Title: Re: [Axiom] AxiomGUI
Post by: Ki1o on September 03, 2012, 09:12:54 pm
Ooo this looks nice! Also Yeong, I just realized your avatar is Andy from Advance Wars o.O
Title: Re: [Axiom] AxiomGUI
Post by: neuronix on June 29, 2016, 10:44:31 am
It is possible to download it? I don't see any link to download :(
Title: Re: [Axiom] AxiomGUI
Post by: TIfanx1999 on June 29, 2016, 11:09:55 am
Probably not. This is a pretty old topic and I don't see a download link. Matref doesn't really do calculator programming any more if I recall correctly. You can try sending him a private message here or attempt to catch him at Codewalrus. He doesn't really come around here these days.
Title: Re: [Axiom] AxiomGUI
Post by: neuronix on June 30, 2016, 10:12:47 am
Thanks for your responce and sorry for my post  :-\