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 Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rounded corners for rectangles on a form?

Status
Not open for further replies.

gusbrunston

Programmer
Feb 27, 2001
1,234
US

Hi.

Of course, if it's a rectangle it won't have rounded corners. But I think my reports would look swell (read: cool, neat, awesome) if I could display some of the information in boxes with rounded corners. Can this be done?

Thanks for your attention.

:) Gus Brunston
An old PICKer
padregus@home.com
 
If the "rectanlge" has a fixed size and position in a section, you could draw it with a set of Line and Circle statements...

Not a swell solution....
 
Can't "Draw" on Ms. Access FORMS, just reports, so this approach would leave something to be desired -atn least in terms of commonallity of forms / reports and overall apperance.

In terns of the necessity of constant size, I do not see why this wouls be a concern. After all if you "know" the parameters (Left, Top, Height, Width), the drawing is the same. Where I do see an issue is the placement of the drawn shape at the top/bottom of the report. In particular where the addition of the drawn control forces the newpage.

MichaelRed
m.red@att.net

There is never time to do it right but there is always time to do it over
 
Sure! I don't pay attention to the fact it was about Forms as it was in the Report forum.

My concern about constant size is about the capability of retrieving the actual size of the controls to recalculate positions and lenghts of lines and circles...

In a form... but to paste a picture of such a "rounded" rectangle drawn with ?MS-Draw with a transparent background..
 
Oh, you mean you would draw / save a "Picture" for each such box, then just "Load" it as a picture Image over the actual Control? Hmmmmmmmmmmmmmmmmm, Interesting ... Verrrrrrrrrrry Interrresting. But -ultimatly- much to sloooooooooooooooooooooooooow for my taste -unless, or course, there are a minimal number of these 'widgets'. Then, again, perhaps that is why you restrict this to the Fixed sizes. That way you could 'draw' / Save them off line and just do the load / position stuff at run time? Then the real "issue" would become distribution?

MichaelRed
m.red@att.net

There is never time to do it right but there is always time to do it over
 
I'm sorry, mea culpa, lo siento:

I meant reports but I wrote forms. :~/ Thanks for your attention to my post. I'll try to be more precise in the future.

The report I'm working on has three "boxes" for information: a summary, transactions for the month ending..., and year-to-date. They would have to grow according to the number of lines (records) that appear in the sub-reports. Really, just a whim.

Thanks again.

Gus Brunston
An old PICKer
padregus@home.com
 
I'm afraid that if your section "can grow" you are in a mess, cause I don't find how to get the actual size of a section during Formatting or Printing. In every event procedure (Print, Format, Page) I tried we desesperatly get the design size!

In the other hand you can draw a rounded rectangle with four Line and four Circle statement.

If anybody know about getting the actual height of a form section you could fulfil your whim....
 
Hi Gus ! ;-)

As above, if the field is not allowed to grow, theres no reason you couldn't draw a rounded cornered rectangle in some other image program, then place this image 'behind' your field and have your field borders white or transparent. If the section has to grow, you'll have to do it in pieces: a pretty good example is the page you're on right now where the top, sides and bottom images are all allowed to grow or repeat depending on the length or height required - the composite creating the illusion. If your record source isn't too 'heavy', adding a handful of images won't cause a noticable speed issue unless you're running on a really small computer.

Hope that helps a little! Gord
gord@ghubbell.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top