« first day (1136 days earlier)      last day (3821 days later) » 

user3010322
7:00 PM
Okay, resizing works now
 
user3010322
@melak47 How do you handle moving a borderless window, again?
 
user3010322
Is that just, you have to use the ALT-MOVE stuff?
 
no
you can click and drag my window anywhere to move it
 
user3010322
=[
 
I just returning HTCAPTION or whatever everywhere
the bunch of ifs are for resizing the borderless window
 
user3010322
7:01 PM
Yeah, I can see that
 
user3010322
I don't think I want it movable, though
 
user3010322
I mean, maybe. I dunno.
 
well, depends. if you want to be able to click and stuff...without hiding/disabling/??? the mouse, you probably don't want it movable
 
user3010322
It would be awkward if you were in the game and then suddenly it wanted to start moving the window for you.
 
user1804599
Hmm.
 
7:02 PM
yeah :p
 
user3010322
So I think this is great, for now.
 
user1804599
Documentation doesn’t mention whether Seq.choose is lazy or not. :|
 
user3010322
My only other problem is that whe I click on the window to bring it to focus,
 
user3010322
I get a hazy border around the edge
 
hazy?
screenshot plox
 
user3010322
7:04 PM
 
oh, that
I think clearing your window with the background color gets rid of that :)
if not...i'm thinking of something else :/
 
user3010322
Hm.
 
user3010322
Maybe I should send a clear background message everytime the window comes back into focus
 
you don't really need it if you're drawing stuff to the widnow
 
user3010322
I'll put it in anyways.
 
user3010322
7:05 PM
It can't hurt.
 
user3010322
You know what I should do?
 
user3010322
To make the window movable, top 4 pixels are for resize, next 4-8 are for moving
 
user3010322
That'll feel more natural to the user, a little less surprise-y.
 
could work. if there's nothing the user wants to click :D
 
user3010322
Yeh.
 
user3010322
7:07 PM
I have a boolean on Win32WindowDriver
 
user3010322
For these kinds of things
 
user3010322
manipulate behavior and shit.
 
hmm
I want to sleep but I feel so shit
 
@DeadMG look at my terrible parameter type detection templates, that'll make you feel better :D
@ThePhD oh, I just checked - just doing ShowWindow(hwnd, SW_MINIMIZE); with an aero window automatically gets you the standard minimize animation.
 
The question you should ask yourself is How can I do this by hand?. If you don't understand the problem, you can't write a program to solve it. — Hunter McMillen 13 mins ago
^ this
 
user3010322
7:10 PM
@melak47 That's good to know, I've been forcing AnimateWindow for the while time.
 
user3010322
Guess I'll stick with ShowWindow
 
user3010322
How do I mark a window as "Aero" ?
 
user3010322
Or is that the OS's job?
 
@DeadMG if you sleep now, you are better prepared to help me with A* later :D
 
@ThePhD by not stripping the window frame from it by just using WS_POPUP as a style
 
7:11 PM
Speaking of which.
I was thinking.
 
uh oh
 
What if no path exists?
 
return {};
 
user3010322
@melak47 Yeah, I've got WS_POPUP on it.
 
@ThePhD but not only that
 
7:11 PM
@melak47 what direction do you chose then?
 
@Pawnguy7 death
 
user3010322
WS_POPUP, WS_MAXIMIZEBOX, WS_MINIMIZEBOX
 
@ThePhD you'll need WS_THICKFRAME or something, I think
 
@melak47 that is my least favorite direction
 
user3010322
Nah.
 
user3010322
7:12 PM
WS_THICKFRAME (WS_BORDER) isn't exactly a requirement for the borderless kind.
 
Consider if a human player tried enclosing a cpu. No path exists.
 
without that, I don't think you'll get the shadow and animations
 
user3010322
IF you make it bordered, then yes, WS_THICKFRAME is mandatory.
 
The ideal movement is to survive as long as possible.
 
@ThePhD the thing is you don't want a borderless window. you want a regular bordered window, and trick windows into disappearing the border by returning 0 to NCCALCSIZE
 
user3010322
7:13 PM
Hm.
 
that's how you get the aero stuff
if your window isn't considered resizeable (from looking at the style it has), you don't get aero stuff.
 
user3010322
Hm.
 
to get it resizeable, you need THICKFRAME or something
 
user3010322
I don't have WS_THICKFRAME on it and I canstill make it resizable by returning the HITTEST (HT_*) defines in the NCHITTEST msg.
 
user3010322
And it still ends up being "borderless"
 
user3010322
7:15 PM
Albeit, maybe it's not considered an aero window?
 
yeah, that lets you resize it, but it doesn't look resizeable to windows (man I can't type windows today)
 
user3010322
Winblows
 
try using WinKey + Left/Right to snap it to the left or right side of the screen
if it does nothing, you don't have aero stuff
 
user3010322
It's working
 
user3010322
I think WS_POPUP is enough to trigger the aero style, maybe?
 
7:17 PM
maybe I needed the THICKFRAME for the shadow then
 
user3010322
Well
 
user3010322
If you look at my Screenie
 
user3010322
I have no shadow.
 
user3010322
Or at least, that's what it looks like
 
you don't get it automatically, you have to turn it on by cheating
 
user3010322
7:17 PM
I'm using DwmExtendClientIntoSomethingSomething
 
I don't think that does anything when you don't have a frame
are you on win7 or 8?
on win7 the shadow is rather large and noticeable
 
user3010322
Win8
 
user3010322
I could send you a test exec
 
user3010322
See if it runs for you
 
on win8 it's really tiny
yeah :)
 
user3010322
7:19 PM
Yeah, I can't tell
 
put it against SO chat
 
user3010322
It was
 
user3010322
Do you see that screenshot?
 
if you've fixed your weird focus thingy, and you can make out the border of the thing, you have the shadow
 
user3010322
I looked there and checked again, even after resizing it a bunch
 
user3010322
7:20 PM
Argh
 
user3010322
Border problem keeps ocming back
 
user3010322
Goddamnit
 
user3010322
Hold on
 
just clear in the main loop like I did (I think)
 
user3010322
On WM_ACTIVATE
 
7:21 PM
wut
 
user3010322
I'm just going to fire an ERASE_BCKGRND message or whatever
 
        InvalidateRect(window.hwnd, nullptr, true);
 
user3010322
o.0
 
that's what I do.
 
user3010322
Yeah
 
user3010322
7:21 PM
on WM_ACTIVATE I'll add that
 
fire it whenever, but in the main loop definitly works! :p
 
user3010322
So I don't have to do it manually
 
@Mysticial oh well. I'll just ignore the fact that this means literally nothing to me. Categorizing? Review queue? I know I know. I'm lazy :|
 
user1804599
routes
|> Seq.choose (fun route -> route request)
|> Seq.head
 
@ThePhD >inb4 recursive WndProc calls to infinity :3
 
user1804599
7:24 PM
Laziness is nice. :3
 
> I'm too lazy to talk to women. It helped my to stay pure.
 
user3010322
@melak47 Lol. We'll find out!
 
user1804599
lol revision 19
 
user1804599
> IF YOU GUYS ROLL BACK AGAIN, I AM CHANGING MY NICK TO " ALLAH AKBAR " AND YOU WILL ALL LOOK LIKE JIHAD CLUB MEMBERS OF OSAMA BIN LADEN.
 
7:30 PM
huh. MSVC is reporting test::void f() as __cdecl, I thought member functions were __thiscall?
or are they only __thiscall if they actually use this :E
 
user1804599
What do communists and functional programmers have in common?
They hate classes.
 
Ell
> The computers I have to work with only support OpenGL 1.4.
Holy lord
 
user3010322
@melak47 It gets rid of the funky border
 
user3010322
With WM_ACTIVATE
 
user3010322
BUT, now when I do a window move, it also makes the funky border
 
user3010322
7:33 PM
So I gotta handle the window dragging case. =/
 
bahahaha >:3
 
user3010322
No idea what messages I get there.
 
WM_SIZEMOVE? possibly :E
 
Xeo
> ok i got my answers, we can delete this post now, i am not helping google users.
wow
just wow
 
user3010322
... Wtf, now it's not making the funky border anymore. :c
 
7:34 PM
you'll probably need to handle resizing anyway....or not? so it can't hurt :3
 
user3010322
WTF
 
user3010322
It's not happening anymore Dx
 
have you tried turning it off and on again? (borderless mode I mean)
 
user3010322
I didn't change the code and it stopped misbehaving
 
user3010322
what do x_x
 
user3010322
7:35 PM
I haven't tried that yet.
 
dynamically switching can be fun too. have to get the show()s and style changes and DwmExtendFramebla calls in the right order :)
 
user3010322
=[
 
user3010322
I'll do that.. ... later.
 
hehe
 
user3010322
For now, it resizes, moves, etc. just fine
 
7:36 PM
so, now do you see a shadow or not?
because I honestly couldn't tell with the funky border before
 
Xeo
> This account is temporarily suspended for rule violations. The suspension period ends on Feb 1 '27 at 19:59
 
user3010322
I can't tell anymore.
 
Xeo
Gotta love eternal temporary stuff
 
@ThePhD it's simple really: against a white background, can you see your window at all?
 
user1804599
@Xeo lol
 
user3010322
7:37 PM
@melak47 I need a truly white background, though.
 
Xeo
I wonder if they throw a dart at a wall with all the dates from 2025+
 
user3010322
Gonna jimmy one up in paint.
 
user3010322
The other thing I need to master is making my window slightly Transparent.
 
Xeo
And then spin the hands of a clock for the time
 
@ThePhD good thing you already did DwmExtendFrameIntoClientArea
I've found that the blending mode for transparent windows seems to suck badly though :/
and I wasn't able to change it, but maybe I didn't try hard enough
 
user3010322
 
yeah, you have windows' 8 glorious window shadow
 
user3010322
._.
 
user3010322
How lovely
 
user3010322
But at least it's there
 
user3010322
And borderless
 
user3010322
7:39 PM
@melak47 How do I even get it transparent?
 
user3010322
Is that a thing I can even do?
 
@ThePhD yeah
you extend the frame into the client area...
and then it's transparent.
but the margins values are special, -1, -1, -1, -1
(I think)
 
user3010322
..... That's it?
 
yup.
 
user3010322
... How do I control the transparency level?
 
7:41 PM
with what you draw
your window buffer has an alpha channel
 
user3010322
Hm.
 
user3010322
const static MARGINS shadows = { 1, 1, 1, 1 };
const static MARGINS noshadows = { 0, 0, 0, 0 };
osresult r = DwmExtendFrameIntoClientArea( windowhandle, shadow ? &shadows : &noshadows );
 
user3010322
^ so, I need an if ( transparent ) and some extra code?
 
if you handle both in one function, I suppose yes
 
user3010322
7:43 PM
Can you have shadow AND trasparency?
 
shadow..and transparency...yes
and borderless? dunno
 
user3010322
So you have to call that function twice?
 
Ell
@melak47 nice
 
user3010322
DwmExtendFrameIntoCLientArea, that is?
 
@ThePhD nah :p transparent and bordered has shadows because bordered has shadows
borderless and transparent...I don't know :/
 
user3010322
7:45 PM
Well.
 
user3010322
About to find out.
 
user3010322
Gonna make Transparent part of the window styles.
 
I don't think you can have borderless and shadow and transparent...the only thing that allows you to get shadows on your borderless window is the frame inside the client area. with margins of -1, -1, -1, -1, there won't be any visible frame so no shadow, I think.
 
@melak47 thats one ugly teapot
 
@A.H. ;_;
 
7:52 PM
nice windows though !
 
user3010322
Uh
 
user3010322
melak
 
user3010322
If you don't draw anything to the window,
 
user3010322
is it supposed to just be white when you set it to be transparent?
 
I don't know. I've never done the transparent window thing without drawing to it with D3D
window background color is a solid white by default so it could be supposed to be like that :p
 
user3010322
7:54 PM
Well
 
user3010322
I haven't even created the GraphicsDevice yet ._.
 
user3010322
So, maybe it's just holding White by default.
 
user3010322
The repo for that transparent window is still up, yeah?
 
uh, nope. :D
 
user3010322
=[[[[[[[[[[[[[[[[[[[[[
 
user3010322
7:55 PM
All my tears.
 
user3010322
Well, I guess I won't know if it goes transaprent until I verify GraphicsDevice is all set and working.
 
user3010322
Albeit, it could just be Windows 8 doesn't take too nicely to transparency
 
@ThePhD you won't get any blurry window, but transparency itself shouldn't be a problem
 
user3010322
Ugh
 
user3010322
I can't deploy my app away from its main directory, apparently
 
user3010322
7:58 PM
missing d3dcompiler_47
 
user3010322
And I'm only packing _46
 
wat
why
 

« first day (1136 days earlier)      last day (3821 days later) »