DelphiFMX4Python icon indicating copy to clipboard operation
DelphiFMX4Python copied to clipboard

Missed event handler for events of type TPaintEvent

Open rtyusdfg opened this issue 6 months ago • 1 comments

import os
from delphifmx import *

class FormMain(Form):

    def __init__(self, owner):
        self.PaintBox = None
        self.LabelLineCount = None
        self.Panel = None
        self.HueTrackBarLinesColor = None
        self.HueTrackBarPointsColor = None
        self.TrackBarStartFadeDistance = None
        self.Label2 = None
        self.Label3 = None
        self.Label4 = None
        self.TimerAnimate = None
        self.StyleBook = None
        self.LoadProps(os.path.join(os.path.dirname(os.path.abspath(__file__)), "UnitMain.pyfmx"))

    def FormCreate(self, Sender):
        pass

    def PaintBoxMouseUp(self, Sender, Button, Shift, X, Y):
        pass

    def PaintBoxPaint(self, Sender, Canvas):
        pass

    def TimerAnimateTimer(self, Sender):
        pass

def main():
    Application.Initialize()
    Application.Title = 'NetEffect'
    Application.MainForm = FormMain(Application)
    Application.MainForm.Show()
    Application.Run()
    Application.MainForm.Destroy()

if __name__ == '__main__':
    main()

UnitMain.pyfmx.txt

gives image

rtyusdfg avatar Aug 16 '24 08:08 rtyusdfg