Hey, h0bbel. This new release is great! I just came back to these forums after about a week just to ask you a few more questions, but then I noticed you added all of these drawing functions and have to really thank you for those. On first examination, everything works quite nicely.
My question today has to do with child windows. If I for instance place a textbox on a window that is a child of Gamemaker's window, I am not able to click on that textbox to type inside of it.
I realized the only way I could type inside the textbox was to ( 1 ) use the API_Control_SetFocus() function to point to that textbox (by the way, might you add an API_Control_GetFocus() function, or can we only stick with the API_Check_Command() to see when a control is clicked?) or ( 2 ) use the API_Window_SetParent() function to set the textbox's window as a child of Gamemaker's. Simply making the textbox's window a Gamemaker child window at the moment it is created using the WS_CHILD style doesn't make the textbox clickable. I have to use the API_Window_SetParent() function. And this is all fine and good, but what happens is the window is created outside of Gamemaker's at game start, and I can see the window flash there for a second right before the SetParent() function kicks in and places the window inside of Gamemaker's.
I thought that maybe I could get around that flash by hiding the textbox's window when it is created, but there is no style flag for that (it's weird, there's a flag to make a window initially visible 'WS_VISIBLE', which it always seems to be anyway, but there's no flag to make a window initially invisible, as far as I could find) I then thought, well, if I can't get around the flash, I can just keep that window outside of Gamemaker (it's a tool window anyway). But then I saw that by keeping that window outside of Gamemaker's, there was no way to hide/minize the window when Gamemaker's window is minimized.
So my bottom line is, is it possible to make the textboxes on windows inside of Gamemaker's window clickable/editable without having to resort to any of my aforementioned methods? If not, then can you either ( A ) add a way to make a window invisible the moment it is created, or ( B ) add a window check function to see if a window is minimized?
Anyway, sorry to go on about things.
All the basic elements of the form designer I'm working on (data management, control manipulation and properties, event handlers, etc.) are about halfway done. It's a fun project. Yesterday I just finished creating a cool custom treeview system using the API buttons, statics, edit boxes, and comboboxes.
Edited by Seeker, 22 January 2007 - 07:31 PM.