It is currently Sun Jan 24, 2021 12:25 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 87 posts ]  Go to page 1, 2, 3, 4, 5, 6  Next
Author Message
 Post subject: InfoSkin1.0 - OpenSource Theme Engine for PB4
PostPosted: Wed May 10, 2006 3:11 pm 
Offline
PureBasic Fanatic
PureBasic Fanatic

Joined: Fri Dec 09, 2005 12:15 pm
Posts: 2236
Location: Elbonia
InfoSkin is a small and fast skin engine for your PureBasic4 applications. I decided to release it under LGPL license so all coders can contribute to make it better. If you have ideas, suggestions, etc, download a copy and modify it then feel free to post the source code here if you want. I am still a noob and I don't know if I can add too many gadgets without your help... If you use it, credits would be cool, but you're not forced to do that.

Special thanks to Netmaestro for helping me with the transparent image drawing and thefool for the example tweak.

The download package contains the include file, a simple example and a region maker to skin your windows. Hope you like it. Current supported gadgets are buttons, checkboxes and progressbars.

Download
Size: 23.9 KB
MD5: BBEC4BE41059A72511C81628E3799F08
http://www.bytessence.com/download/temp/InfoSkin.zip


[Update 1]

Fixed the event handling bug.

[Update 2]

Now it uses Linked lists to minimize the memory consumption (Thx Konne).
Added new ProgressBar infogadget and manipulation functions.
Updated the example.

[Update 3]

Found and fixed a bug in the InfoSkinSetProgressBarState() wich was consuming memory [!] Please download it again if you are using it [!]
Updated the example (thanks thefool)

_________________
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)


Last edited by Inf0Byt3 on Sat Feb 13, 2010 1:08 pm, edited 6 times in total.

Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed May 10, 2006 5:25 pm 
Offline
Always Here
Always Here
User avatar

Joined: Sat Aug 30, 2003 5:58 pm
Posts: 5883
Location: Denmark
Looks cool!!


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed May 10, 2006 5:42 pm 
Offline
Addict
Addict
User avatar

Joined: Mon Sep 20, 2004 3:52 pm
Posts: 1648
Cool. I don't typically us this kind of stuff but it looks great for people who do.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed May 10, 2006 5:46 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Sep 24, 2005 2:08 pm
Posts: 997
Found a bug :shock:

Open up the example, then click somewhere in the example window (but not in the title bar) after that, move the mouse over the check box, and it will get checked even if you don't click on it.

It's still very nice though.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed May 10, 2006 5:58 pm 
Offline
Addict
Addict

Joined: Wed Aug 24, 2005 8:39 am
Posts: 2736
Location: Southwest OH - USA
Pretty slick.

Thanks for sharing.

cheers


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed May 10, 2006 6:10 pm 
Offline
PureBasic Expert
PureBasic Expert

Joined: Wed Oct 29, 2003 4:35 pm
Posts: 10589
Location: Beyond the pale...
Confirmed the bug reported by joshku_x. Similar behaviour for the button as well!

_________________
I may look like a mule, but I'm not a complete ass.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed May 10, 2006 6:29 pm 
Offline
PureBasic Fanatic
PureBasic Fanatic

Joined: Fri Dec 09, 2005 12:15 pm
Posts: 2236
Location: Elbonia
Thanks for the feedback :). I'm looking forward to transform this to fit our 'modernism' needs. I'm glad you like it.

About the bug, i'll fix it as soon as I get home :). Thanks.

[Edit]
Yes, that's right, it's a bug in the event handling procedure. This should be simple to fix... (i hope).

_________________
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed May 10, 2006 8:46 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Thu May 12, 2005 9:15 pm
Posts: 434
Dim InfoSkinGadgets.InfoGadget(99999)

This is pretty bad u should use liked lists.

_________________
Apart from that Mrs Lincoln, how was the show?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed May 10, 2006 9:06 pm 
Offline
PureBasic Fanatic
PureBasic Fanatic

Joined: Fri Dec 09, 2005 12:15 pm
Posts: 2236
Location: Elbonia
Oops! Ok, i'm gonna change that :)

_________________
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu May 11, 2006 6:15 am 
Offline
Enthusiast
Enthusiast

Joined: Thu Feb 16, 2006 1:41 am
Posts: 180
Location: New Zealand
rsts wrote:
Pretty slick.

Thanks for sharing.

cheers


Yes, very slick. Thanks Inf0Byt3.

Is this Win2K/WinXP only, with the translucency?

_________________
Win8.1, PB5.x, okayish CPU, onboard video card, fuzzy monitor (or is that my eyesight?)
"When the facts change, I change my mind" - John Maynard Keynes


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu May 11, 2006 11:20 am 
Offline
PureBasic Fanatic
PureBasic Fanatic

Joined: Fri Dec 09, 2005 12:15 pm
Posts: 2236
Location: Elbonia
Unfortunately yes, the transparency works only under a 2K/XP machine. Any ideas how to make this work for w98 too?

_________________
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu May 11, 2006 1:53 pm 
Offline
Enthusiast
Enthusiast

Joined: Thu Feb 16, 2006 1:41 am
Posts: 180
Location: New Zealand
Inf0Byt3 wrote:
Any ideas how to make this work for w98 too?


At the risk of being laughed off the board, I'd hazard a guess you'd need to create your own gadgets and/or subclass the existing ones :?:

_________________
Win8.1, PB5.x, okayish CPU, onboard video card, fuzzy monitor (or is that my eyesight?)
"When the facts change, I change my mind" - John Maynard Keynes


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu May 11, 2006 2:05 pm 
Offline
PureBasic Fanatic
PureBasic Fanatic

Joined: Fri Dec 09, 2005 12:15 pm
Posts: 2236
Location: Elbonia
That's true, but this are really custom gadgets... It's a bit hard to accomplish that i think. BTW, I updated the code. I fixed that darn bug in it but took me 2 hours to find it. Guess what: It wasn't my code who made that error it was this line:

Code:
 IF GetAsyncKeyState_(#VK_LBUTTON+GetSystemMetrics_(#SM_SWAPBUTTON))

It was returning 'pressed' even if you clicked outside a infogadget. Anyway, now I replaced it with this:
Code:
If GetAsyncKeyState_(#VK_LBUTTON) = -32767


And it works perfectly. Any new gadget ideas are welcome and thanks for the feedback :). Check the main post for the link.

_________________
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu May 11, 2006 3:19 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Sep 24, 2005 2:08 pm
Posts: 997
Works like a charm, thanks for sharing. BTW, try to make a custom listview infogadget. After that you can do a combobox as it's easy to do if you have the sources of a listview.. after that add some more complex things and you have a treeview infogadget.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu May 11, 2006 3:57 pm 
Offline
PureBasic Fanatic
PureBasic Fanatic

Joined: Fri Dec 09, 2005 12:15 pm
Posts: 2236
Location: Elbonia
Thanks.
Remember we wanted to build something like this some time ago? Let's improve this one, add new gadgets, etc. What do you say?

_________________
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 87 posts ]  Go to page 1, 2, 3, 4, 5, 6  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 12 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye