Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - jwalker

Pages: 1 ... 14 15 [16] 17 18 ... 45
226
Lua / Re: Updating WZGUILib
« 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.

227
Casio PRIZM / Re: [Prizm] Introducing LuaZM
« on: August 18, 2012, 09:40:32 pm »
I think that classes use setmetatable...
I could be wrong though

228
Casio PRIZM / Re: [Prizm] Introducing LuaZM
« on: August 18, 2012, 01:42:36 am »
Nice, I will definately be watching this project closely.
This will definately help bring WZGULIB to prizm, at least make it easier.

Hmm, i wonder how hard it would be to port WZGUILIB to LuaFX...

My estimation... simple. But then again I created it so I know all of the underworkings. Basicly, It would be easiest to 1) implement classes (a must) 2)rewrite the drawing code to work on the specific platform(gc:drawRect() needs to become whatever draws a rectangle) 3) figure out how to make the interpreter use events/callbacks for all of the on. events. and 4) if no mouse, either create one or dont worry about it, I added functionality so you dont nessiceraly have to use a mouse anymore (can also use the enter key to do 'clicks')

I would also be willing to help port it.

EDIT: now that I thought about it... Im going to write a section into the new documentation that I will release with the new version that will talk about the above and how WZ works...

229
Casio PRIZM / Re: [Prizm] Introducing LuaZM
« on: August 17, 2012, 06:49:07 pm »
Nice, I will definately be watching this project closely.
This will definately help bring WZGULIB to prizm, at least make it easier.

230
Lua / Re: Updating WZGUILib
« on: August 17, 2012, 03:36:00 pm »
hmmmm, could you tell me how? This is pretty cool because I thought it was sandboxed

231
Lua / Re: Updating WZGUILib
« on: August 17, 2012, 03:13:04 pm »
Realy, was it through ndless though?

232
Other Calculators / Re: Project death prevention?
« on: August 17, 2012, 02:43:14 pm »
Funny thing is, coding always throws up crazy problems. I guess experience really helps there.

 
true, but finding out what is going wrong can be fun.
I dont know if it occurs often, but I think some poeple may get so frusterated with a project that they quit. In this case, take a break and come back with your mind refreshed, it definately helps. good planning also helps alot, I learned that the hard way.

233
Lua / Re: Updating WZGUILib
« on: August 17, 2012, 01:51:27 pm »
A function in tibasic can be called from this lib, but you cant call any of the functions nessecary, or even interact with lua, from a ti basic program. This is because they wanted lua to be 'sandboxed'.

For a Lua program, all you have to do is copy the portions from the lua file I release into another file, or make a copy of that lua file and rename it. Then you just create the objects. Notice that if an object is a button, then you have to create the function that it calls and tell it its name when you create it.
examle:
Code: [Select]
  --Do not wory about anything befor this point unless you are using Nspire OS 3.1 or earlier, if so change platform.apilevel to 1.0
  --this is where you create objects
  function on.construction()
   form1 = form(60, 60, 150, 100, false, "Title", color.white, color.black, true, false, mycont, true, true, Icon1, true)
    --code for any previous objects, Any form(s) should be created before add creating controls, as they will be the parent of the control
    button1 = button("BTN1", 4, 4, btnClick, color.black, color.buttoncontrol, form1)
  end

  function btnClick()
  --your code here
  end
you could also write your own controls, but that is advanced and I need to release a dev guid first... which is comming  :)

For C and ASM, I believe for OS 3.1 there are functions in Ndless that can interact with lua, but to what extent I realy dont know.

Also this is for both you CompSystems and everyone else:
Since the example I provided above uses my dev version of WZGUILIB, I am posting it below, Go ahead and test out the new features
Notice** when drag resizing Forms there is a bug that occurs when you go below a specific point, but I almost have it fixed, It shouldnt crash the script

Also this dosnt require any external data, it dosnt use it because I am deving the base Items

***********************How to use the arrow keys to move a form, what the tabKey does, and what backtabKey does******************

tabKey scrolls through the controls in form_name_here.controls, and gives them selected status. When it reaches the end of the list it unselects all controls and allows you to use the arrow keys to move the window. All controls should be surrounded by a dotted rectangle when selected except textboxes, whos carrot appears.
backtabKey scrolls throug the windows in wndTbl giving them the focused status

Arrow Keys will move the focused window 4 pixels in the direction that the arrowKey points.

As always if you need more examples or just need help, Ask me by posting here or you can also PM me.

Also the tns file is form 3.2 and the lua file is for 3.1, but all code except on.create/on.construction and platform.apilevel are the same.


ALSO here are the paramaters for the controls


--~    --params----------
--~       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
--~    --end params
paste this in where the current paramater list is

Also to resize forms by dragging, click the little box on the lower right hand corner and move the mouse

234
Lua / Re: Updating WZGUILib
« on: August 17, 2012, 11:34:58 am »
Yesterday I added using backtabKey to switch between windows, like how tab switches between controls.
I also made windows drag resizeable, and have it almost bug free.

235
Ndless / Re: General Ndless Questions and Support
« on: August 16, 2012, 12:54:20 pm »
same, I like playing doom when I get bored in school...

236
Lua / Re: Updating WZGUILib
« on: August 16, 2012, 10:45:00 am »
So yesterday I implemented bieng able to switch between controls using the tab key, and the ability to move a window with the arrow keys

237
Lua / Re: Updating WZGUILib
« on: August 15, 2012, 07:45:34 pm »
thanks :)

238
Lua / Re: Updating WZGUILib
« on: August 15, 2012, 10:34:09 am »
So I posted a picture of some of the new functionality of WZ, note this isnt the new tech I talked about....

currently tabcontrols dont follow the rules, but that wont be hard to fix
The input dialog is new, I havnt completed it yet.
also the forms use clipRect, as the pictureboxes lable says l1

The new functionality came because I made a control class to handle things like checkClick, so for some of the controls it shows that it was selected by drawing a dashed rectangle arround it, and it will remain until the user clicks another control

239
Lua / Re: Updating WZGUILib
« on: August 13, 2012, 10:34:05 pm »
First preliminary tests of gc:clipRect look great.
Second I will also start planning another new 'technology' that WZ will possibly use in the future if it works out... I will keep you posted

240
Lua / Re: Updating WZGUILib
« on: August 12, 2012, 05:25:01 pm »
thanks jim, that should help out alot.
Also as I said I would do, Dialogs now act almost exactly like forms... it even inherits from window :)
Dialogs still look like they used too, but they dont always stay on the top of the other windows/dialogs.
I also updated the color table so that it now includes almost all real color names, not made up ones.
I will post the new dev version soon, after I test it quit a bit more.
Also I noticed in 3.2 that how strings are drawn on the computer are drawn diffrently on the handheld... thanks TI  :banghead:

Pages: 1 ... 14 15 [16] 17 18 ... 45