DBSoft Forums
What's wrong with this code? - Printable Version

+- DBSoft Forums (https://dbsoft.org/forum)
+-- Forum: DBSoft Software Support (https://dbsoft.org/forum/forumdisplay.php?fid=1)
+--- Forum: Dynamic Windows (https://dbsoft.org/forum/forumdisplay.php?fid=3)
+--- Thread: What's wrong with this code? (/showthread.php?tid=97)



What's wrong with this code? - 3oheicrw - 04-27-2022

I know it's not in C but I'm not good in C and not find myself comfortable writing in C. It's FreeBASIC code but you could read and understand it easily. The problems is if you click to maximize the window then it becomes maximized but the minimize, maximize/restore and close button is not moved to the new location but still stuck at their previous location on the previous window size. I tried to tweak the code as much as I can but I can't fix it.

The platform is Windows 7 64 bit.

https://github.com/3oheicrw/dwindows-fb-win32/blob/main/test.bas


RE: What's wrong with this code? - dbsoft - 04-29-2022

(04-27-2022, 11:01 AM)3oheicrw Wrote: I know it's not in C but I'm not good in C and not find myself comfortable writing in C. It's FreeBASIC code but you could read and understand it easily. The problems is if you click to maximize the window then it becomes maximized but the minimize, maximize/restore and close button is not moved to the new location but still stuck at their previous location on the previous window size. I tried to tweak the code as much as I can but I can't fix it.

The platform is Windows 7 64 bit.

https://github.com/3oheicrw/dwindows-fb-win32/blob/main/test.bas

I am not sure, I don't usually create windows with no contents... but I think it should work.  I don't see anything glaringly wrong with the code beside not adding any contents to the window.

Maybe try creating a box and packing it in expandable and see if it works better?