News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Moving things around the screen w/GDI

Started by NoCforMe, April 25, 2025, 11:54:11 AM

Previous topic - Next topic

zedd

Quote from: TimoVJL on April 28, 2025, 06:05:51 AM
Quote"it's 90% done with 90% to go"
does that mean, that there is still 9% left
90% of the remaining 10% = 9%...
I had to think about that for a moment.  :tongue:
:biggrin:  :skrewy:

NoCforMe

Quote from: TimoVJL on April 28, 2025, 06:05:51 AM
Quote"it's 90% done with 90% to go"
does that mean, that there is still 9% left  and 0.9 % abandoned and rest is tolerance :biggrin:

You're overthinking this.
How can I put it? It's like "what you think is the light at the end of the tunnel is the headlight of a train barreling towards you".
32-bit code and Windows 7 foreva!

TimoVJL

Quote from: NoCforMe on April 28, 2025, 06:29:17 AM
Quote from: TimoVJL on April 28, 2025, 06:05:51 AM
Quote"it's 90% done with 90% to go"
does that mean, that there is still 9% left  and 0.9 % abandoned and rest is tolerance :biggrin:

You're overthinking this.
How can I put it? It's like "what you think is the light at the end of the tunnel is the headlight of a train barreling towards you".
No, You're overthinking.
That 90% and 90% rule is simple, as it means, that hardest part is ahead ?
May the source be with you

NoCforMe

Quote from: TimoVJL on April 29, 2025, 12:52:21 AMThat 90% and 90% rule is simple, as it means, that hardest part is ahead ?

Bingo. You got it.
32-bit code and Windows 7 foreva!

NoCforMe

OK, here's another version. Probably the last, as this is about as far as I want to take this project.

Check it out: smoooove moves, and the object selection now makes sense; if you let go of the left mouse button the object doesn't "stick" anymore, and you can select any other object. (Everything can now be moved, not just the bitmap.)

What I really want to concentrate on is moving child windows, like I do in my DialogGen. That's a little trickier in some ways, but also easier in some other ways.
32-bit code and Windows 7 foreva!

zedd

Quote from: NoCforMe on April 29, 2025, 02:41:26 PMOK, here's another version. Probably the last, as this is about as far as I want to take this project.
I have one suggextion. Use the status bar to display the selected objects x and y coordinates.
I would also deselect the objects on WM_LEFTBUTTONUP, but thats just me.
:biggrin:  :skrewy:

NoCforMe

Quote from: zedd on April 30, 2025, 02:41:24 AM
Quote from: NoCforMe on April 29, 2025, 02:41:26 PMOK, here's another version. Probably the last, as this is about as far as I want to take this project.
I have one suggextion. Use the status bar to display the selected objects x and y coordinates.

OK, but that's icing on the cake at this point. Keep in mind that this is only a proof-of-concept demo.

QuoteI would also deselect the objects on WM_LEFTBUTTONUP, but thats just me.

That's certainly a valid choice, and falls under the heading of tailoring user-interface behavior. I came up with a scheme that makes sense to me: others might want things to work differently.

I'm going to make a post here soon that explains how to figure that kind of stuff out.
32-bit code and Windows 7 foreva!