|
Post by Walt Decker on Dec 6, 2020 13:17:29 GMT -5
Other than using API, is there a method to create child windows?
STRUC: I think there is a missed type: CHAR. This would allow the passing of strings and even string arrays to a dll.
CALLBACK: Relates to child windows above.
Produces a code pointer to a sub/function in LB. This could then be used in a call to the API registerclassex() to create a window. Is that correct?
|
|
|
Post by Chris Iverson on Dec 6, 2020 15:05:45 GMT -5
I suppose it depends on what you mean by "child window". You can technically embed one window in another using SetParent API, but you can't create define or create child windows directly in LB.
There is a char[] type, that lets you define a specific amount of characters/bytes, but I've had trouble using it if it had more than one byte.
As for callbacks and registering window classes, the answer is technically "yes", but practically "no".
You can actually do it, and manage to get a window opened, but it will quickly fall over itself, due to the LB interpreter being unable to keep up with the sheer number of messages coming through. (I think that's what happens, anyway; it's been a while since I've attempted it, but everyone who's tried before gets a fairly quick stack overflow implosion.)
There is a DLL that has been mentioned in one of your threads, WMLiberty, and the whole reason WMLiberty was created was to give an opportunity to listen for specific window messages without having to run the entire message pump in LB.
|
|
cundo
Full Member
Muchas Gracias!!
Posts: 146
|
Post by cundo on Dec 6, 2020 20:10:55 GMT -5
When I created Child Windows, the only problem I couldn't solve was to have both the Parent and Child active, I mean, like not grayed out. Was one or the other. Something visual that didn't interfere with the program functionality. But basically as Chris says, and you can do a not-visible window using StyleBits too. So it looks more professional, then attach one Window to the other.
I did all this in my GUI Visual Designer, which I can't remember how I called it.
|
|