Pop up a form relative to a Control?
Publicado: Jue Jun 20, 2013 1:52 pm
Hi,
I am trying to display a small form with a dbbrowse in it to allow the user to 'pick' values without typing directly into an edit. We use these a lot in our xharbour console apps.
I want to have the small form appear close to the TEditBtn that calls it so in my mind I want to make the TEditBtn the parent for the small form?
Maybe that is a problem, also the 'calling form is modal?
Whenever I make the form with a nTop & nLeft it always shows relative to my monitor Top, Left. The same if I use :setbounds(...), I am always relative to my monitor.
I have taken a look at TDateEdit to see how that is done but it does not use a popup form and is bit advanced for me and I would prefer the popup to be a form.
Is there something I am doing wrong, maybe you can make a Forms parent = to a TEditBtn??
Any assistance would be appreciated.
Thanks
Chris
Attached files
I am trying to display a small form with a dbbrowse in it to allow the user to 'pick' values without typing directly into an edit. We use these a lot in our xharbour console apps.
I want to have the small form appear close to the TEditBtn that calls it so in my mind I want to make the TEditBtn the parent for the small form?
Maybe that is a problem, also the 'calling form is modal?
Whenever I make the form with a nTop & nLeft it always shows relative to my monitor Top, Left. The same if I use :setbounds(...), I am always relative to my monitor.
I have taken a look at TDateEdit to see how that is done but it does not use a popup form and is bit advanced for me and I would prefer the popup to be a form.
Is there something I am doing wrong, maybe you can make a Forms parent = to a TEditBtn??
Any assistance would be appreciated.
Thanks
Chris
Attached files