For the first time, I'm using Stylebuilder to do a substantial amount of VS editing and I've come across 2 things that I can't seem to figure out. They'll probably seem like ridiculous issues but I have to ask anyway. First, how is the width of the FrameCaption coordinated with the width of the rebar and window underneath? Right now, these elements match if I include the FrameRight and FrameLeft parts but I don't want a window border. When I remove the FrameRight and FrameLeft parts, the rebar and window side edges are a pixel short of the FrameCaption on each side. The second issue also involves the rebar: I can't seem to find the property that controls the font color for the menu titles (File, Edit, View, etc.)displayed there. In particular, I want to use a different color for that text in active and inactive windows. If someone could help with these questions, I'd really appreciate it.
05:11 pm, Wednesday, August 22, 2007 (2 years ago)
Thanks a lot for responding but that didn't quite do it. As far as the FrameCaption/menu bar/window sizing issue goes, if I were to make the right and left frame parts invisible, I asume the result would be the same as if I omitted them: the rebar (menu bar) and window body would be less wide than the FrameCaption bar (i'm working from a template that uses the left and right frame parts). I could just color the left and right frame parts to match the window body but in my design, the menu bar is a different color than the window body so if i do that, those frame parts wouldn't match the menu bar. As far as the other issue goes, Sysmetrics has a MenuText color property but it doesn't allow different settings for active and inactive windows - that's what i'm trying to accomplish. At any rate, thanks for responding.
Maybe I'm thinking about the first issue in the wrong way: I'm trying to create an edgeless window where the window background and the menu bar (rebar) are different colors. StyleBuilder seems to require the use of the FrameLeft and FrameRight parts for the window body including the rebar to match the width of the frame caption bar. The problem is, the left and right frame parts can't match the color of both the rebar and the window background (when those are colored differently). I don't see any FrameLeft and FrameRight parts just for the rebar. Does anyone know how to accomplish this?
b - make the side frames with the colors you want to use and then use sizing margins property into each frame to set it the parts that will tile or strecht and leave the area you want for the menubar apart.
2 - Inactive color in menubar are set in two different ways. Even using VSs not all applications use all the elements of it. Example: notepad uses color as Windows Classic while others use the XP style.
So, inactive states are set with graytext in notepad and others that use mainly system colors, while applications that fully use XP colors have this color setted by the btnshadow color.