Skip to content

Missed event handler for events of type TPaintEvent #99

Description

@rtyusdfg
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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions