Recent

Author Topic: Can not change color  (Read 11376 times)

belajardelphi

  • Guest
Can not change color
« on: February 07, 2006, 12:43:41 am »
I'm using suse 9.3 and no error when install lazarus and fpc

Trims.

Not much to say my english is baadd

matthijs

  • Hero Member
  • *****
  • Posts: 537
RE: Can not change color
« Reply #1 on: February 07, 2006, 02:52:21 pm »
And your question is?
What's in a sig? Would my posting look less if it didnot have a sig? (Free after William S.) :)

:( Why cannot I upload my own Avatar? :(

CCRDude

  • Hero Member
  • *****
  • Posts: 615
RE: Can not change color
« Reply #2 on: February 09, 2006, 09:47:23 am »
Well, "can not change color" reminds me of one color changing problem of mine - if I use a TListBox (or TCheckListBox), I want to color some entries, but TListBox is still missing the OnCustomDraw function where one could change the canvas font color ;)

Anyway, that won't be the problem he has with colors I guess :D

Anonymous

  • Guest
RE: Can not change color
« Reply #3 on: February 10, 2006, 07:27:11 am »
I can change color property of the form but nothing happen....still grey not other color

CCRDude

  • Hero Member
  • *****
  • Posts: 615
RE: Can not change color
« Reply #4 on: February 10, 2006, 04:03:11 pm »
Which version of Lazarus? Snapshot (if so which date) or "normal" (0.9.10 or 0.9.129?
Compiling for Gtk, Gtk2, Gnome?
Works for me on Windows, let me test on Linux.

My Linux (Ubuntu 5.10) runs Lazarus 0.9.11 beta from 4-11-05. If I change TForm.Color, it doesn't really change, that's correct. I'm going to update to a current snapshot and will test again.

CCRDude

  • Hero Member
  • *****
  • Posts: 615
RE: Can not change color
« Reply #5 on: February 10, 2006, 04:18:12 pm »
Downloaded and compiled 0.9.13 beta frm 10-02-06, Gtk2 and gnome are not even available out of the box, so I assume it's about gtk. Problem still exists - regardless of which color I choose, the background will stay clBtnFace.

matthijs

  • Hero Member
  • *****
  • Posts: 537
RE: Can not change color
« Reply #6 on: February 10, 2006, 05:44:22 pm »
It has not been available under Linux. There has been a lot of discussion on this some time (a year or so) ago. I guess the priority to implement this is not very high atm. :)
What's in a sig? Would my posting look less if it didnot have a sig? (Free after William S.) :)

:( Why cannot I upload my own Avatar? :(

CCRDude

  • Hero Member
  • *****
  • Posts: 615
RE: Can not change color
« Reply #7 on: February 10, 2006, 07:30:39 pm »
I can only sign the priority estimation. I've always been a fan of Apple's interface design guidelines and never understood the need to color forms or buttons :D At least I use colors very sparingly. The only point where I miss is in TListBox, because decent colors may be helpful there... ;) But if I really need that, I'll look into the source and see if I can contribute anything.

dajashby

  • New member
  • *
  • Posts: 9
Can not change color
« Reply #8 on: June 15, 2006, 09:32:08 am »
You've probably already worked this out, but if you drop a panel on the form, and choose Client in Align, so that it covers the whole form, you can change the color of the panel without a problem.

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
RE: Can not change color
« Reply #9 on: June 15, 2006, 03:32:15 pm »
You can also work around this by implementing a paint method for the form. On this method you can just paint the whole background.

You can see a simple form that uses this method on the lazarus/components/popupnotifier directory of you lazarus install (only on the latest subversion currently)

 

TinyPortal © 2005-2018