Frames are correctly Etched in the Designer but not at run-time.

J

Jim Luedke

Excel 2002's Frames are drawn wrong.

When a standard Windows 3-D-style .SpecialEffects is selected, at
runtime only 3 borders have the correct appearance.

For example, if .SpecialEffects = fmSpecialEffectEtched or Raised, at
runtime the top edge is a crummy single, 2-D line.

Yet *it's correct in the designer*. All 4 borders are Etched, as they
should be.

Two, seemingly for all values of .SpecialEffects, both in the designer
and running, shouldn't the caption of a disabled Frame have Windows's
standard grayed-out, 3-D Etched appearance?

Instead, the caption has a miserable Windows 3.1-era, 2-D appearance.

It looks like hell. Doubly so, in fact, because it contrasts with the
controls inside your Frame which are implemented correctly.

Am I doing something wrong?

Or, if this is a glitch, has it been fixed since 2002?

Thanks.

***
 
P

Peter T

Excel 2002 is the only version I don't have. However I'd be surprised if the
Excel version is related to what you describe. All of what you mentioned (4
etched borders & greyed caption when disabled) work fine in all other
versions, including 97 & 2000.

Try a reboot and a new project with a single frame on a form.

Regards,
Peter T
 
J

Jim Luedke

Peter:

Thanks very much for reply.

You beat me to the punch ... I was just about to post this update.

***

For some reason, all 4 borders of my Frame now look fine--i.e. are
etched--at runtime.

But that top border did look hooey before. As I said, it was a single,
un-etched, 2-dimensional gray line.

About the only thing I I've changed since my post is: Before, the
topmost control inside the Frame was a CommandButton whose Default
property was True, so when everyone was disabled it still had thin
black border. I have since toggled it to False.

Plus I've been playing with control positions a little.

Other than that, I have no clue. (Gee, people tell me that all the
time.)

***

Of course, when disabled, the Frame's caption is still 2-D gray, not
etched. I guess that must be standard Windows practice.

I think it'd look better if it were etched just like the borders, when
disabled. After all, all other controls' (e.g. command buttons)
captions are etched when disabled.

Anyway, since the top border has the proper etched appearance, the
caption's not being etched isn't that visually disturbing.

***

Thanks much again to you Knights of the Web for perennial guidance.

***
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top