Windows API is stupid!
- netmaestro
- PureBasic Bullfrog
- Posts: 8451
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
Windows API is stupid!
OK, I'm getting frustrated. I've written what I feel is a vast improvement on the PB ResizeWindow command, mostly based on WinAPI and the friggin' thing is slower than it should be, doesn't work properly and actually ends up damaging the window. I just don't get it. I've made a quick exe for you to test as I can't share the source just yet, so if anyone could a) see if it is working on your system and b) possibly suggest improvements, I'd really appreciate it. When it's finished and working properly I want to submit it to Fred for consideration as a replacement of the current ResizeWindow command.
https://lloydsplace.com/resize.exe
It's not obvious but you can press ESC to quit.
Source code and all program resources can be downloaded at: https://lloydsplace.com/winapistupid.zip
https://lloydsplace.com/resize.exe
It's not obvious but you can press ESC to quit.
Source code and all program resources can be downloaded at: https://lloydsplace.com/winapistupid.zip
Last edited by netmaestro on Mon Nov 14, 2022 5:02 am, edited 4 times in total.
BERESHEIT

There's 1 mistaken issue: if you click the Bauarbeiter, the Bauarbeiter gets into the foreground; If you click the window, the window get's into the foreground (and overlaps the Bauarbeiter, if the Bauarbeiter walks from the right to the left).
Ansonsten: Well done!

PB 4.30
Code: Select all
onErrorGoto(?Fred)
- netmaestro
- PureBasic Bullfrog
- Posts: 8451
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
Not really.
I see, what you've corrected. But when clicking the window now, sometimes, the bauarbeiter flickers. In rare cases, it is still so, that the window overlaps him:
I see, what you've corrected. But when clicking the window now, sometimes, the bauarbeiter flickers. In rare cases, it is still so, that the window overlaps him:
PB 4.30
Code: Select all
onErrorGoto(?Fred)
- netmaestro
- PureBasic Bullfrog
- Posts: 8451
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
Fixed. Forgot to include doubleclicks.But when clicking the window now, sometimes, the bauarbeiter flickers. In rare cases, it is still so, that the window overlaps him
Last edited by netmaestro on Sat Jun 21, 2008 5:55 pm, edited 1 time in total.
BERESHEIT