Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missed event handler for events of type TPaintEvent #99

Open
rtyusdfg opened this issue Aug 16, 2024 · 1 comment
Open

Missed event handler for events of type TPaintEvent #99

rtyusdfg opened this issue Aug 16, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@rtyusdfg
Copy link

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

@lmbelo lmbelo self-assigned this Aug 20, 2024
@lmbelo lmbelo added the bug Something isn't working label Aug 20, 2024
@lmbelo
Copy link
Member

lmbelo commented Aug 20, 2024

Hello @rtyusdfg,

I'm fixing it and building a new release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants