knel1234
asked on
Frames with scrolling ability
Hi all,
Hopefully, I will be able to explain this without a diagram.
I am querying a db and retrieving a timestamp and remarks.
I need to display the remarks linked to that timestamp and there can be 1 to n of them.
I was told to place the 2 text boxes(the text box for the remarks needs to scroll) in a frame and then to create the frames dynamically. Of couse, I would need to put all these frames in something that scrolls? Does anyone have/know of a way to have 1 to n frames in something that scrolls?
I tried to do this with text boxes in frames in a "vselastic" and had no luck. In addition, any examples of dynamic controls would be great. I am using "control.add", but I want to see if there are any "cool" ways of doing this.
thanks
knel
Hopefully, I will be able to explain this without a diagram.
I am querying a db and retrieving a timestamp and remarks.
I need to display the remarks linked to that timestamp and there can be 1 to n of them.
I was told to place the 2 text boxes(the text box for the remarks needs to scroll) in a frame and then to create the frames dynamically. Of couse, I would need to put all these frames in something that scrolls? Does anyone have/know of a way to have 1 to n frames in something that scrolls?
I tried to do this with text boxes in frames in a "vselastic" and had no luck. In addition, any examples of dynamic controls would be great. I am using "control.add", but I want to see if there are any "cool" ways of doing this.
thanks
knel
why don't you just use a datagrid? it's much more simple.
ASKER
dredge,
I have a vsflexgrid, but I cannot get the wordwrap to behave properly, nor does it have scrolling capability.
I could be wrong but will a data grid allow scrolling on a cell? In addition, I need to alternate colours on every other frame. Im not sure I can do either with a datagrid.
knel
I have a vsflexgrid, but I cannot get the wordwrap to behave properly, nor does it have scrolling capability.
I could be wrong but will a data grid allow scrolling on a cell? In addition, I need to alternate colours on every other frame. Im not sure I can do either with a datagrid.
knel
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Paul, doing you advise to use scrollable form?
It's actually a frame control in the example, but you could use any container like this.
ASKER
I ended up using part of your suggestion. I do have the advantage of vselastics. I put a vselastic "on right" and "on bottom". Next, I placed a datagrid on top of the right and bottom vselastics (each grid was 2 rows and 2 columns) I then sized the grids to put a scroll bar in cell 1,1. Next I put another vselastic with as "as fill". I put a picture box in that elastic. I coded for scrolling and resizing and viola...I got what I needed. If anyone would like any further details then please let me know.
knel
knel