It is currently Fri May 24, 2013 2:51 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 510 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6 ... 34  Next
Author Message
 Post subject:
PostPosted: Fri Mar 18, 2005 11:31 pm 
Offline
Addict
Addict
User avatar

Joined: Tue Jul 22, 2003 5:02 pm
Posts: 1496
Location: Nantes, France
thanx gnozal - good news !

what about make some new commands, based upon these posts ?

scrollbars :
http://forums.purebasic.com/english/viewtopic.php?t=14410

and this one, coloring a scrollareagadget :
http://forums.purebasic.com/english/viewtopic.php?t=13074&highlight=scrollarea+color+colour

containergadgets :
http://forums.purebasic.com/english/viewtopic.php?p=72952#72952

Best regards

_________________
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


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 19, 2005 9:13 am 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4231
Location: Strasbourg / France
Flype wrote:
thanx gnozal - good news !

Thanks 8)
Flype wrote:
what about make some new commands, based upon these posts ?
scrollbars :
http://forums.purebasic.com/english/viewtopic.php?t=14410
and this one, coloring a scrollareagadget :
http://forums.purebasic.com/english/viewtopic.php?t=13074&highlight=scrollarea+color+colour
containergadgets :
http://forums.purebasic.com/english/viewtopic.php?p=72952#72952
Best regards

I never thought about these ! I was planning to add some more listicon and some richedit coloring functions. I will see ...

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


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 19, 2005 9:45 am 
Offline
User
User

Joined: Fri Apr 25, 2003 7:06 pm
Posts: 76
Location: Spain
gnozal wrote:
Flype wrote:
thanx gnozal - good news !

Thanks 8)
Flype wrote:
what about make some new commands, based upon these posts ?
scrollbars :
http://forums.purebasic.com/english/viewtopic.php?t=14410
and this one, coloring a scrollareagadget :
http://forums.purebasic.com/english/viewtopic.php?t=13074&highlight=scrollarea+color+colour
containergadgets :
http://forums.purebasic.com/english/viewtopic.php?p=72952#72952
Best regards

I never thought about these ! I was planning to add some more listicon and some richedit coloring functions. I will see ...


And panelgadgets (tabs)???

Thanks gnozal :twisted:

_________________
Return to the forum


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 19, 2005 2:13 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Aug 07, 2003 7:01 pm
Posts: 2853
Location: United Kingdom
gnozal: Are you planning to add tree gadgets?

-Anthony

_________________
http://www.SinisterSoft.com <- My Business website
http://www.ReportComplete.com and http://www.ReportPlus.co.uk <- School end of term reports system


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 19, 2005 6:45 pm 
Offline
Addict
Addict
User avatar

Joined: Tue Jul 22, 2003 5:02 pm
Posts: 1496
Location: Nantes, France
LOL

lot's of work gnozal :wink:

_________________
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


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 19, 2005 11:11 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Aug 07, 2003 7:01 pm
Posts: 2853
Location: United Kingdom
hehe :D

_________________
http://www.SinisterSoft.com <- My Business website
http://www.ReportComplete.com and http://www.ReportPlus.co.uk <- School end of term reports system


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 21, 2005 8:51 am 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4231
Location: Strasbourg / France
Flype wrote:
LOL
lot's of work gnozal :wink:


Yes, I see :shock:
I have no great plan. I am adding what I need in my apps, that all. And I am glad to add some user requests too, if it isn't to complicated :oops: I am not a professional programmer, it is only a hobby to me :wink:

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


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 21, 2005 7:32 pm 
Offline
Addict
Addict
User avatar

Joined: Tue Jul 22, 2003 5:02 pm
Posts: 1496
Location: Nantes, France
yes but your libs are quite useful for professional programmers to :wink:

_________________
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


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 24, 2005 8:47 am 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4231
Location: Strasbourg / France
Library update
- new feature : now PureCOLOR_SetGadgetColor() works for ContainerGadget and ScrollAreaGadget (only BackColor is used)
- new function : PureCOLOR_SetColumnHeaderColor()
- new function : PureCOLOR_ClearColumnHeaderColor()

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


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 24, 2005 9:09 am 
Offline
Enthusiast
Enthusiast

Joined: Wed Aug 06, 2003 2:49 pm
Posts: 362
Location: Venice - Italy, Japan when possible.
Great job!
Would be great if you state (for each command) the effect in the various Windows version. (I imagine that someone works with XP skinned, some doesnt, perhaps some will not work in systems before W2000 etc...)

_________________
Universal Videogame List


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 24, 2005 10:40 am 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4231
Location: Strasbourg / France
Blade wrote:
Great job!
Would be great if you state (for each command) the effect in the various Windows version. (I imagine that someone works with XP skinned, some doesnt, perhaps some will not work in systems before W2000 etc...)

I would if I could, but I can't, so I don't :wink:
I can only test the library with Win98SE and NT4, I don't have 2k/XP (yet?).

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


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 24, 2005 3:40 pm 
Offline
Addict
Addict
User avatar

Joined: Tue Jul 22, 2003 5:02 pm
Posts: 1496
Location: Nantes, France
Very thank you again Gnozal :)

_________________
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


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 24, 2005 11:06 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Aug 07, 2003 7:01 pm
Posts: 2853
Location: United Kingdom
This should help you change the colours of the selected row...

Code:
    Case  #WM_NOTIFY
      *lvCD.NMLVCUSTOMDRAW=lparam
      If *lvCD\nmcd\hdr\hwndFrom=ListGadget And *lvCD\nmcd\hdr\code=#NM_CUSTOMDRAW   
        Select *LVCD\nmcd\dwDrawStage
          Case #CDDS_PREPAINT:ProcedureReturn(#CDRF_NOTIFYITEMDRAW)
          Case #CDDS_ITEMPREPAINT:ProcedureReturn(#CDRF_NOTIFYSUBITEMDRAW)
          Case #CDDS_ITEMPREPAINT|#CDDS_SUBITEM
            thisItem=*lvCD\nmcd\dwItemSpec
            column=*lvCD\iSubItem ; possible use in the future
            subItemRect.RECT\left=#LVIR_LABEL
            subItemRect.RECT\top=*lvCD\iSubItem
            SendMessage_(ListGadget,#LVM_GETSUBITEMRECT,thisItem,@subItemRect)
            subItemText$=GetGadgetItemText(#Clients,*lvCD\nmcd\dwItemSpec,*lvCD\iSubItem)
            sitLen=Len(subItemText$)
            lvFlags=#DT_END_ELLIPSIS|#DT_WORDBREAK|#DT_VCENTER
            If GetGadgetState(#Clients)=thisItem
              FillRect_(*lvCD\nmcd\hDC,subItemRect,SelectedBrush)
              Selected=#True
              ListTextColour=RGB(255,255,255)
            Else
              FillRect_(*lvCD\nmcd\hDC,subItemRect,BackgroundBrush)
              Selected=#False
              ListTextColour=RGB(0,128,255)
            EndIf
            No=*LVCD\nmcd\dwItemSpec
            If No<MaxClients
              No2=No+1
              If ClientTable(No2)\ConnectDate
                If Selected
                  If ClientTable(No2)\Connected
                    ListTextColour=RGB(60,255,90)  ; this is the selected fgnd colour - if connected
                  Else
                    ListTextColour=RGB(255,200,200) ; this is the selected fgnd colour - if NOT connected
                  EndIf
                Else
                  If ClientTable(No2)\Connected
                    ListTextColour=RGB(0,128,0) ; fgnd colour - if connected
                  Else
                    ListTextColour=RGB(255,96,128) ; fgnd colour - if NOT connected
                  EndIf
                EndIf
              EndIf
            EndIf
            SetTextColor_(*lvCD\nmcd\hDC,ListTextColour) 
            SetBkColor_(*lvCD\nmcd\hDC,BackgroundColour)
          ;  subItemRect\left +3
          ;  subItemRect\right -3
          ;  subItemRect\bottom -3
            DrawText_(*lvCD\nmcd\hDC,subItemText$,sitLen,subItemRect,lvFlags)   
            ProcedureReturn(#CDRF_SKIPDEFAULT)
        EndSelect
      EndIf


You may like to integrate it with your library?

-Anthony

_________________
http://www.SinisterSoft.com <- My Business website
http://www.ReportComplete.com and http://www.ReportPlus.co.uk <- School end of term reports system


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 24, 2005 11:27 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Aug 07, 2003 7:01 pm
Posts: 2853
Location: United Kingdom
If you use the alternate colour flag, the text colour is always black...

Code:
PureCOLOR_SetGadgetColorEx(#Customers,RGB(255,255,255),BackgroundColourGreen,BackgroundColourBlue,#PureCOLOR_LV_AlternateColors)

Gives black (not white) text...

It can be fixed if you:
Code:
PureCOLOR_SetGadgetColor(#Customers,RGB(255,255,255),BackgroundColour)

After it...

But it would be nice if it worked okay... :)

_________________
http://www.SinisterSoft.com <- My Business website
http://www.ReportComplete.com and http://www.ReportPlus.co.uk <- School end of term reports system


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 24, 2005 11:32 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Aug 07, 2003 7:01 pm
Posts: 2853
Location: United Kingdom
You may like to know that:

Code:
SendMessage_(CustomersGadget,#LVM_SETBKCOLOR,0,BackgroundColour)


will set the colour of the unused background area - this normally stays white with your library.

_________________
http://www.SinisterSoft.com <- My Business website
http://www.ReportComplete.com and http://www.ReportPlus.co.uk <- School end of term reports system


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 510 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6 ... 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