Open fansxs opened 11 months ago
Can you share your code, please?
Generate it to pydfm file, then load it from python code.
import os from delphivcl import *
class Form1(Form):
def __init__(self, owner):
self.ToolBar1 = ToolBar(self)
self.LoadProps(os.path.join(os.path.dirname(os.path.abspath(__file__)), "Unit1.pydfm"))
def main(): Application.Initialize() Application.Title = 'Project1' MainForm = Form1(Application) MainForm.Show() FreeConsole() Application.Run()
if name == 'main': main()
When the property PixelsPerInch of Form is 96, TToolBar can display normally. However, when it is not 96, such as 120, the program will encounter an error.