forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Caption / Menu Separation

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+
View previous topic :: View next topic  
Author Message
EKruck



Joined: 09 Jan 2010
Posts: 224
Location: Aalen, Germany

PostPosted: Wed Jan 15, 2020 10:36 am    Post subject: Caption / Menu Separation Reply with quote

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?
Back to top
View user's profile Send private message Visit poster's website
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7916
Location: Salford, UK

PostPosted: Wed Jan 15, 2020 10:54 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message AIM Address
EKruck



Joined: 09 Jan 2010
Posts: 224
Location: Aalen, Germany

PostPosted: Wed Jan 15, 2020 10:59 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Visit poster's website
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7916
Location: Salford, UK

PostPosted: Wed Jan 15, 2020 4:26 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message AIM Address
EKruck



Joined: 09 Jan 2010
Posts: 224
Location: Aalen, Germany

PostPosted: Wed Jan 15, 2020 4:44 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Visit poster's website
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7916
Location: Salford, UK

PostPosted: Thu Jan 16, 2020 7:19 am    Post subject: Reply with quote

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].
Back to top
View user's profile Send private message AIM Address
EKruck



Joined: 09 Jan 2010
Posts: 224
Location: Aalen, Germany

PostPosted: Fri Jan 17, 2020 8:59 am    Post subject: Reply with quote

I found "new enhanced menus" and tried all possibilities without any effect.
Code:
    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')
Back to top
View user's profile Send private message Visit poster's website
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7916
Location: Salford, UK

PostPosted: Fri Jan 17, 2020 9:11 am    Post subject: Reply with quote

Can you post the coding for %em so that I can check this for you.
Back to top
View user's profile Send private message AIM Address
EKruck



Joined: 09 Jan 2010
Posts: 224
Location: Aalen, Germany

PostPosted: Fri Jan 17, 2020 9:36 am    Post subject: Reply with quote

Code:
    MA = WINIO@ ('%em[w7]&')
    MA = WINIO@ ('%em[w8]&')
    MA = WINIO@ ('%em[theme1]&')
    MA = WINIO@ ('%em[theme2]&')
    MA = WINIO@ ('%em[background=#303030]&')
Back to top
View user's profile Send private message Visit poster's website
LitusSaxonicum



Joined: 23 Aug 2005
Posts: 2388
Location: Yateley, Hants, UK

PostPosted: Fri Jan 17, 2020 12:19 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7916
Location: Salford, UK

PostPosted: Fri Jan 17, 2020 4:57 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message AIM Address
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7916
Location: Salford, UK

PostPosted: Mon Jan 20, 2020 2:24 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message AIM Address
John-Silver



Joined: 30 Jul 2013
Posts: 1520
Location: Aerospace Valley

PostPosted: Mon Jan 20, 2020 5:00 pm    Post subject: Reply with quote

Eddie, your CorelDraw problem apparently is Win10 origin not qny new version of CorelDraw, did you find This trick To Fix It ?
_________________
''Computers (HAL and MARVIN excepted) are incredibly rigid. They question nothing. Especially input data.Human beings are incredibly trusting of computers and don't check input data. Together cocking up even the simplest calculation ... Smile "
Back to top
View user's profile Send private message
LitusSaxonicum



Joined: 23 Aug 2005
Posts: 2388
Location: Yateley, Hants, UK

PostPosted: Tue Jan 21, 2020 4:17 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+ All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group