Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-10

FPPkg correction and help with TListView

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Geoffray « fatalerrors » Levasseur

Hi everybody,

As I updated Lazarus this morning, I've seen that FPPkg is not compiling anymore. Unless the package maintener is working on this, I've made a patch, attached to that mail, to correct that.

I have a more personal concern as well : I would like to colorise some lines of a TListView in repport mode depending on some variables where I could change TextColor and BackgroundColor. Some of those colors would depend on user action so I need to be able to change colors of an item without reloading the list.

Do you have an idea on how to do that or even better an exemple of such thing ? Idealy I need that to work both with GTK and Qt as the application will have a runner that will detect the desktop environement and launch GTK or Qt version depending on it. I don't need that to work on Windows as the application makes sense on Unix systems only.

Thanks for all ;)

Geoffray ? Fatalerrors ? Levasseur-Brandin http://www.geoffray-levasseur.org/ http://0linux.org/ GNU/PG public key : A25E944254C62E34A8E58DCF688A5F74289C1897 Errare humanum est sed perseverare diabolicum aut cretinum. -------------- next part -------------- A non-text attachment was scrubbed... Name: fppkg.patch Type: text/x-patch Size: 6970 bytes Desc: not available URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20131023/cb2b0c48/attachment.bin> -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 665 bytes Desc: This is a digitally signed message part. URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20131023/cb2b0c48/attachment-0001.bin>

Reply by email

Unknown author
to Geoffray « fatalerrors » Levasseur

Citiram Geoffray ? fatalerrors ? Levasseur
:

Show quoted text 19 lines
Hi everybody, As I updated Lazarus this morning, I've seen that FPPkg is not compiling anymore. Unless the package maintener is working on this, I've made a patch, attached to that mail, to correct that. I have a more personal concern as well : I would like to colorise some lines of a TListView in repport mode depending on some variables where I could change TextColor and BackgroundColor. Some of those colors would depend on user action so I need to be able to change colors of an item without reloading the list. Do you have an idea on how to do that or even better an exemple of such thing ? Idealy I need that to work both with GTK and Qt as the application will have a runner that will detect the desktop environement and launch GTK or Qt version depending on it. I don't need that to work on Windows as the application makes sense on Unix systems only.

You did not write what version of Lazarus do you use ? If you use trunk then you're lucky. I've implemented OnDrawItem and OwnerDraw properties to TCustomListView and that should work, so in OnDrawItem you can do whatever with your listview item. OnCustomDrawXXXX should work also, but not 100% sure that it'll work correct with gtk2 widgetset.

zeljko

Reply by email