component sdblookupcombobox didnt invalidate with new version 10.20

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #36761
    guyinwonder
    Participant

    Dear Sergey,

    after changing to version 10.20 the sdblookupcombox didnt behave like it used to.

    if we changed selection using drop down.. after select while the focus still in the dblookup it will not show reflected changed data.

    After we moved focused to other control then it start showing the changes.

    my solution so far were under oncloseup event , i need to put invalidate command for every each component sdblookupcombobox.

    sergey , i have plenty of these type component .. and changes my fix across all project were very time consuming.

    can you do something about it ?

    Regards

    eddy

    #54353
    Support
    Keymaster

    Hello!

    I'm trying to repeat this problem in test-applications, but can't. Can you help me with that?

    What version of Delphi used?

    #54359
    guyinwonder
    Participant
    'Support' wrote:

    Hello!

    I'm trying to repeat this problem in test-applications, but can't. Can you help me with that?

    What version of Delphi used?

    Im sorry sergey,

    I cant replicate it myself using dummy sample, but the issue exists in my current project for my office…I used XE5 embarcadero ,

    Let me know further how to help you as I dont know how to sent you part of the project (all the project were integrated one to another (tightly coupled)).

    meanwhile i'll chase down to manually put one by one invalidate across all dblookup component ..

    however I can replicate that when ever one form closed if i don't tick the extended border it will have an error .

    [attachment=7448:Testing component.rar]

    #54377
    guyinwonder
    Participant

    Dear Sergey,

    I have played with sDBLookupComboBox.pas file and These were what I have done.

    under

    Code:
    procedure TsDBLookupComboBox.WndProc(var Message: TMessage);

    I edit the line 470

    Code:
    WM_NCPAINT: begin
    FCommonData.Invalidate(True); <— I added These
    PaintText; <– I added these
    PaintBorder;
    Exit;
    end;

    And it seems it do the trick.. when I search using keyword by typing character and press enter the text update correctly at the edit box also

    when using mouse click .

    previously if do search by typing and mouse click the list box just closed but what ever shows on the edit box were not refreshed.

    please advise if these were already correct way to fix my issue in your opinion.

    funny thing is outside my project if i create new project with the sdblookupcombobox it doesnt how issue like the one in my project.

    regards

    #54418
    Support
    Keymaster

    Hello!

    Please, try the v10.21, some errors were fixed there, including DBLookupCombo.

    I can't recompile your demo because some components does not exists on my system (like TMyConnection).

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