Switch to the dark side!
Customize.org

Customize.org

Latest Discussion
2 weeks ago
2 weeks ago
2 weeks ago
More...

Post a new topic



Please help with StyleBuilder

2704
davidross says:

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)
2450
Frankenstein says:

Sysmetrics. Have a look in there for font colours.

Use magenta (255, 0, 255) to make the window borders invisible. They will always be 4 pixels in the width.

I'm half asleep so I hope that helps ;D

07:08 am (2 years ago)
2704
davidross says:

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.

11:17 am (2 years ago)
2704
davidross says:

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?

01:25 pm (2 years ago)
2837
Damzk says:

OK, not sure if I understood what you're asking but I'll respond from what I did.

1 - you have at least two approaches.

a - a borderless VS. Follow this tutorial http://www.hardwaregeeks.com/board/archive/index.php/t-10091
.html


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.


Ouch, that was long, hope that helps.

10:30 pm (2 years ago)
2704
davidross says:

Thanks a lot, Damzk: btnshadow did the trick. I'm going to check out the borderless VS tutorial now.

08:12 am (2 years ago)
 
   Arrow_up_small Top

Reply to this topic

You must register and become a member to post a reply.