Silverfrost Forums

Welcome to our forums

Caption / Menu Separation

15 Jan 2020 9:36 #24868

Using Windows 10 in my formatted windows there is no separation between the caption and the following menu part. For both the background is white. %bg influences only the part below the menu. I would like to have a separation line between caption and menu or light grey background for the menu. How to get this?

15 Jan 2020 9:54 #24869

If this is for your own use only then you can set the theme of your desktop by right clicking and selecting Personalize. Then click on Theme in the left hand panel and select a different theme.

If this is for your users then the problem becomes much more difficult and I would have to think about that.

15 Jan 2020 9:59 #24870

I would like to change it for my customers. To move any formatted window on the screen, you have to pick into the caption area. Picking into the menu area has no effect. But one cannot see the difference.

15 Jan 2020 3:26 #24871

As I understand it, the position of the menu bar relative to the caption and the background colours of the caption and menu bar are dictated by the desktop 'theme'.

The end user can change the theme (which is a Microsoft attribute of the desktop). They can select one of the given Microsoft themes or they can provide their own customised theme. There are also lots of apps available on the internet that allow you to customise your own theme.

As far as I know ClearWin+ can do nothing to help.

15 Jan 2020 3:44 #24872

Of course, I know this. However, many customers are using the default where caption and menu bar have just white background.
Other development systems allow to make light grey background for the menu line.

16 Jan 2020 6:19 #24874

I have just remembered that %em might do the trick.

Search for 'enhanced menus' in ftn95.chm.

You could try %em[theme1] or %em[theme2].

17 Jan 2020 7:59 #24884

I found 'new enhanced menus' and tried all possibilities without any effect.

    iFontHandle = 0
    CALL SelectFont ()     ! Select font
    MA  = WINIO@ ('%fh&', iFontHandle) 

    MA = WINIO@ ('%ca@&', CA_STRING)
    MA = WINIO@ ('%mi[app_icon]&')
    
    MA = WINIO@ ('%nc[BG_MANAGER]&')
    MA = WINIO@ ('%rm&', CB_GETXT)
    MA = WINIO@ ('%bg&', RGB@(135,215,230))
        
    MA = WINIO@ ('%sp&', iCurrWinPosX, iCurrWinPosY)
    MA = WINIO@ ('%hw&', iWindowHandle)
    MA = WINIO@ ('%cc&', CB_EXIT)
    MA = WINIO@ ('%ew&', CB_EXIT)
    MA = WINIO@ ('%dl&', 2.0D0, CB_UPDCWW)

    MA = WINIO@ (%em .....

    MA = WINIO@ ('%mn[&File[]]&')
    MA = WINIO@ ('%?mn[[~Select &Project]]@&',  iAV_SeleDir,   CB_SELECT, 'Select BINGO project directory')
    MA = WINIO@ ('%?mn[[~Project &File]]@&',    iAV_SetProFil, CB_OPTI,   'Set BINGO Project File name')
    MA = WINIO@ ('%?mn[[&Access]]@&',                          CB_ACCESS, 'Remove ''ReadOnly'' status from all files in directory')
17 Jan 2020 8:11 #24885

Can you post the coding for %em so that I can check this for you.

17 Jan 2020 8:36 #24887
    MA = WINIO@ ('%em[w7]&')
    MA = WINIO@ ('%em[w8]&')
    MA = WINIO@ ('%em[theme1]&')
    MA = WINIO@ ('%em[theme2]&')
    MA = WINIO@ ('%em[background=#303030]&')
17 Jan 2020 11:19 #24892

I have huge sympathies for Erwin’s problem, because on moving to Windows 10 I noticed this issue, which was compounded by the version of CorelDRAW I was then using drawing not only the caption but also the menu bar labels in white! (White on white not being all that readable). The only solution I could find at the time was to spend £100s upgrading, with the end result that CorelDRAW decided that my old files should become unreadable as they were in formats no longer supported.

My own reading of such commentaries that are on the web is that this is a rather intractable problem, and certainly not the ‘fault’ of Silverfrost, FTN95 or ClearWin+, but something embedded in Windows.

Eddie

17 Jan 2020 3:57 #24894

Yes I can see that these options do not help.

I have added this to my list for investigation to see if the menu bar colour can be configured.

20 Jan 2020 1:24 #24904

According to the Microsoft documentation this should be possible via a call to the Windows API function SetMenuInfo but I can't get it to work.

21 Jan 2020 3:17 #24913

Thanks John,

But the money has already been spent. Anyway, it's a workaround. Most apps don't suffer from the problem, so the truth is out there.

Eddie

Please login to reply.