I placed a few controls (including a DataList) on top a frame control.
Now when I set the height of the datalist control to a height higher from the frame then the datalist get cutted on the edge of the frame control.
How can I overcome this, means the datalist will still be place on top of the fram control, BUT when the datalist heigh is higher than the height of the frame control , the datalist will not be cutted off
Thanks in advance for your help
Daniel
17-01-2003 at 09:06 AM
|
JLRodgers Level: Moderator Registered: 04-04-2002 Posts: 1617
Re: How to Place a Datalist on top a frame
You have to make the frame bigger. A frame could be thought of as a mini-form or screen. For the controls, that's all the space that is.
____________________________ Everywhere's Local (classifieds, job postings, & more for everycity in the world - user entered)
17-01-2003 at 02:17 PM
|
vbgen Level: Moderator Registered: 10-10-2002 Posts: 876
Re: How to Place a Datalist on top a frame
in addition to JL's post...
you can do this by increasing the height of the frame at the same time that you increase the height of the control, okay? you don't necessarily have to increase the frame's height equally, you might have to increase the height by that of the increase of height in the control, plus 120, or 240... but really, it depends on the design of your frame with the controls in it.
____________________________
Been busy trying to take a second degree <--it's not working out...
17-01-2003 at 02:30 PM
|
Daniel Level: Guest
Re: How to Place a Datalist on top a frame
OK. How can I make it to behave similar to the combobox.
The combobox even placed on top of a frame control, it opens it's full height even if it's higher then the height of the fram control.
I assume it's something to do with API calls....
Any ideas?
Thanks,
Daniel
18-01-2003 at 06:38 PM
|
JLRodgers Level: Moderator Registered: 04-04-2002 Posts: 1617
Re: How to Place a Datalist on top a frame
It uses API calls to draw the menu on top of everything including other windows (if they'd happen to popup on top of your program).
Um... a frame is supposed to contain controls, if you realy want the controls to extend past the frame you're bypassing what the frame's intended to do - get rid of the frame (especially since a datalist isn't a dropdown menu).
EX: (the frame and form)
-Frame-----------------------
| ListControl |
-----------------------------
Why would you want it to look like:
-Frame----------------------
| ListControl |
- -
If you made the list control extend past the boundaries (with the list being visible) you wouldn't see the frame, so the frame's useless. If you really want the frame top part, just put an empty frame on the form with a height just large enough for a caption.
IE:
-Frame---------------------
ListControl
[Edited by JLRodgers on 18-01-2003 at 01:57 PM GMT]
____________________________ Everywhere's Local (classifieds, job postings, & more for everycity in the world - user entered)
18-01-2003 at 07:55 PM
|
Daniel Level: Guest
Re: How to Place a Datalist on top a frame
Hi,
The reason placing the datalist control on topof a frame is because there are a lot of controls in that form and they are grouped and displayed according to several conditions.
Now, How it's done in the combobox? as there the list of the combobox do pass the limit of the frame buffer