replica nfl jerseysreplica nfl jerseyssoccer jerseyreplica nfl jerseys forums.silverfrost.com :: View topic - Problem getting a Window at MAXIMUM Useable Screen Size
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 

Problem getting a Window at MAXIMUM Useable Screen Size
Goto page Previous  1, 2, 3  Next
 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+
View previous topic :: View next topic  
Author Message
LitusSaxonicum



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

PostPosted: Thu May 07, 2015 2:08 pm    Post subject: Reply with quote

That's the frame or border or something.

For what it's worth, I spread my master window WINIO@s across a set of subroutines so that not one of them is too large. The WINIO@s for menus and toolbars in particular can get very long and intricate. If you get a bug, it's easier to find if it isn't the 132nd continuation!

Perhaps we need an option sub-maximise to show the frame. I'd like one for %gr which would be 'fill the whole remaining client area'.

Eddie
Back to top
View user's profile Send private message
LitusSaxonicum



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

PostPosted: Sat Aug 22, 2015 7:05 pm    Post subject: Reply with quote

One of my computers has updated itself to Windows 10, and I note that this appears to have no frame round an application, or perhaps it is 1 pixel.
I have been coping with different screen resolutions and versions of Windows AND different font settings (logical dpi) by keeping a database of sizes to set my %gr area, in order to make it fill the maximum usable size of window after allowing for the caption and menu bars, my toolbars, the frame and the taskbar. Windows 10 lies about the width/height of frame, saying it is 8 pixels when it is not. Windows also lies about the screen resolution using :
Code:

       IXT=GetSystemMetrics(SM_CXFULLSCREEN)
       IYT=GetSystemMetrics(SM_CYFULLSCREEN)


if the logical dpi setting is changed.

Faced with producing a number of revisions to the database, something snapped inside. I set about working out what size Clearwin+ chooses for a window once all the controls are placed. Using a %gd grid I found that the width of the client area selected by Clearwin+ is always an integral number of multiples of the standard cell size obtained using:

Code:
       KXT = CLEARWIN_INFO@('PIXELS_PER_H_UNIT')


plus one pixel.

As this is typically 8 pixels per H UNIT, the reason why some values don't work nicely became clear: if I sized my %gr a little smaller, then I would get a bit of 'border' to the right of it, and if I made it larger than would actually fit (relying on a %ww[maximise] to reduce it to fit the screen), then the %gr size reported with 'GRAPHICS_WIDTH' would always be too small, i.e. be reported smaller than it actually is during a RESIZE event! The former is an aesthetic issue, but the latter affected the rulers I drew on the screen.

Clearwin+ does not seem nearly so fussy about setting the overall height of a window.

Eddie
Back to top
View user's profile Send private message
LitusSaxonicum



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

PostPosted: Fri Sep 11, 2015 11:55 am    Post subject: Reply with quote

Once Windows 10 had completely installed, I have had (so far) no problem running anything, although to be fair I don't stress FTN95's applications much.

Buttons etc have gone back to being square-cornered as in Win95. Toolbars with %ib and %tb are the same as before, although toolbars made from %bb grey-out better than before (I use the variant where the icon remains coloured even when the button is greyed. The variant where the icon greys too turns a lot of icons into 'blobs'. This happens in %ib too, although there are ways of getting round it, they take a lot of work). The' button-press' illusion in %ib is not the normal paradigm in Windows 10 (and I'm beginning to forget Windows 8.1!), and even my icons in %tb form are too '3D' to match properly. However, the application that uses them most has 27 toolbar options, with 4 states to draw for each button (up, down, selected, greyed) making over a 100 drawings to do for each variant (normal, large font blah blah blah).

As the caption bar is the same colour as the top level menu names, they aren't differentiated well, but for Microsoft applications with a 'ribbon' this is less obvious because those top-level menu names are surrounded with a line that gives the illusion of being a tab.

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
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
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