It is currently Tue Feb 09, 2010 12:22 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 440 posts ]  Go to page 1, 2, 3, 4, 5 ... 30  Next
Author Message
 Post subject: PureCOLOR library : coloring gadgets (and much more)
PostPosted: Mon Oct 25, 2004 7:30 am 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 3581
Location: Strasbourg / France
PureCOLOR library V14.08 (JAN 28th 2010)

Purpose
Code:
Coloring gadgets as simply as possible, and some other nice coloring functions, like ownerdrawn icon menus.

Note for the PB 4.xx versions ; some PureCOLOR features now exist as native Purebasic 4.xx functions.
I recommend using the genuine PB functions whenever it's possible.


Functions
PB3.94 : http://freenet-homepage.de/gnozal/PureCOLOR.htm
PB4.xx : http://freenet-homepage.de/gnozal/PureCOLOR_.htm

Download
v14.05
PB3.94 : http://freenet-homepage.de/gnozal/PureCOLOR.zip
PB4.0x : http://freenet-homepage.de/gnozal/PureCOLOR_.zip
PB4.1x : http://freenet-homepage.de/gnozal/PureCOLOR__.zip
PB4.2x : http://freenet-homepage.de/gnozal/PureCOLOR___.zip
PB4.3x : http://freenet-homepage.de/gnozal/PureCOLOR_430.zip
v14.08
PB4.4x : http://freenet-homepage.de/gnozal/PureCOLOR_440.zip

ImageImage
ImageColored menu example (XP style) on Win NT4

Other libs and tools at http://freenet-homepage.de/gnozal


Last edited by gnozal on Tue Aug 18, 2009 11:49 am, edited 77 times in total.

Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 25, 2004 7:32 am 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 3581
Location: Strasbourg / France
It's a beta version, it works with some gadgets like String/Text/Option... and not with others like Button. But it's a start !


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 25, 2004 3:24 pm 
Offline
Addict
Addict
User avatar

Joined: Mon Jun 02, 2003 9:16 am
Posts: 1336
Location: Germany
8) cool, but someone was faster: http://purebasic.hmt-forum.com/viewtopic.php?t=647

_________________
bye,
Daniel

http://www.bradan.eu/


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 26, 2004 7:32 am 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 3581
Location: Strasbourg / France
Now works with Purebasic 3.92 final


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 27, 2004 2:13 pm 
Offline
Enthusiast
Enthusiast

Joined: Fri Apr 25, 2003 11:08 pm
Posts: 348
@gnozal,

Nice!
It works well, except when Windows XP theme support is enabled. :cry:

When you type into a string gadget, the letters are "fuzzy" and get overwritten, and the backspace key doesn't work properly.

Is there anything you can do to fix this?

Regards,
Eric


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 27, 2004 2:41 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 3581
Location: Strasbourg / France
I don't have WinXP, my old Win98SE still rocks 8)
Sorry


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 27, 2004 2:45 pm 
Offline
Moderator
Moderator
User avatar

Joined: Sat Apr 26, 2003 1:11 am
Posts: 1044
gnozal wrote:
I don't have WinXP, my old Win98SE still rocks 8)
Sorry

lol

_________________
Debug PeekS(PeekL(*Names+k*4) +*DosHeader)
"for emergency call " 0118 999 881 999 119 725 3


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 27, 2004 2:49 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Apr 25, 2003 5:10 pm
Posts: 372
Location: France (Doubs)
ebs wrote:
It works well, except when Windows XP theme support is enabled. :cry:
Eric


Hi ebs,

i've written some month ago a lib to put color for some gadgets (not putting on english forum);

According MS doc, its not possible to put colors when XP style are on (except for Fram3DGadget and only for background color if i remeber, may be for another window ?).

To put color with the color events, you have first to remove XP style from the gadget but unfortunatly, the gadget will have the "old style" ie not XP.

Thats why it's not possible to put colors for progressbargadget with XP style.

I thing i've already put a piece of code on english forum to remove XP style (not difficult, only done according MS doc).

_________________
A+
Denis


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 27, 2004 3:09 pm 
Offline
Enthusiast
Enthusiast

Joined: Fri Apr 25, 2003 11:08 pm
Posts: 348
Denis,
Quote:
According MS doc, its not possible to put colors when XP style are on...

Yes, that's what I thought. I used your ProgressBar and Color libraries a while ago. They work great when XP themes are off.

Quote:
I thing i've already put a piece of code on english forum to remove XP style...

I tried searching for this on the forum, but I couldn't find it. Would you mind re-posting it, please?

Regards,
Eric


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 27, 2004 6:34 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Apr 25, 2003 5:10 pm
Posts: 372
Location: France (Doubs)
I use this way in my libs Morlisticongadget (for Header column button) and in Moreprogressbargadget

Try this Ebs

Code:
Enumeration
  #Window
  #ProgressBar1
  #OptionGadget1
  #OptionGadget2
  #UxTheme_dll
EndEnumeration

If OpenWindow(Window, 300, 500, 360, 150, #PB_Window_SystemMenu | #PB_Window_ScreenCentered, "  XP Styles or Not")
 
  If CreateGadgetList(WindowID())
    ProgressBarGadget(#ProgressBar1, 50, 60, 99, 11, 0, 700)
    OptionGadget(#OptionGadget1, 30, 15, 200, 18, "Try with XP style")
    OptionGadget(#OptionGadget2, 30, 95, 200, 18, "Try without XP style")

     Result = OpenLibrary(#UxTheme_dll,"UxTheme.dll")
     If Result
       ; here is the code to remove XP style
        CallFunction(#UxTheme_dll, "SetWindowTheme",GadgetID(#ProgressBar1) , "", "")
        CallFunction(#UxTheme_dll, "SetWindowTheme",GadgetID(#OptionGadget2) , "", "")
        CloseLibrary(#UxTheme_dll)
     EndIf
     
    UpdateWindow_(WindowID())
     For i.w = 1 To 700
       SetGadgetState(#ProgressBar1, i)
         Delay(1)
     Next i
   
    Repeat
    Until WaitWindowEvent() = #PB_EventCloseWindow
   
  EndIf
EndIf
End

_________________
A+
Denis


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 27, 2004 8:27 pm 
Offline
PureBasic Expert
PureBasic Expert

Joined: Fri Apr 25, 2003 5:24 pm
Posts: 6240
> i've written some month ago a lib to put color for some gadgets (not putting on english forum)

Why didn't you announce it here on the English forums? :(


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 27, 2004 8:29 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Apr 25, 2003 5:10 pm
Posts: 372
Location: France (Doubs)
Because i didn't done documentation, and it's not working as well as i want. And i 've not enough time to work on it much more

_________________
A+
Denis


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 27, 2004 10:56 am 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 3581
Location: Strasbourg / France
Library UPDATE

See first post of thread.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 13, 2004 8:36 am 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 3581
Location: Strasbourg / France
PureCOLOR library update

- some fixes (colored buttons)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 13, 2004 10:45 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Apr 10, 2004 1:20 pm
Posts: 808
Location: Germany
@gnozal

Hi,

i´m very interested in the source code of the colored buttons you created for your lib :D
could you pleaseeeeee post it :wink:

thx in advance and good work


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 440 posts ]  Go to page 1, 2, 3, 4, 5 ... 30  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 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