sPanel and OnPaint

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #33387
    remsi
    Participant

    Hi!

    I have a problem with the OnPaint event using a sPanel.

    I am deriving my own class TmyPanel from TsPanel.
    In the constructor of TmyPanel I have a line like:

    CODE
    self.OnPaint := self.MyPaintCode;

    With this line of code the panel no longer redraws on resizing.

    I tracked down the problem to sPanel (line 192 in v6.47):

    CODE
    else if Assigned(FOnPaint) then FOnPaint(Self, Canvas) else begin

    So assigning MyPaintCode to OnPaint will prevent the code to draw the panel from being executed.

    Cheers,

    remsi

    #40996
    Support
    Keymaster

    Hello
    Problem will be solved in the nearest release I think.

    #40997
    remsi
    Participant

    Thank You!
    <img src="style_emoticons//smile.gif” style=”vertical-align:middle” emoid=”:)” border=”0″ alt=”smile.gif” />

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