Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
517 views
in Technique[技术] by (71.8m points)

delphi - Does a hidden VCL control impact form load time?

I have a VCL form which (in addition to all the other controls) has 20 edit boxes on it that are hidden. They are essentially there as boolean variables so I can utilise their OnChange event to trigger other things.

Even though these are enabled but not visible, will they have a noticeable impact on the form load time, particularly as I am using VCL themes as well?

This article would suggest they are not created until referenced or made visible, but since I reference them during form load then I assume they will be created then. I suppose the bulk of the 'create time' is in the painting, but I figure they are not being painted if hidden so we are saving time there, therefore is the time I am left with likely to be noticeable?

question from:https://stackoverflow.com/questions/65870558/does-a-hidden-vcl-control-impact-form-load-time

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...