Windows and controls

Discuss topics that apply across the products, such as the PocketC language, or development in general

Postby Red_as_blood on Tue Sep 24, 2002 4:57 am

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?
Posts: 13
Joined: Sat Aug 10, 2002 2:06 pm

Postby guy on Tue Sep 24, 2002 8:15 am

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:
PocketC CE API interface:
PCForm and CE API forum:
Posts: 879
Joined: Thu Dec 07, 2000 8:58 am
Location: United Kingdom

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest