Professional UI Solutions
Site Map   /  Register


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 » CExtRadioButton in toolbar.. Collapse All
Subject Author Date
Michael Clapp Mar 21, 2007 - 5:25 PM

When adding a CExtRadioButton (the first one) into a toolbar via:

    pToolBar->InsertButton(-1, ID_TOGGLE_REFERENCE, false);
    pToolBar->SetButtonCtrl(pToolBar->GetButtonsCount()-1, &pBar->m_buttonRef , true);

there seems to be a hang in the SetButtonCtrl call when a CExtBarButton::SetCheck() function gets called and causes a search for the next dialog group item (GetNextGroupItem). I’ve been able to use CExtButtons, and CExtCheckBoxes as substitutes, but would prefer to use 2 CExtRadioButtons in our toolbar.

Is there a way around this?

Technical Support Feb 4, 2009 - 1:21 AM

No. The CExtRadioButton class is HWND based UI item which is typically created as child of dialog window. The ProfAuto library does not work with dialog forms and does not access form controls. It just injects dockable bars into forms or provides access to dockable bars created inside MFC frame windows.

Svetlozar Kostadinov Feb 5, 2009 - 8:57 AM

Excuse me, I meant the other class CExtBarRadioBoxButton. May I manage buttons of this class through ProfAuto?

Technical Support Feb 9, 2009 - 1:31 PM

No, radio button like looking toolbar buttons are not supported by ProfAuto. These buttons are very specific non-standard looking buttons which have no analog items in menus. They are currently supported by simple non-customizable toolbars only.

Svetlozar Kostadinov Feb 2, 2009 - 3:22 PM

Hello, could these buttons be created implicitly through ProfAuto interfaces?

Regards! :-)

Technical Support Mar 22, 2007 - 9:26 AM

In v.2.60 was added a CExtBarRadioBoxButton class, which implements a radio box in a toolbar (see the figure below). So we would recommend you use this class instead of CExtRadioButton.

Radio box in a toolbar