TsColorDialog problem

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #35333
    Beherit
    Participant

    On TsColorDialog don't working copying data from TsMaskEdit (color in Hex). I try to use “Ctrl + C” and “Copy” from popup menu and its doesn't work.

    #48854
    Hamilton
    Participant

    Hi Beherit,

    Can you explain your problem more clearly? The code below works fine for me, though I'm not sure what you mean by 'copying hex value' so I'm not sure if I tested the right thing.

    sColorDialog1.Color := $00FFFFAA;

    if sColorDialog1.Execute then

    self.Color := sColorDialog1.Color

    You may have a string to hex conversion issue and need to look more closely at the value returned by your mask edit.

    Regards,

    Hamilton

    #48862
    Beherit
    Participant

    This code works for me too, but the problem lies somewhere else. In component TsMaskEdit don't work coping data – I mean copying the selected text by “Ctrl+C” or position “Copy” in menu.

    #48863
    Support
    Keymaster

    Hello!

    Which version of the package used?

    #48865
    Beherit
    Participant

    I use version 7.67 but on version 7.68 is this same. I use older version because new have a bug (I will describe it later).

    #48866
    Hamilton
    Participant

    Hi Beherit,

    If I put a TsMaskEdit and a TsEdit on a form then I can type text in the mask edit and then press CTRL-C to copy and CTRL-V to paste into the edit, and it works fine. Does that work for you? Is it the particular mask that you are using that is causing the problem?

    Regards,

    Hamilton

    #48876
    Support
    Keymaster
    'Beherit' wrote:

    I use version 7.67 but on version 7.68 is this same. I use older version because new have a bug (I will describe it later).

    Please try this demo. Do you have a problem with copying of color there?

    #48895
    Beherit
    Participant

    On demo I still have problem – don't work shortcut “Ctrl+C”. When I add TsMaskEdit to form it's work fine! Problem lies only on TsColorDialog.

    #48899
    Support
    Keymaster

    You are right, I see it now.

    I'll try to fix it in the nearest release.

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.