What is the accepted way to use frames in Delphi?

后端 未结 4 743
轻奢々
轻奢々 2021-02-14 23:55

I was having my usual stroll around and bumped on some frames discussions.

I\'m mainly a Delphi hobbyist and not a professional, so I had to learn how to use TFrames my o

4条回答
  •  走了就别回头了
    2021-02-15 00:36

    This is more a negative answer, but I tried a route that included reparenting TFrames for a bit complex GUI.

    At first it went fine, but when the application matured and more events started flying, I had to disable and then process messages for a while (20ms) before changing, and then still occasionally had crashes when changing frame.

    One of the culprits I eventually found, TPopmenu also registers itself in global datastructures. This reduced the problems, but they were still there, so I move away from the concept.

提交回复
热议问题