Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » CExtPropertyGrid question Collapse All
Subject Author Date
tera t Mar 18, 2008 - 1:23 AM

Hello.

With a PropertyGrid, I want to do a selection of an appointed point.

http://www.yukai.jp/~ifreeta/20080318/image02.jpg

Technical Support Mar 18, 2008 - 8:58 AM

You should invoke then following code after the property grid control is initialized:

CExtPropertyGridCtrl & _PGC = . . .
CExtPropertyValue * pValueToSelect = . . .
CExtPropertyGridWnd * pActiveTreeGrid = _PGC.GetActiveGrid();
      if( pActiveTreeGrid != NULL)
      {
            HTREEITEM hti = pActiveTreeGrid->PropertyItemToTreeItem( pValueToSelect );
            if( hti != NULL )
                  pActiveTreeGrid->ItemFocusSet( hti );
      }
You can also set focus to the active tree grid window inside the property grid control to allow the user to perform keyboard navigation through property items. This can be done using
pActiveTreeGrid->SetFocus();