Page 1 of 1

PostPosted: Tue Sep 24, 2002 4:57 am
by Red_as_blood
In pocketc it's possible making some windows with inside buttons trackbars and other controls?

Example a message box has buttons...

Can i create a "message box like" window with other controls in it?

PostPosted: Tue Sep 24, 2002 8:15 am
by guy
There are a variety of ways that you can do this.

1. Use the createctrl1() function to create your "inside" controls as the children of a parent control. You can't interact with the child controls however.

2. Simply layer the inside controls on top of the outside control. Create the inside controls first, then the outside one. If you are going to use the result as a dialogue of some sort then create the whole lot at the start of your program without the WS_VISIBLE style, then, when you want to use the dialogue, call wndshow() to make each of the components visible. After you've finished with the dialogue call wndshow() again to hide the components. Delete the controls at the end of your program.

3. Use the CE API interface functions to bypass the PocketC wrapper functions. Use CreateWindowEx(), GetMessage(), TranslateMessage(), PostMessage() and DefWndProc(). You can use DispatchMessage() in the next release of CEAPI, for now just call your own window function anyway. With the real functions you can create child windows and actually communicate with them.

PocketC CE API interface:
PCForm and CE API forum: