www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Narrow Windows Borders with SDL and D

reply "Bernard Helyer" <b.helyer gmail.com> writes:
Perhaps someone more Windows savvy than I can figure this mystery 
out. When creating windows through SDL via D, the windows created 
-- when viewed with Windows Classic, Aero Basic, or Luna (on XP) 
-- have minimal border padding, like so:

http://i.imgur.com/48atZ.png (basic)
http://i.imgur.com/47R38.png (classic)

and looking hale and healthy

http://i.imgur.com/xNchn.png (aero)

Now. I seem to dimly recall that this has something to do with 
the window style -- but AFAIK that shouldn't change because SDL's 
code doesn't change in this instance. So could OPTLINK have some 
influence on such things? Aside from that it works fine, so it's 
just an aesthetic matter -- and not a huge one as it looks fine 
with full Aero.
Jun 25 2012
next sibling parent "Bernard Helyer" <b.helyer gmail.com> writes:
Looks like one of the styles ( 
http://msdn.microsoft.com/en-us/library/windows/desktop/ms632600(v=vs.85).aspx 
) is being set or not set. WS_THICKFRAME or WS_BORDER look like 
likely candidates.
Jun 25 2012
prev sibling next sibling parent Johannes Pfau <nospam example.com> writes:
Am Mon, 25 Jun 2012 20:08:08 +0200
schrieb "Bernard Helyer" <b.helyer gmail.com>:

 Perhaps someone more Windows savvy than I can figure this mystery 
 out. When creating windows through SDL via D, the windows created 
 -- when viewed with Windows Classic, Aero Basic, or Luna (on XP) 
 -- have minimal border padding, like so:
 
 http://i.imgur.com/48atZ.png (basic)
 http://i.imgur.com/47R38.png (classic)
 
 and looking hale and healthy
 
 http://i.imgur.com/xNchn.png (aero)
 
 Now. I seem to dimly recall that this has something to do with 
 the window style -- but AFAIK that shouldn't change because SDL's 
 code doesn't change in this instance. So could OPTLINK have some 
 influence on such things? Aside from that it works fine, so it's 
 just an aesthetic matter -- and not a huge one as it looks fine 
 with full Aero.

Probably related to this? http://stackoverflow.com/questions/10878586/same-exact-code-in-c-and-d-give-different-results-why
Jun 25 2012
prev sibling next sibling parent "Kapps" <opantm2+spam gmail.com> writes:
On Monday, 25 June 2012 at 18:08:09 UTC, Bernard Helyer wrote:
 Perhaps someone more Windows savvy than I can figure this 
 mystery out. When creating windows through SDL via D, the 
 windows created -- when viewed with Windows Classic, Aero 
 Basic, or Luna (on XP) -- have minimal border padding, like so:

 http://i.imgur.com/48atZ.png (basic)
 http://i.imgur.com/47R38.png (classic)

 and looking hale and healthy

 http://i.imgur.com/xNchn.png (aero)

 Now. I seem to dimly recall that this has something to do with 
 the window style -- but AFAIK that shouldn't change because 
 SDL's code doesn't change in this instance. So could OPTLINK 
 have some influence on such things? Aside from that it works 
 fine, so it's just an aesthetic matter -- and not a huge one as 
 it looks fine with full Aero.

I can't find the post that I'm thinking of, but I remember this being discussed before. Essentially, it's something with Optlink that you can disable that makes Windows think it should use outdated styles.
Jun 25 2012
prev sibling next sibling parent "Roman D. Boiko" <rb d-coding.com> writes:
On Tuesday, 26 June 2012 at 02:02:05 UTC, Kapps wrote:
 I can't find the post that I'm thinking of, but I remember this 
 being discussed before. Essentially, it's something with 
 Optlink that you can disable that makes Windows think it should 
 use outdated styles.

Did you mean this question: http://stackoverflow.com/questions/10878586/same-exact-code-in-c-and-d-give-d fferent-results-why ?
Jun 25 2012
prev sibling next sibling parent "Bernard Helyer" <b.helyer gmail.com> writes:
On Tuesday, 26 June 2012 at 06:18:42 UTC, Roman D. Boiko wrote:
 On Tuesday, 26 June 2012 at 02:02:05 UTC, Kapps wrote:
 I can't find the post that I'm thinking of, but I remember 
 this being discussed before. Essentially, it's something with 
 Optlink that you can disable that makes Windows think it 
 should use outdated styles.

Did you mean this question: http://stackoverflow.com/questions/10878586/same-exact-code-in-c-and-d-give-d fferent-results-why ?

Thanks guys. :D
Jun 26 2012
prev sibling parent "nazriel" <damian dzfl.pl> writes:
On Tuesday, 26 June 2012 at 06:18:42 UTC, Roman D. Boiko wrote:
 On Tuesday, 26 June 2012 at 02:02:05 UTC, Kapps wrote:
 I can't find the post that I'm thinking of, but I remember 
 this being discussed before. Essentially, it's something with 
 Optlink that you can disable that makes Windows think it 
 should use outdated styles.

Did you mean this question: http://stackoverflow.com/questions/10878586/same-exact-code-in-c-and-d-give-d fferent-results-why ?

as always... OPTLINK'zilla !
Jun 26 2012