Solved

Frames with scrolling ability

Posted on 2001-07-20
6
313 Views
Last Modified: 2012-06-21
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
0
Comment
Question by:knel1234
6 Comments
 
LVL 5

Expert Comment

by:dredge
Comment Utility
why don't you just use a datagrid? it's much more simple.
0
 
LVL 3

Author Comment

by:knel1234
Comment Utility
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
0
 
LVL 38

Accepted Solution

by:
PaulHews earned 125 total points
Comment Utility
Dynamically Add Controls and Create a Scrollable Form

http://www.thescarms.com/VBasic/DynamCtls.asp
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 16

Expert Comment

by:Richie_Simonetti
Comment Utility
Paul, doing you advise to use scrollable form?
0
 
LVL 38

Expert Comment

by:PaulHews
Comment Utility
It's actually a frame control in the example, but you could use any container like this.
0
 
LVL 3

Author Comment

by:knel1234
Comment Utility
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
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now