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 General Discussion » Docking marker and toolbar bitmap Collapse All
Subject Author Date
Moby Dick Nov 11, 2004 - 10:25 AM

Hi,


How to make the docking marker visible ? I’ve a toolbar who is dockable to any area but the markers doesn’t show. Why ?


I’ve created a toolbar with 256 color bitmap button. But buttons appear with no image ! Can you tell me how to correct this ?


Best regards,


Simon.

Technical Support Nov 12, 2004 - 3:13 AM

Dear Simon,

We assume that by "docking marker" you imply a non-rectangular window which is used for resizable control bars when the Visual Studio 2005 docking algorithm is used. These markers are automatically displayed when you are dragging resizable control bars but they never appears when you dragging toolbars.

As for empty icons in the toolbar buttons, you probably forgot to associate the command profile in the command manager with your main frame window. Please take a look at how g_CmdManager->ProfileSetup and g_CmdManager->ProfileWndAdd are used in our samples. Use the following code just before m_wndToolBar.Create(...) at the beginning of your CMainFrame::OnCreate method:

 g_CmdManager->ProfileSetup(
   pApp->m_pszProfileName,
   GetSafeHwnd()
 );

VERIFY(
   g_CmdManager->UpdateFromToolbar(
      pApp->m_pszProfileName,
      IDR_MAINFRAME
    )
);

Moby Dick Nov 16, 2004 - 4:56 AM

Thank you for your help.