PDA

View Full Version : Creating a tabbed interface in WM5\WM6


shantzg001
30th July 2007, 04:18 PM
Hi
I'm trying to create a tabbed dialog for wm5\WM6 (something like BatteryStatus setttings). However I'm quite lost on how to do it. Umpteen searches on google cudnt get me anything specific. I have tried using the "Tab Control" in MFC, but coudnt figure out how to add things to tabs other than the first one..
I'm quite poor in U/I coding, so would appreciate a more wysiwyg kinda solution for adding things (After that I can manipulate them thru code no prob)..And moreover I need a solution in Native C++\MFC...
TIA

shaileshashar
31st July 2007, 09:43 AM
Hi shantzg,
I had use "Tab Control" in MFC App long back on PC but not in PPC.
I think it will still be similar.
The "Tab Control" only lets u define no of tabs and will also fire events on the basis of selection.
You hv to programatically show ur UI controls on the basis of these events.

Rudegar
31st July 2007, 10:02 AM
you can look how they handled it in their source
https://sourceforge.net/projects/claunch/
http://www.nakka.com/soft/ptools/

ammarr
31st July 2007, 12:56 PM
Check out wxwidgets...
you can create the interface using a wysiwyg program like wxformbuilder, and you can try compiling it on windows using something like wxdevcpp. However to make it run on ppc, you'll need to install either .net professional ide, or embedded visual c++. Anyway, you'll have to spend a bit of time going through the wxwidgets wiki to get it working.

shantzg001
31st July 2007, 06:11 PM
Thnx for the replies guys, I'll check out the recommended things and get back to u..

levenum
31st July 2007, 10:01 PM
There are quite a few extras in there, but you can check out the code for LVMTime (http://forum.xda-developers.com/showthread.php?t=260441). I used tabbed dialog for its settings (using C++). Basically each tab is a separate dialog with its own handling function and I show the one needed when the parent dialog receives a message from the tab control.

shantzg001
2nd August 2007, 10:50 AM
Thnx for that levenum, ill take a look..havent been able to check out any of things suggested so far due to paucity of time..will do so arnd weekend..thnx a lot all u guys..:)