Author Topic: Updating WZGUILib  (Read 156393 times)

0 Members and 1 Guest are viewing this topic.

Offline jwalker

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 660
  • Rating: +13/-0
  • Almost everything I have released includes a 'WZ'
    • View Profile
Re: Updating WZGUILib
« Reply #165 on: August 17, 2012, 03:13:04 pm »
Realy, was it through ndless though?
<a href="http://www.nerdtests.com/ft_cg.php?im">
<img src="http://www.nerdtests.com/images/ft/cg.php?val=9612" alt="My computer geek score is greater than 41% of all people in the world! How do you compare? Click here to find out!"> </a>

Support Casio-Scene against the attacks of matt @ matpac.co.uk ! For more information: Casio-Scene shuts down & Matt actions threads

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Updating WZGUILib
« Reply #166 on: August 17, 2012, 03:31:14 pm »
No Ndless :D

Offline jwalker

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 660
  • Rating: +13/-0
  • Almost everything I have released includes a 'WZ'
    • View Profile
Re: Updating WZGUILib
« Reply #167 on: August 17, 2012, 03:36:00 pm »
hmmmm, could you tell me how? This is pretty cool because I thought it was sandboxed
<a href="http://www.nerdtests.com/ft_cg.php?im">
<img src="http://www.nerdtests.com/images/ft/cg.php?val=9612" alt="My computer geek score is greater than 41% of all people in the world! How do you compare? Click here to find out!"> </a>

Support Casio-Scene against the attacks of matt @ matpac.co.uk ! For more information: Casio-Scene shuts down & Matt actions threads

Offline jwalker

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 660
  • Rating: +13/-0
  • Almost everything I have released includes a 'WZ'
    • View Profile
Re: Updating WZGUILib
« Reply #168 on: August 18, 2012, 09:46:06 pm »
So Here is a layout of what I plan to be doing in the next few weeks...
Testing... Lots of testing
finish scrollbars and remove dynaWidth from listboxes
Add multiline textboxes
add picture buttons
Add a forms graphics context for drawing primatives
And when jimbauwens tells me how he got lua code to run in a tibasic function, I will be testing that too.
That would be sweet if poeple could use it in ti-basic programs to make GUI Applications.
<a href="http://www.nerdtests.com/ft_cg.php?im">
<img src="http://www.nerdtests.com/images/ft/cg.php?val=9612" alt="My computer geek score is greater than 41% of all people in the world! How do you compare? Click here to find out!"> </a>

Support Casio-Scene against the attacks of matt @ matpac.co.uk ! For more information: Casio-Scene shuts down & Matt actions threads

Offline jwalker

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 660
  • Rating: +13/-0
  • Almost everything I have released includes a 'WZ'
    • View Profile
Re: Updating WZGUILib
« Reply #169 on: August 19, 2012, 04:00:55 pm »
Now just how to figure out the best way to make a graphics context for forms...
<a href="http://www.nerdtests.com/ft_cg.php?im">
<img src="http://www.nerdtests.com/images/ft/cg.php?val=9612" alt="My computer geek score is greater than 41% of all people in the world! How do you compare? Click here to find out!"> </a>

Support Casio-Scene against the attacks of matt @ matpac.co.uk ! For more information: Casio-Scene shuts down & Matt actions threads

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: Updating WZGUILib
« Reply #170 on: August 19, 2012, 04:09:28 pm »
I think Jim was thinking of on.varChange and var.monitor...
« Last Edit: August 19, 2012, 04:09:51 pm by Levak »
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

Offline jwalker

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 660
  • Rating: +13/-0
  • Almost everything I have released includes a 'WZ'
    • View Profile
Re: Updating WZGUILib
« Reply #171 on: August 19, 2012, 04:11:35 pm »
I think that may be it too, but maybe he found something we dont know about...
<a href="http://www.nerdtests.com/ft_cg.php?im">
<img src="http://www.nerdtests.com/images/ft/cg.php?val=9612" alt="My computer geek score is greater than 41% of all people in the world! How do you compare? Click here to find out!"> </a>

Support Casio-Scene against the attacks of matt @ matpac.co.uk ! For more information: Casio-Scene shuts down & Matt actions threads

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: Updating WZGUILib
« Reply #172 on: August 19, 2012, 05:09:35 pm »
You mean, something like this ? ;-)



I just created it for you :D


(edit : fixed a bug)
« Last Edit: August 19, 2012, 05:58:03 pm by adriweb »
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Updating WZGUILib
« Reply #173 on: August 19, 2012, 05:56:19 pm »
Yup, something like that. Please note though that using loadstring is slow.
It would be better to limit it to predefined input, will be much faster.
(Sorry for replying so late, was busy)

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: Updating WZGUILib
« Reply #174 on: August 19, 2012, 06:01:26 pm »
(I edited my post with a new version, the first had a bug)
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline jwalker

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 660
  • Rating: +13/-0
  • Almost everything I have released includes a 'WZ'
    • View Profile
Re: Updating WZGUILib
« Reply #175 on: August 19, 2012, 07:08:39 pm »
Thanks :)
I see how that works...
This may be an interesting project...
« Last Edit: August 19, 2012, 07:09:25 pm by jwalker »
<a href="http://www.nerdtests.com/ft_cg.php?im">
<img src="http://www.nerdtests.com/images/ft/cg.php?val=9612" alt="My computer geek score is greater than 41% of all people in the world! How do you compare? Click here to find out!"> </a>

Support Casio-Scene against the attacks of matt @ matpac.co.uk ! For more information: Casio-Scene shuts down & Matt actions threads

Offline jwalker

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 660
  • Rating: +13/-0
  • Almost everything I have released includes a 'WZ'
    • View Profile
Re: Updating WZGUILib
« Reply #176 on: August 20, 2012, 01:55:14 pm »
So here is where Im at, on using TI-Basic anyway...
Currently I allow it to create forms, make them go full screen, make them move and allow them to go from fullscreen back to normal.
But before I realy continue this Idea, I need to get an idea of what this could be used for...
<a href="http://www.nerdtests.com/ft_cg.php?im">
<img src="http://www.nerdtests.com/images/ft/cg.php?val=9612" alt="My computer geek score is greater than 41% of all people in the world! How do you compare? Click here to find out!"> </a>

Support Casio-Scene against the attacks of matt @ matpac.co.uk ! For more information: Casio-Scene shuts down & Matt actions threads

Offline jwalker

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 660
  • Rating: +13/-0
  • Almost everything I have released includes a 'WZ'
    • View Profile
Re: Updating WZGUILib
« Reply #177 on: August 21, 2012, 12:44:32 pm »
So today I realized that in about two months (the end of october) it will have been a year since I started Development on this project, and it has come a long way since then. :)
<a href="http://www.nerdtests.com/ft_cg.php?im">
<img src="http://www.nerdtests.com/images/ft/cg.php?val=9612" alt="My computer geek score is greater than 41% of all people in the world! How do you compare? Click here to find out!"> </a>

Support Casio-Scene against the attacks of matt @ matpac.co.uk ! For more information: Casio-Scene shuts down & Matt actions threads

Offline jwalker

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 660
  • Rating: +13/-0
  • Almost everything I have released includes a 'WZ'
    • View Profile
Re: Updating WZGUILib
« Reply #178 on: August 24, 2012, 08:09:10 pm »
I believe the bug when you resize the window is now squashed.
Here is the new versions of the file,
the .lua one is for 3.1, and the .tns is for 3.2.
This does not require the libs.
Also, does everyone think that the size of the text needs to be bigger, if so tell me.
The only reason I havent made it larger yet is because of space problems that I think exist.

Also if you do run the script there is a little utillity that tells you how much memory is being used by lua.

paramaters:
window = --dont need
form = x, y, width, height, fullscreen, title, titlecolor, bordercolor, isdrawn, contextmenu, cmtable, hassb, hasicon, iconimg, draggable
dialog = x, y, text, title, backcolor, titlecolor, bodytextcolor, isdrawn
button = text, x, y, action, txtcolor, bgcolor, parent
lable = x, y, text, txtsize, color, parent
textbox = x, y, width, text, textcolor, tbcolor, parent, selected
radioButton = text, x, y, marked, backcolor, markcolor, txtcolor, parent
contextm = --dont need
checkbox = x, y, text, checked, backcolor, checkcolor, textcolor, parent
pb = x, y, width, height, labeltbl, picturetable, txtcolor, index, lablename, parent, selected
NumericUD = x, y, num, linecolor, maxnum, minnumber, textcolor, pmbcolor, parent, selected
tabcontrol = x, y, width, height, tabtable, parent
listbox = x, y, tabval, selected, scrollbars, parent
toggle = x, y, state, parent
inputDialog = x, y, text, title, backcolor, titlecolor, bodytextcolor, isdrawn, btnAction
cant use: scrollbar, progressbar, statusbar


If there are any questions, please ask!
<a href="http://www.nerdtests.com/ft_cg.php?im">
<img src="http://www.nerdtests.com/images/ft/cg.php?val=9612" alt="My computer geek score is greater than 41% of all people in the world! How do you compare? Click here to find out!"> </a>

Support Casio-Scene against the attacks of matt @ matpac.co.uk ! For more information: Casio-Scene shuts down & Matt actions threads

Offline jwalker

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 660
  • Rating: +13/-0
  • Almost everything I have released includes a 'WZ'
    • View Profile
Re: Updating WZGUILib
« Reply #179 on: August 25, 2012, 04:07:39 pm »
Here is another update:
This version *should* be unicode compatible, I changed all of the string.sub's to string.usub, and I already used string.split.
This version also sees a change to buttons, they now send two arguments to the click callback function, the buttons handle and its parents handle.
I also added a form_name:removeControl function whos parameter is the controls handle.
All parameters are the same as the last release last night.
<a href="http://www.nerdtests.com/ft_cg.php?im">
<img src="http://www.nerdtests.com/images/ft/cg.php?val=9612" alt="My computer geek score is greater than 41% of all people in the world! How do you compare? Click here to find out!"> </a>

Support Casio-Scene against the attacks of matt @ matpac.co.uk ! For more information: Casio-Scene shuts down & Matt actions threads