Recent

Author Topic: TColorPalette...  (Read 19137 times)

polpero

  • Jr. Member
  • **
  • Posts: 72
Re: TColorPalette...
« Reply #45 on: August 30, 2015, 08:27:44 pm »
wp

i'm having an issue with properties
they are saved to file accordingly
but aren't assigned on load

Try this loadPaletteTest (attachment)
and confirm when you can...

thanks

derek.john.evans

  • Guest
Re: TColorPalette...
« Reply #46 on: August 30, 2015, 09:26:52 pm »
Code: [Select]
_colorPal.LoadPalette(curPal, piAll);

Also add:
Code: [Select]
procedure TmainForm.fNameEditChange(Sender: TObject);
begin
  FileListBox.FileName := fNameEdit.Text;
end;   

polpero

  • Jr. Member
  • **
  • Posts: 72
Re: TColorPalette...
« Reply #47 on: August 30, 2015, 11:21:00 pm »
Quote
_colorPal.LoadPalette(curPal, piAll);

arrgh!

i forgot about this one!
(
   i thought it was the default...
  --still think it should be... : )
)

Thanks!


wp

  • Hero Member
  • *****
  • Posts: 6462
Re: TColorPalette...
« Reply #48 on: September 07, 2015, 06:38:22 pm »
For those who do not work with svn: I just uploaded the current code of the ColorPalette component as zipped release version 0.2 to sourceforge (http://sourceforge.net/projects/lazarus-ccr/files/ColorPalette/ColorPalette%200.2/LazColorPalette-0.2.zip/download)
Lazarus trunk / fpc 3.0.4 / all 32-bit on Win-10

polpero

  • Jr. Member
  • **
  • Posts: 72
Re: TColorPalette...
« Reply #49 on: September 07, 2015, 09:29:19 pm »
And days became weeks...

Here is a Palette Maker Demo

it explores other usages of the TColorPalette.
There might be better ways to do what it does
feel free to suggest

wp

  • Hero Member
  • *****
  • Posts: 6462
Re: TColorPalette...
« Reply #50 on: September 07, 2015, 09:41:09 pm »
Looks nice. But I cannot compile the demo because some units are missing (global.pas plus maybe what is used in there)
Lazarus trunk / fpc 3.0.4 / all 32-bit on Win-10

polpero

  • Jr. Member
  • **
  • Posts: 72
Re: TColorPalette...
« Reply #51 on: September 07, 2015, 09:56:07 pm »
Sorry...

that file is not used anymore
just remove the reference to the project

here'a an update of the zip File