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 » Problem with Resizable Bar Collapse All
Subject Author Date
Khoa Nguyen Tan Aug 20, 2003 - 7:37 PM

Hi,
I am using your excellent resizable-docked bar. At first, it works well but when I double click or move the bar away from it docking position, I cann’t make it dock again.

Is that because of my miss-implementation ???

Thanks.

Sergiy Lavrynenko Aug 21, 2003 - 1:51 AM

Hi,

I have never come across with the behaviour of resizable bar described in your message. May be the problem is somewhere in the bar initialization code. You should not face the same problem in any Prof-UIS samples. Please compare your bar initialization code with CMainFrame::OnCreate() of any sample program or send me a letter with your project.

Best regards,
Sergiy.

Khoa Nguyen Tan Aug 21, 2003 - 10:14 PM

Hi,
Oops, once again, it’s my mistake. You’re right, everything works very well.

Another things, how can I change the title of the resizable bar? For example, instead of having the title bar, i would like to have the double line gripper like workspace bar in VC++. Please show me the way.

Thanks.

Sergiy Lavrynenko Aug 22, 2003 - 2:30 AM

Hi,

this code will change the caption of resizable bar:

    pBar->SetWindowText( strNewCaption );
    if( pBar->IsFloating )
    {
        pBar->GetParent()->SetWindowText( strNewCaption );
        CFrameWnd * pFrame = pBar->GetParentFrame();
        pFrame->SetWindowText( strNewCaption );
        pFrame->SendMessage( WM_NCPAINT );
    }
    else
        pBar->SendMessage( WM_NCPAINT );


The Office 2000 style provides resizable bars with a look similar to Visual J++ 6.0 which is more modern than Visual C++ 6.0. There are no support for the Visual C++ 6.0 like bars in Prof-UIS. But you can write your own class derived from the CExtPaintManager and override PaintGripper virtual function which is responsible for painting of any kind of grippers.

Best regards,
Sergiy.