PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Using systems controls?

I've done some looking and I suspect the answer is no, but I wanted to ask in case I missed something...

I have a settings screen in my current project and I need to have a drop-down box for a couple of selection elements. I'd prefer not to have to write my own PF-based control (I may change my mind, but that's my thinking right now), so my question is this: is it possible to use normal system controls (or even common controls?) within a PF-based game?

I've tried the usual CreateWindow with a parent of NULL, suspecting that wouldn't work, and sure enough it didn't.

Can anyone think of a way to do it? If not I'll just write my own, it's not the hardest thing in the world. I'd just rather spend time on other parts of the project rather than developing my own GUI widgets, you know?

Thanks all!
Well, it depends on how you want your settings screen to look. If you want to shoehorn a standard control into a PF window, you won't be successful.

But that doesn't mean that you can't have a separate window (in standard win32/wce style) that handles the settings with dropdowns, buttons, etc. etc.

I can swear I read something about this before on this forum. Don't have the time to find the exact note now though.

Since PF runs in full-screen mode, you have to switch back to window mode to get the settings window. Dono exactly how you do this but it must be possible. Worst case scenario is that you have to close the PF window and the launch it again with the new settings.

The trivial solution, if you only need to change the settings once before you begin, is to launch the settings window, and then launch PF with the correct settings.

If you're creating a game though, I think you should consider writing your own settings screen since that will look way cooler than switching back to WCE.
Yeah, that pretty much confirms what I thought was the case. I'm going to have to write my own GUI widgets and go with that. Thanks for the reply!