PureCOLOR library : coloring gadgets (and much more)

All PureFORM, JaPBe, Libs and useful code maintained by gnozal

Moderator: gnozal

User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

What 3 ?
I only see one wingding.ttf [WinNT4 / Win98SE]
I guess that answers the question! ;)

I get wingding.ttf, wingdng2.ttf and wingdng3.ttf on WinXP SP2

-Anthony
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

DoubleDutch wrote:I get wingding.ttf, wingdng2.ttf and wingdng3.ttf on WinXP SP2
I guess the only 'special' fonts present in all windows versions are wingding.ttf and symbol.ttf
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

Forgot about symbol, thanks.

I'm going to use wingding 78 in my registration system if people are using a cracked version of my programs!
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Post by rsts »

Looks like this lib needs some "converting" for pb4?

Usually, you're way ahead of the rest of us :)

cheers,
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Of course, all my libs will be converted to PB4.00 (I am already converting them).
I am just waiting for PB4.00 final and the new Tailbite version. Maybe I release some betas.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

The GadgetType function will make your life easier, no ?

Code: Select all

For i=0 To #gMax-1
  If IsGadget(i)
    Select GadgetType(i)
      Case #PB_GadgetType_Button:        
      Case #PB_GadgetType_Calendar:      
      Case #PB_GadgetType_CheckBox:      
      Case #PB_GadgetType_ComboBox:      
      Case #PB_GadgetType_Container :    
      Case #PB_GadgetType_Date:          
      Case #PB_GadgetType_Editor:        
      Case #PB_GadgetType_ExplorerList:  
      Case #PB_GadgetType_ExplorerTree:  
      Case #PB_GadgetType_ExplorerCombo: 
      Case #PB_GadgetType_Frame3D:       
      Case #PB_GadgetType_HyperLink:     
      Case #PB_GadgetType_Image:         
      Case #PB_GadgetType_IPAddress:     
      Case #PB_GadgetType_ListIcon:      
      Case #PB_GadgetType_ListView:      
      Case #PB_GadgetType_MDI:           
      Case #PB_GadgetType_Option:        
      Case #PB_GadgetType_Panel:         
      Case #PB_GadgetType_ProgressBar:   
      Case #PB_GadgetType_ScrollArea:    
      Case #PB_GadgetType_ScrollBar:     
      Case #PB_GadgetType_Spin:          
      Case #PB_GadgetType_Splitter:      
      Case #PB_GadgetType_String:        
      Case #PB_GadgetType_Text:          
      Case #PB_GadgetType_TrackBar:      
      Case #PB_GadgetType_Tree:          
      Case #PB_GadgetType_Web:           
      Default
    EndSelect
  EndIf
Next
PureCOLOR should be still alive for gadgets that are not currently supporting colors in PB4.
For example, IMHO, you can let PB4 to color the StringGadget but color by yourself the ButtonGadget...
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Flype wrote:The GadgetType function will make your life easier, no ?
I was already using the window class, I am not sure I will change this. But yes, it would have been much easier !
Flype wrote:PureCOLOR should be still alive for gadgets that are not currently supporting colors in PB4.
PureCOLOR will rise again :wink:
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

Im glad PureColor supports Checkbox! The problem is the PureColor library for PB4 takes me to a german page but no download?

http://people.freenet.de/gnozal/PureCOLOR%21.zip <- I found this url on your page under the Purebasic 4.00 Libraries section

I grabbed the above url from your website. However, the url in your first post found @ http://people.freenet.de/gnozal/PureCOLOR.zip works perfectly :)

However, when trying to use that library in that link in PB4, I get a library missing error: Menu Extension.
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Shannara wrote:Im glad PureColor supports Checkbox! The problem is the PureColor library for PB4 takes me to a german page but no download?

http://people.freenet.de/gnozal/PureCOLOR%21.zip <- I found this url on your page under the Purebasic 4.00 Libraries section

I grabbed the above url from your website. However, the url in your first post found @ http://people.freenet.de/gnozal/PureCOLOR.zip works perfectly :)

However, when trying to use that library in that link in PB4, I get a library missing error: Menu Extension.
I am waiting for PB4 final and Tailbite 4 final to update all my libs for PB4 (only broken links for the moment).
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

Ah, sounds cool. I to am waiting for Tailbite final and pb 4 final.
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Update (PB 3.94)

Changes :
- new function PureCOLOR_EventMenuID() (see help)
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Pantcho!!
Enthusiast
Enthusiast
Posts: 538
Joined: Tue Feb 24, 2004 3:43 am
Location: Israel
Contact:

Post by Pantcho!! »

Hi,
Any chance on changing the ListIconGadget Grid Color?, it is always grey.

thanks.
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Pantcho!! wrote:Hi,
Any chance on changing the ListIconGadget Grid Color?, it is always grey.
thanks.
Hmm, I don't know if this is possible without doing owner draw ?!
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Pantcho!!
Enthusiast
Enthusiast
Posts: 538
Joined: Tue Feb 24, 2004 3:43 am
Location: Israel
Contact:

Post by Pantcho!! »

what is an owner draw? :?
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Pantcho!! wrote:what is an owner draw? :?
I mean drawing all the stuff by yourself ... instead of only telling windows what color it should use.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Post Reply