Scroolbox and buttons

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #70855
    Mauro
    Participant

    Inserting a set of buttons on a Scroolbox, hovering with the mouse I have an error:
    “Range check error” in sAlphaGrap function UpdateCorner code:
    for X := 0 to w do
    -> with D[DstPoint.X + X], M[MskPoint.X + X], S[CI.X + SrcPoint.X + X] do
    if MC = -1 then begin // $FFFFFFFF
    DC := SC;
    if not ExtSource then
    DA := 0
    Thanks

    Attachments:
    You must be logged in to view attached files.
    #70857
    Mauro
    Participant

    I have fixed with i thik isn’t the right way:

    if ((DstPoint.X) < 0) then exit;
    if ((MskPoint.X) < 0) then exit;
    if ((CI.X + SrcPoint.X) < 0) then exit;

    for Y := 0 to h do begin
    M := Pointer(PAnsiChar(M0) + DeltaM * (MskPoint.Y + Y));
    D := Pointer(PAnsiChar(D0) + DeltaD * (DstPoint.Y + Y));
    S := Pointer(PAnsiChar(S0) + DeltaS * (SrcPoint.Y + CI.Y + Y));

    • This reply was modified 2 years, 7 months ago by Mauro.
    • This reply was modified 2 years, 7 months ago by Mauro.
    #70962
    Support
    Keymaster

    Hello and sorry for a long time without answer.
    Thank you for your investigation.

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