I want to create a panel with some controls on it that I can easily instantiate on some tabsheets at runtime. This seems like a perfect application of TFrames, but I haven’t used them in a long time. Do they work fully as expected with WEB Core, or are there some caveats?
Thinking about this, there have been times when I’ve thought it would be nice to be able to Copy an object in the IDE and Paste it into the code pane in a way that generates the code needed to recreate it at run-time. Or maybe as a Class that has a Constructor plus a bunch of Properties defined that are not set to their default values. Does anything do that?
We modeled frames in TMS WEB Core after how they work in a VCL app.
There is a demo under Demo\Basics\Frames
We have actually internally in the TMS WEB Core project compile steps, a DFM to code conversion (to avoid having to load the DFM at run-time in the web app).
This is integrated right now and not separately available. We'll discuss here if it is worth surfacing this part.
That’s interesting. I wouldn’t need code to generate the entire form. In this case I’d probably want to pass it the name of a TWebPanel and have it generate the code to recreate that panel and everything on it (it’s children, I guess). Or give it a different Owner name to use instead of that panel.
I’ve found it a bit challenging just figuring out how to set properties in the right order to keep things from flipping around. In particular, setting up a splitter so it sat in the right place took a lot of head-scratching.
It seems to be a feature of GExperts:
They seem to have a solution for everything! Thanks.