Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to show a control as a form?

Status
Not open for further replies.

Glenn9999

Programmer
Jun 19, 2004
2,312
US
I've been researching this and have to think there's a way to do this, but I'm not finding an example... Anyhow, how do you display a control by itself and retrieve the data off of it? Like be able to click on something and then popup a TEdit control?

It is not possible for anyone to acknowledge truth when their salary depends on them not doing it.
 
you mean like your own custom control?
or creating a control at runtime?

/Daddy

-----------------------------------------------------
What You See Is What You Get
Never underestimate tha powah of tha google!
 
or creating a control at runtime?

Just creating the control to show in and of itself. What I'm trying to do is put a TTrackBar beside a PopupMenu, but any of the subordinate controls will work for the purpose.

It is not possible for anyone to acknowledge truth when their salary depends on them not doing it.
 
That's what I've always done, put it virtually in its own form. I've wrapped controls into a component of their own which are free-laying on the screen, and a parent form (for moving, resizing, etc.). I even made a component set for most of the common controls only which can be released from the form and placed anywhere on the screen, then since they're still linked to the master parent form, when I move or minimize that the controls can automatically go with it, etc. It's also fun to play with transparent background colors and alpha blend, and make misc. shaped forms for these controls. Unfortunately this is part of a large component set of mine I don't simply hand out. I may extract one of my examples and post it here for you, I need to split the components up first though, which will be a bit of work (dependencies with other common units of mine).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top