Oxygen Basic
Programming => Example Code => Topic started by: Peter on August 12, 2014, 10:46:40 AM
-
Hi,
-
Looks nice too, Peter.
And thanks for the pictures. Your messages look much more attractive with them.
-
And thanks for the pictures. Your messages look much more attractive with them.
+10
-
Thanks Peter for this great piec of code!
asm.inc is becoming richer every week.
I noticed that in some cases the window can be resized and in some of your samples the window size is fixed.
As far as I could see, the window function of asm.inc does not accept a window styles parameter.
How do you control window styles?
-
the window function of asm.inc does not accept a window styles parameter.
Hello Haim,
Welcome back.
Thanks for your interest.
What are "styles parameter" here?
-
Hi Peter,
I have not been away, just was not active.
Your asm.inc interests me very much.
window styles are the values of the dwstyles parameter that are passed to CreateWindowex function. they determine various window attributes, including minimize. maximize boxes, caption bar, sysmenu etc.
My question was, how to make a window that can be resized and a window which has a fixed predetermined size.
Thanks,
-
Hi Haim,
Currently there seems to be no option to switch between fixed-size and resizable window styles in Peter's modules. Nor is there such an option provided at window creation time.
Peter has two versions of precompiled DLL's, one for resizable windows, and the other one, for fixed. Each time he supplies his submissions with a corresponding DLL.
I think Peter could use calls to
SetWindowLong hWnd, GWL_STYLE, &H14CF0000 ' resizable
and
SetWindowLong hWnd, GWL_STYLE, &H14CA0000 ' fixed-size
to change the styles once his main window is created. He could add a WinStyle RESIZABLE | FIXED function to his DLL too to let the user decide which style they want for their code if they use his DLL.
But there is practically no chance for that. Peter hates other people's advice and mine in particular, therefore you will have to continue switching the two DLL's to the day you die.
-
therefore you will have to continue switching the two DLL's to the day you die.
is right! ;D
what about an own window ?
is it that difficult! head up and let's go
-
what about an own window ? is it that difficult!
No, it isn't. Neither writing own code nor messin' around with somebody else's is difficult for me. In fact, it is my pleasure. See your ASM.DLL overridden and suppressed in my Julia Rings script.
Who knows, one day I might even get interested in spending a few hours to reverse engineer your entire ASM.DLL and publish its reconstructed OxygenBasic sources on this forum for Haim and John to enjoy.
Wanna try?
-
I'm having a problem understanding how someone so talented, generous and an all around good guy can be so stingy with his source. There are too many people getting burnt using closed source tools that have no sustainable support resource behind them. (just posted wet dreams)
-
Thank you all for responding.
I was not aware of the dll switching :-[
Seeing the sources for those dll would be very instructive for me, as I am just a humble hobbyist programmer.
Thank you folks for all your contributions.
-
Sorry Haim,
But Peter won't let you see the sources. He doesn't disclose them. He keeps them in one of his deepest closets behind seven magic locks.