It is currently Fri May 24, 2013 9:59 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 510 posts ]  Go to page Previous  1 ... 27, 28, 29, 30, 31, 32, 33, 34  Next
Author Message
 Post subject: Re: PureCOLOR library : coloring gadgets (and much more)
PostPosted: Thu Jan 21, 2010 9:17 am 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4231
Location: Strasbourg / France
kurzer wrote:
I found a strange bug using PureColor and font-enabling for gadgets.

No problem with PB4.3x, so I assume it's related to the new 2DDrawing library.
I'm on it.

_________________
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).


Top
 Profile  
 
 Post subject: Re: PureCOLOR library : coloring gadgets (and much more)
PostPosted: Thu Jan 21, 2010 10:02 am 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4231
Location: Strasbourg / France
Update v14.07 (PB4.40 version)

Changes :
- this build should fix the multiline button issue posted by kurzer

_________________
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).


Top
 Profile  
 
 Post subject: Re: PureCOLOR library : coloring gadgets (and much more)
PostPosted: Thu Jan 21, 2010 10:36 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Jun 11, 2006 12:07 am
Posts: 227
Location: I live in "Bratwurst" land ;-)
Incredibly support! Thank you very much.
It works perfectly now.

_________________
Image


Top
 Profile  
 
 Post subject: Re: PureCOLOR library : coloring gadgets (and much more)
PostPosted: Wed Jan 27, 2010 10:32 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Jun 11, 2006 12:07 am
Posts: 227
Location: I live in "Bratwurst" land ;-)
Hello Gnozal,

unfortunately I stumbled over another Pure_COLOR issue (which took me hours today :| )

Try this code, please:
Code:
  If OpenWindow(0, 0, 0, 300, 300, "SetGadgetItemColor", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
      SmartWindowRefresh(0, 1)
    LI=ListIconGadget(#PB_Any, 10, 50, 280, 280, "Column 0", 100)
      
    AddGadgetColumn(LI, 1, "Column 1", 100)
    For i = 1 To 10
      AddGadgetItem(LI, -1, "Text 1"+Chr(10)+"Text 2")
    Next
       
      BT=ButtonGadget(#PB_Any, 10, 10, 100, 30, "123")
;      PureCOLOR_SetButtonColor(BT, $aaaa00, $8BEC84)

    SetGadgetItemColor(LI, -1, #PB_Gadget_FrontColor, $0000FF,  1)
    SetGadgetItemColor(LI,  3, #PB_Gadget_BackColor,  $00FFFF, -1)   
    SetGadgetItemColor(LI,  9, #PB_Gadget_BackColor,  $FFFF00,  1)   

    Repeat
    Until WaitWindowEvent() = #PB_Event_CloseWindow
  EndIf


After removing the comment, which means the button will be coloured, then the SetGadgetItemColor() will not longer work.
It is not possible to highlight ListIcon rows, if you use PureCOLOR at the same time.

-> PB 4.40/4.41RC1, Win XP Home SP3

_________________
Image


Top
 Profile  
 
 Post subject: Re: PureCOLOR library : coloring gadgets (and much more)
PostPosted: Thu Jan 28, 2010 9:12 am 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4231
Location: Strasbourg / France
kurzer wrote:
unfortunately I stumbled over another Pure_COLOR issue (which took me hours today :| )
It is not possible to highlight ListIcon rows, if you use PureCOLOR at the same time.
-> PB 4.40/4.41RC1, Win XP Home SP3
I just tested your code.
I can confirm the problem with PB4.41, however it works perfectly with PB4.00-PB4.31 ...!
I think it's a window subclassing issue.
Will see....

_________________
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).


Top
 Profile  
 
 Post subject: Re: PureCOLOR library : coloring gadgets (and much more)
PostPosted: Thu Jan 28, 2010 12:29 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4231
Location: Strasbourg / France
Update v14.08 (PB4.40 version)

Changes :
- this build should fix the listicon issue posted by kurzer
  (hopefully it doesn't break something else...)

_________________
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).


Top
 Profile  
 
 Post subject: Re: PureCOLOR library : coloring gadgets (and much more)
PostPosted: Thu Jan 28, 2010 10:43 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Jun 11, 2006 12:07 am
Posts: 227
Location: I live in "Bratwurst" land ;-)
Thank you Gnozal,
it works very well now. Image
And no side effects yet.

_________________
Image


Top
 Profile  
 
 Post subject: Re: PureCOLOR library : coloring gadgets (and much more)
PostPosted: Fri Jan 29, 2010 11:37 am 
Offline
Addict
Addict

Joined: Sat Apr 10, 2004 1:20 pm
Posts: 1069
Location: Germany
Hi Gnozal,

do you have a clue whats going wrong here :

on windows XP SP3 there are redraw issue´s when text is typed into the editable combobox. Just type some text jump to the beginning and insert some text.
(on windows 7 i don´t have this issue)

Regards Klaus

Code:
  If OpenWindow(0, 0, 0, 230,150, "Event-Handling Beispiel...", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
   ComboBoxGadget(3, 10, 80, 200, 20, #PB_ComboBox_Editable)
   AddGadgetItem(3,-1,"TEST")
   AddGadgetItem(3,-1,"1233452")
   AddGadgetItem(3,-1,"qw354rq234512345")
   
   PureCOLOR_SetGadgetColor(3,#PureCOLOR_SystemColor,#Red)
   
   Repeat
     Event = WaitWindowEvent()
   Until Event = #PB_Event_CloseWindow
 EndIf

_________________
http://www.PureBasicPower.de


Top
 Profile  
 
 Post subject: Re: PureCOLOR library : coloring gadgets (and much more)
PostPosted: Fri Jan 29, 2010 11:50 am 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4231
Location: Strasbourg / France
ABBKlaus wrote:
on windows XP SP3 there are redraw issue´s when text is typed into the editable combobox. Just type some text jump to the beginning and insert some text.
(on windows 7 i don´t have this issue)
I have no idea (theme issue ?)
I just tested your code.
No problem with NT4 and XP sp2 with or without themes.

_________________
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).


Top
 Profile  
 
 Post subject: Re: PureCOLOR library : coloring gadgets (and much more)
PostPosted: Fri Jan 29, 2010 10:03 pm 
Offline
Addict
Addict

Joined: Sat Apr 10, 2004 1:20 pm
Posts: 1069
Location: Germany
gnozal wrote:
I have no idea (theme issue ?)
I just tested your code.
No problem with NT4 and XP sp2 with or without themes.

Thanks for testing gnozal,

it seems to be a driver issue here at work, all PC´s are with integrated graphics (Intel). So it´s most likely a driver issue.
On VirtualBox and WindowsXP SP3 there is no redrawing problem (with enabled theme "Windows-XP").
I will try a new (Intel-)driver on monday.

Regards Klaus

_________________
http://www.PureBasicPower.de


Top
 Profile  
 
 Post subject: Re: PureCOLOR library : coloring gadgets (and much more)
PostPosted: Wed Feb 17, 2010 11:16 am 
Offline
Addict
Addict

Joined: Sat Apr 10, 2004 1:20 pm
Posts: 1069
Location: Germany
Hi Gnozal,

its not possible to reset a PureCOLOR_SetCellColorCallback()

If it is not the intented behaviour please add is as a feature request :P

Code:
PureCOLOR_SetCellColorCallback(#Window,0) ; <- does not work

_________________
http://www.PureBasicPower.de


Top
 Profile  
 
 Post subject: Re: PureCOLOR library : coloring gadgets (and much more)
PostPosted: Wed Feb 17, 2010 11:47 am 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4231
Location: Strasbourg / France
ABBKlaus wrote:
its not possible to reset a PureCOLOR_SetCellColorCallback()
No, it isn't (it never was).
ABBKlaus wrote:
If it is not the intented behaviour please add is as a feature request
Currently, the callback address is global (valid for all windows). So you can't remove it for one window.

_________________
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).


Top
 Profile  
 
 Post subject: Re: PureCOLOR library : coloring gadgets (and much more)
PostPosted: Wed Feb 17, 2010 5:44 pm 
Offline
Addict
Addict

Joined: Sat Apr 10, 2004 1:20 pm
Posts: 1069
Location: Germany
Thanks for the info Gnozal.

I only have one Window :wink:
My problem is the huge slowdown when the callback is active
and the listicon gets filled.

Regards klaus

_________________
http://www.PureBasicPower.de


Top
 Profile  
 
 Post subject: Re: PureCOLOR library : coloring gadgets (and much more)
PostPosted: Thu Feb 18, 2010 10:27 am 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4231
Location: Strasbourg / France
Update v14.09 (PB4.40 version)

Changes :
- new PureCOLOR_ResetCellColorCallback(*ProcedureAddress) function
  It resets the cell colorization callback address set with PureCOLOR_SetCellColorCallback().
  If *ProcedureAddress is #Null, the callback is inactivated.

_________________
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).


Top
 Profile  
 
 Post subject: Re: PureCOLOR library : coloring gadgets (and much more)
PostPosted: Thu Feb 18, 2010 2:07 pm 
Offline
Addict
Addict

Joined: Sat Apr 10, 2004 1:20 pm
Posts: 1069
Location: Germany
Many thanks for the fast release of the new version gnozal :D

Regards Klaus

_________________
http://www.PureBasicPower.de


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 510 posts ]  Go to page Previous  1 ... 27, 28, 29, 30, 31, 32, 33, 34  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


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