http://GameProgrammer.Com

Programming

GP Mailing List
     Thread Index
     Date Index

ATXGPSIG List
     Thread Index
     Date Index

Google
>

Home

Wise2Food



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

TAB Controls / Dialog Box




Hey Everyone,

	Its been a while since I posted to the list, havent had the time
and my Email server is screwed up.  I get to write this through TELNET,
yeah! :) Anyways, ive run into a problem which I cannot figure out for
anything.  This is for anyone that has any experience with Win32 API
programming in VC++.  Im creating a Player editor for my game and it will
consist of a Split Window, one side will be a Tree List View and the other
side will be the Property Editor.  This will allow the user to select
which Player he wishes to edit in the Tree List.  Once the Player is
selected in the Tree List, the Players properties will come up in the
Right side, the Property Editor.  I was unsure how to make a Split window
at first, but what I did was I created a Main Window for the player
editor.  This is a Popup Window that shows up when the user selects the
player editor from the menu.

	SERVER -> Player Edit Window

Now from this Player edit window I created Child windows to it, the Left
side being a TREE LIST, the right side being a TAB Control.  

      _________________________________
     |               |                 |  <---- Main Player Edit Window
     |               |                 |
     |  TREE         |   TAB           |
     |  LIST         |   CONTROL       |
     |               |                 |
     |               |                 |
     |               |                 |
      --------------------------------- 

 So here we have a large Main window with two smaller Child windows, one
for each side.  So we have a  Split Window.  This is fine and all.  Now
for the property editor on the Right side I wanted to create a Property
Sheet type effect however I dont think I can actually use a Property Sheet
in this case as it would not act as a CHILD window.  I want this all to be
attached like one window.  So what I did was I implemented a TAB Control,
each TAB having its own Dialog Template with controls for editing the
Players Data.  So i created a Modeless Dialog Box and placed it on top of
the Tab Control, hence I have created a Property Sheet type control with
the use of Tabs and Dialogs.  Now this is my problem.  At first I could
not get the program to allow me to TAB Navigate through the Dialog
Controls, until I found out I must use a fuction called
"IsDialogMessage()".  So I did this and I got it to properly TAB through
all the Dialog Controls.  The one problem is I could not get it to Tab
from the Dialog to the TAB Control and back again.  Like a Property Sheet,
it should allow me to TAB through all the controls in the Dialog Box and
then it should TAB to the currently Selected TAB and highlight it.  Can
someone tell me why this would happen and what can I do to fix it?  Any
help is appreciated...thanks!

		Matt

=================================================================
The GameProgrammer.Com mailing list is for the open discussion
of any topic related to the art, science, and business of
programming games. This list is especially tolerant of beginners.
We were all beginners once

To SUBSCRIBE or UNSUBSCRIBE please visit:
http://gameprogrammer.com/mailinglist.html