Jump to content


Photo

NxColorPicker


  • Please log in to reply
7 replies to this topic

#1 Afiag

Afiag
  • Members
  • 117 posts

Posted 07 November 2005 - 05:24 PM

Using the latest version of your components this code givesme problems:

procedure TForm1.NxColorPicker2Change(Sender: TObject);
begin
TNxDBNumberColumn1.Color := NxColorPicker2.SelectedColor;
end;

When I select a color for the first time, it doesn't change the color of the grid column. When I change the color again, it changes to my first selection, when I choose another color for the third time it gives me the second color etc...

So it seems to "lag" behind one selection... always gives the previous color ...


EDIT: When upgrading to the last update (that from few days ago) when I opened my projet it gave me the warning "DroppedDown" peroperty doesn't exist" for all my comboboxes and colorpickers... has this anything to do with it ? Cause it didn't do this behaviour in the previous version ... This is just a guess could be entirely something else..

#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 07 November 2005 - 05:35 PM

Hello Afiag,

I will check it now.

About DropedDown property, simply ignore this and resave form. This property was moved from Published section of class to Public section.

regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#3 Afiag

Afiag
  • Members
  • 117 posts

Posted 07 November 2005 - 06:33 PM

Thanks, let me know how to fix this. I can reproduce the error so it isn't a glitch on my side.

Thanks for the support.

#4 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 07 November 2005 - 08:52 PM

Hello,

Please fix next method in NxEdit.pas:

CODE
procedure TNxColorPicker.DoDropDownInput(Sender: TObject; Value: string);

begin

 SetTextToColor;  

 inherited; // ^---- switch places

end;


Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#5 Afiag

Afiag
  • Members
  • 117 posts

Posted 07 November 2005 - 10:54 PM

I edited that file and didn't do anything else, still same problem, do I need to reinstall nextsuite ?

EDIT: I recompiled NxEdit.pas and the behaviour changed but not fixed.

It generally does the same now, lags one behind, except that the color shown in the preview also lags behind 1... so now the color in the preview and the actual color output is correct, except it's one color behind what you've chosen ...

Did I install it wrong or .. ?

#6 wvd_vegt

wvd_vegt

    Master Member

  • Honorable Members
  • PipPipPipPipPip
  • 710 posts
  • Gender:Male
  • Location:the Netherlands

Posted 08 November 2005 - 10:39 AM

Hi,

There should be a bpg project group that is covenient for recompilation. Just load it and hit Project|Build all.
G.W. van der Vegt

#7 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 13 November 2005 - 08:53 PM

Hello,

I have fixed it finaly smile.gif

It will be available in v3.3.3

regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#8 Afiag

Afiag
  • Members
  • 117 posts

Posted 16 November 2005 - 01:27 PM

Confirmed, it's fixed.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users