Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
21 May, 2013, 19:38:18 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: 1 ... 3 4 [5] 6 7 ... 21   Go Down
  Print  
Author Topic: Updating WZGUILib - Updating would like input  (Read 11700 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
jwalker
LV7 Elite (Next: 700)
*******
Offline Offline

Gender: Male
Last Login: Today at 18:54:31
Date Registered: 20 December, 2011, 00:20:52
Location: its cold outside
Posts: 600


Topic starter
Total Post Ratings: +10

View Profile
« Reply #60 on: 07 April, 2012, 20:49:31 »
0

wow, its been a while.
any way this is the place where i release my information so here is some information:
In V3 there will be a tabcontrol, yes a tabcontrol. here is an image of it in development.

Also if you have any questions or comments post them here




* SCREEN_OF_TABCON.jpg (12.86 KB, 480x360 - viewed 140 times.)
Logged


My computer geek score is greater than 41% of all people in the world! How do you compare? Click here to find out!


Support Casio-Scene against the attacks of matt @ matpac.co.uk ! For more information: Casio-Scene shuts down & Matt actions threads
Nick
LV9 Veteran (Next: 1337)
*********
Offline Offline

Gender: Male
Last Login: Yesterday at 20:44:19
Date Registered: 05 June, 2011, 20:01:07
Location: 51° 12′ 34″ N, 3° 13′ 31″ E
Posts: 1178


Total Post Ratings: +158

View Profile WWW
« Reply #61 on: 07 April, 2012, 20:52:55 »
0

wow ö that's really nice.. so you can click on them with the mouse? great Smiley maybe you could give it a slightly different color and a little more alignement so it does not stick to the borders, but this is cool

if you would want me to help with some of the design or different styles, i would be glad to help you with this Smiley
« Last Edit: 07 April, 2012, 20:55:55 by Nick » Logged

jwalker
LV7 Elite (Next: 700)
*******
Offline Offline

Gender: Male
Last Login: Today at 18:54:31
Date Registered: 20 December, 2011, 00:20:52
Location: its cold outside
Posts: 600


Topic starter
Total Post Ratings: +10

View Profile
« Reply #62 on: 07 April, 2012, 21:03:13 »
0

that would be great...
it isnt clickable yet due to the fact i just started about 30 min. ago and was just working on drawing it out
here is the current code for the tabcontrol and the table that is used to make the tabs
like i said it is in the very beginning stages and it will change alot befor i release v3

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
tabcontrol = class()

function tabcontrol:init(x, y, width, height, tabcpntr, parent)
self.x = x + parent.x
self.y = y + parent.y
self.xoff = x
self.yoff = y
self.width = width
self.height = height
self.parent = parent
self.controls = {}
self.tabcollection = tabcpntr
self.curtab = startingtab
self.tabcount = table.maxn(self.tabcollection)
table.insert(parent.controls, self)
end
function tabcontrol:paint(gc)
stroff = gc:getStringWidth("SOF") - 6
gc:setColorRGB(unpack(color.white))
gc:fillRect(self.x, self.y, self.width, self.height)
gc:setColorRGB(unpack(color.black))
gc:drawRect(self.x, self.y, self.width, self.height)
gc:drawRect(self.x, self.y - stroff, self.width, stroff)
gc:setFont("sansserif", "r", 6)
local y = self.y - 8
local x = self.x + 2
for _, bb in pairs(self.tabcollection) do
bb.x = x
bb.y = y
bb.width = gc:getStringWidth(bb.text)
bb.height = gc:getStringHeight(bb.text)
if bb.selected then
gc:setColorRGB(unpack(color.Bdark))
gc:fillRect(bb.x - 2, bb.y - 2, bb.width + 2, bb. height - 4)
gc:setColorRGB(unpack(color.black))
end
gc:drawRect(bb.x - 2, bb.y - 2, bb.width + 2, bb.height - 4)
gc:drawString(bb.text, x, y, "middle")
x = x + 5 + bb.width
end

end

function tabcontrol:checkClick(x, y)

end

function tabcontrol:clicked(x, y)

end
function tabcontrol:getCurTab()
for _, tabs in pairs(self.tabcollection) do
if tabs.selected then
return tabs
end
end
end

Table:

1
2
3
4
Tabs = {tab4 = {text = "Tab3", selected = false},
tab2 = {text = "Tab1", selected = true},
tab3 = {text = "Tab2", selected = false},
tab1 = {text = "Tab4", selected = false}}


also about the styles...
i will be working on making a 3D style pack for release with V3, but only once i get the last bug eraticated from the form class
Logged


My computer geek score is greater than 41% of all people in the world! How do you compare? Click here to find out!


Support Casio-Scene against the attacks of matt @ matpac.co.uk ! For more information: Casio-Scene shuts down & Matt actions threads
Nick
LV9 Veteran (Next: 1337)
*********
Offline Offline

Gender: Male
Last Login: Yesterday at 20:44:19
Date Registered: 05 June, 2011, 20:01:07
Location: 51° 12′ 34″ N, 3° 13′ 31″ E
Posts: 1178


Total Post Ratings: +158

View Profile WWW
« Reply #63 on: 07 April, 2012, 21:04:44 »
0

I'll check it out in a while (this evening).

what do you mean with 3D? with gradients and stuff?

Oh and there's one thing i've seen on some places, what's that "for __," part? i mean, what does that __ sign to?
« Last Edit: 07 April, 2012, 21:05:41 by Nick » Logged

jwalker
LV7 Elite (Next: 700)
*******
Offline Offline

Gender: Male
Last Login: Today at 18:54:31
Date Registered: 20 December, 2011, 00:20:52
Location: its cold outside
Posts: 600


Topic starter
Total Post Ratings: +10

View Profile
« Reply #64 on: 07 April, 2012, 21:24:42 »
0

ive never been realy able to figure it out what the _ sign does, i know my code loops through a table and uses values in them, i also know that it doesnt seem to want to go in order, if you knoticed my code for the tab table where tab1 is assigned the text "tab4". ive tried googleing it but without much luck

its just a false 3D, drawn with lines
if you have V2 in the buttons there is an opt3D paramater, it will be removed in 3 so poeple will be able to use a style pack
also go to cemetech to get the newest version, which is v2.1 beta
Logged


My computer geek score is greater than 41% of all people in the world! How do you compare? Click here to find out!


Support Casio-Scene against the attacks of matt @ matpac.co.uk ! For more information: Casio-Scene shuts down & Matt actions threads
Nick
LV9 Veteran (Next: 1337)
*********
Offline Offline

Gender: Male
Last Login: Yesterday at 20:44:19
Date Registered: 05 June, 2011, 20:01:07
Location: 51° 12′ 34″ N, 3° 13′ 31″ E
Posts: 1178


Total Post Ratings: +158

View Profile WWW
« Reply #65 on: 07 April, 2012, 21:37:34 »
0

I'm going to design a style that fits the nspire, isn't hard to port (without a lot of gradients) and a nice look ok? but just in photoshop, then you just have to tell me how to write it to your needs or do it yourself.

Also, i noticed that boxes are only activated when you select them by pressing the titlebar. Couldn't you change that somehow so that it gets selected by pressing the entire form?
Logged

jwalker
LV7 Elite (Next: 700)
*******
Offline Offline

Gender: Male
Last Login: Today at 18:54:31
Date Registered: 20 December, 2011, 00:20:52
Location: its cold outside
Posts: 600


Topic starter
Total Post Ratings: +10

View Profile
« Reply #66 on: 07 April, 2012, 23:07:07 »
0

i am planning to work on that to make the form active,
and sounds great, just post it here
Logged


My computer geek score is greater than 41% of all people in the world! How do you compare? Click here to find out!


Support Casio-Scene against the attacks of matt @ matpac.co.uk ! For more information: Casio-Scene shuts down & Matt actions threads
hoffa
LV6 Super Member (Next: 500)
******
Offline Offline

Gender: Male
Last Login: Today at 12:45:43
Date Registered: 28 May, 2011, 20:26:32
Posts: 302


Total Post Ratings: +115

View Profile
« Reply #67 on: 07 April, 2012, 23:14:18 »
0

Oh and there's one thing i've seen on some places, what's that "for __," part? i mean, what does that __ sign to?
It's a convention (used in Python among others), it's no special character. Usually if we don't care about the variable we're looping with, it's better just to use "_" to explicitly show it's not important.
Logged
jwalker
LV7 Elite (Next: 700)
*******
Offline Offline

Gender: Male
Last Login: Today at 18:54:31
Date Registered: 20 December, 2011, 00:20:52
Location: its cold outside
Posts: 600


Topic starter
Total Post Ratings: +10

View Profile
« Reply #68 on: 08 April, 2012, 00:19:19 »
0

that makes sence....
also tabs are clickable and can hold controls of their own

here are some pics:


* 04-07-2012 Image002.jpg (15.69 KB, 480x360 - viewed 117 times.)

* 04-07-2012 Image003.jpg (15.32 KB, 480x360 - viewed 117 times.)

* 04-07-2012 Image004.jpg (15.16 KB, 480x360 - viewed 213 times.)

* 04-07-2012 Image005.jpg (14.76 KB, 480x360 - viewed 119 times.)
« Last Edit: 08 April, 2012, 00:33:02 by jwalker » Logged


My computer geek score is greater than 41% of all people in the world! How do you compare? Click here to find out!


Support Casio-Scene against the attacks of matt @ matpac.co.uk ! For more information: Casio-Scene shuts down & Matt actions threads
Nick
LV9 Veteran (Next: 1337)
*********
Offline Offline

Gender: Male
Last Login: Yesterday at 20:44:19
Date Registered: 05 June, 2011, 20:01:07
Location: 51° 12′ 34″ N, 3° 13′ 31″ E
Posts: 1178


Total Post Ratings: +158

View Profile WWW
« Reply #69 on: 08 April, 2012, 08:45:40 »
0

wonderful! and there's one other thing. If you have a long title (or a short titlebar), and the title comes further than the red/green buttons, will it be covered by them or will they cover the buttons? or is there just enough space to make it all fit?
Logged

jwalker
LV7 Elite (Next: 700)
*******
Offline Offline

Gender: Male
Last Login: Today at 18:54:31
Date Registered: 20 December, 2011, 00:20:52
Location: its cold outside
Posts: 600


Topic starter
Total Post Ratings: +10

View Profile
« Reply #70 on: 08 April, 2012, 15:36:14 »
0

that is something i have been meaning to work on, but since you cant drag windows to make them bigger or smaller, i havnt implemented it, it has been up to the programmer to make sure thier title is the right size. what this would do is determine if the maximize/minimize button is too close to the title, the title would display less charachters with a ".." after it.
Also i fixed the Fullscreen patamater bug and i made the windows clickable in other places than the title bar to activate them. you can only move a window by clicking the title bar.
The file i uploaded is what ive been testing 3d object creation and right now only buttons and textboxes have a "3D" look.

this includes all of the new features i listed above

* WZCPACK_3D.lua (32 KB - downloaded 10 times.)
« Last Edit: 08 April, 2012, 16:38:04 by jwalker » Logged


My computer geek score is greater than 41% of all people in the world! How do you compare? Click here to find out!


Support Casio-Scene against the attacks of matt @ matpac.co.uk ! For more information: Casio-Scene shuts down & Matt actions threads
jwalker
LV7 Elite (Next: 700)
*******
Offline Offline

Gender: Male
Last Login: Today at 18:54:31
Date Registered: 20 December, 2011, 00:20:52
Location: its cold outside
Posts: 600


Topic starter
Total Post Ratings: +10

View Profile
« Reply #71 on: 09 April, 2012, 04:59:02 »
0

even though this is double posting.... its been quite a while sooooo

V2.1 is now released, it has to be approved on Ti-Calc and Omnimaga and Cemetech, also i noticed a v1 version on Ti-Planet that needs to be updated so, if you are like an admin on Ti-Planet, or the person who uploaded it would you please update it, i would but i didnt upload it so i dont think i can. The only reason im asking is that this is a MAJOR upgrade from v1. also in v2.1 i fixed the fullscreen patamater issue and also have made the body of the form clickable so you can activate it without clicking the titlebar

also ive included tabcontrol beta

also unicode support and listboxes, which i worked on today, will be released in V3
V3 will be released AFTER the new OS update. I will release 2 versions, one for 3.1 and one for 3.2, due to the fact many probably wont upgrade to 3.2 so we can have ndless
Logged


My computer geek score is greater than 41% of all people in the world! How do you compare? Click here to find out!


Support Casio-Scene against the attacks of matt @ matpac.co.uk ! For more information: Casio-Scene shuts down & Matt actions threads
adriweb
Editor
LV9 Veteran (Next: 1337)
*
Offline Offline

Gender: Male
Last Login: Yesterday at 00:38:33
Date Registered: 13 April, 2011, 18:42:59
Location: South of France
Posts: 1196


Total Post Ratings: +185

View Profile WWW
« Reply #72 on: 09 April, 2012, 11:04:38 »
0

Let me change the direct download link on TI-Planet from a hosted file to the download page here on Omni so it will always be updated ;-)
( nice update btw ! )
« Last Edit: 09 April, 2012, 11:05:04 by adriweb » Logged


TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation
jwalker
LV7 Elite (Next: 700)
*******
Offline Offline

Gender: Male
Last Login: Today at 18:54:31
Date Registered: 20 December, 2011, 00:20:52
Location: its cold outside
Posts: 600


Topic starter
Total Post Ratings: +10

View Profile
« Reply #73 on: 09 April, 2012, 15:42:48 »
0

Thanks, i think i finaly have a realy good Version.
I think i finaly have it bug free too

Also if you need more info, just ask

Also i have been requested to seperate the controls into seperate files, so i did, also i plan to write a "Programming with WZ" thing soon

* WZGUILIB_CONTROLS.zip (10.81 KB - downloaded 10 times.)
« Last Edit: 09 April, 2012, 15:49:53 by jwalker » Logged


My computer geek score is greater than 41% of all people in the world! How do you compare? Click here to find out!


Support Casio-Scene against the attacks of matt @ matpac.co.uk ! For more information: Casio-Scene shuts down & Matt actions threads
jwalker
LV7 Elite (Next: 700)
*******
Offline Offline

Gender: Male
Last Login: Today at 18:54:31
Date Registered: 20 December, 2011, 00:20:52
Location: its cold outside
Posts: 600


Topic starter
Total Post Ratings: +10

View Profile
« Reply #74 on: 11 April, 2012, 13:20:07 »
0

Well, since it has been out for a while... Is there any comments, any ideas, any controls you would like to see?
Logged


My computer geek score is greater than 41% of all people in the world! How do you compare? Click here to find out!


Support Casio-Scene against the attacks of matt @ matpac.co.uk ! For more information: Casio-Scene shuts down & Matt actions threads
Pages: 1 ... 3 4 [5] 6 7 ... 21   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.3 seconds with 30 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.