I think I like the look of the Window API Message with the text on White and the Buttons on Gray. You see these in the Clarion IDE like this one, and most Windows Apps.
This is a comparison of a Message in classic all Gray on the left and White / Gray on the right. I think I like the way the White pops out more than the all Gray that blends into the other windows.
That message has one line of text, a more typical message below shows the text is closer to the buttons gray box. I am using Segoe UI 10 point while the API about is 9 point.
I did this in Capesoft Message Box with the below code. It gets executed at the end of PrepareProcedure ROUTINE after ThisMessageBox class does its work.
WhiteGrayRtn ROUTINE !I want buttons on a GRAY Area 2x the hieght of a Button
DATA
Widow_Width LONG
Widow_Height LONG
Btn_YPos LONG
Btn_High LONG
Gap_Button EQUATE(7) !Microsoft likes 7 DLUs above/below in Layout Specifications: Win32
!https://docs.microsoft.com/en-us/previous-versions/windows/desktop/bb226818(v=vs.85)
More_White EQUATE(2) !Capesoft seem a little tight so +2 on White Space
GrayBoxFEQ LONG !New Gray box under buttons
GrayBoxHigh LONG !Box Height = 2 x Button Height
FEQ LONG
CODE
GETPOSITION(0,,,Widow_Width,Widow_Height)
GETPOSITION(?Button1,,Btn_YPos,,Btn_High)
GrayBoxHigh = Btn_High + 2 * Gap_Button !Gray is Button High + Gap Above and Below
0{PROP:Gray}=FALSE !Make Window White not Gray 3D
SETPOSITION(0,,,,Btn_YPos + GrayBoxHigh + More_White) !Window Height adjusted to Grey Box Height
GrayBoxFEQ=CREATE(0,CREATE:Box)
SETPOSITION(GrayBoxFEQ,0, Btn_YPos + More_White, Widow_Width, GrayBoxHigh) !Box will end up 2x Button
GrayBoxFEQ{PROP:Fill}=COLOR:BtnFace
UNHIDE(GrayBoxFEQ)
LOOP FEQ=?Button1 TO ?Button8
SETPOSITION(FEQ,,Btn_YPos + Gap_Button + More_White) !Move Button into Gray Box
END
EXIT
If you are coloring (makeover) the window other ways this may not work without changes. It doesn’t use the color Gray Per Se it uses System Color Button Face that will be based on the user color settings. You can adjust spacing as you like. Some old specs from Microsoft suggest 7 DLUs above/below the buttons. 6 might be better, you can decide.
If you have Capesoft Message you can try it out and see if you like it?
- Clarion All Gray Message
- API White / Gray Message
- Colored My Way
0 voters