BUG! sPageControl does not throw OnChange and OnChanging events

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #37826
    HeDiBo
    Participant

    In the WM_LBUTTONUP, WM_LBUTTONDOWN: part of the WndProc procedure this code has changed from AC 13.11

    Code:
    if Page <> ActivePage then
    if SkinData.Skinned and SkinData.SkinManager.AnimEffects.PageChange.Active then begin
    sVCLUtils.PrepareForAnimation(Self);
    ActivePage := Page;
    sVCLUtils.AnimShowControl(Self, SkinData.SkinManager.AnimEffects.PageChange.Time);
    end
    else
    ActivePage := Page;

    Exit;

    In AC 13.11 this was simply:

    Code:
    if Page = ActivePage then begin
    inherited;
    Exit;

    The inherited statement is missing from the new code.

    The OnPageChanging event is executed.

    Please help, this is a serious flaw mad.gif

    #57898
    Support
    Keymaster

    Hello!

    “Inherited” can't be used there anymore, because behaviour of standard code is incorrect for “RightToLeft” BidiMode.

    I have sent a changed sPageControl unit via PM, please check it.

    #57906
    HeDiBo
    Participant
    'Support' wrote:

    Hello!

    “Inherited” can't be used there anymore, because behaviour of standard code is incorrect for “RightToLeft” BidiMode.

    I have sent a changed sPageControl unit via PM, please check it.

    The edited pagecontrol does the trick. Thank you 👌

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