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 » _CalcDesiredMinFloatedSize is not called. Collapse All
Subject Author Date
tarou iiyama May 16, 2006 - 10:23 PM

Hello

>You should use your own CExtControlBar-derived
>class which implements the following virtual methods:
>    virtual INT _CalcDesiredMinHW() const;
>    virtual INT _CalcDesiredMinVH() const;
>    virtual CSize _CalcDesiredMinFloatedSize() const;

class CSizeFixControlBar : public CExtControlBar
{
virtual INT _CalcDesiredMinHW() const;
virtual INT _CalcDesiredMinVH() const;
virtual CSize _CalcDesiredMinFloatedSize() const;

_CalcDesiredMinFloatedSize is not called.


And
I become an error in the prof-uis inside when I do it as follows.

INT CSizeFixControlBar::_CalcDesiredMinHW() const
{
    return 10;
}


void CExtDockDynBar::_VisibleLayoutAlign(
    VisibleLayout_t & _vl,
    CSize _size
    )
:
:

Line 4374
    LONG nBarMinMetric = bHorz
        ? pExtBar->_CalcDesiredMinHW()
        : pExtBar->_CalcDesiredMinVH();
ASSERT( nBarMetricRef >= nBarMinMetric ); <---- ASSERT !?


Thank you

tarou iiyama May 16, 2006 - 10:35 PM

Hello

Additional explanation

>I become an error in the prof-uis inside when I do it as follows.
>INT CSizeFixControlBar::_CalcDesiredMinHW() const
>{
> return 10;
>}

When resize passes at the time of CExtDynContorlBar, it becomes an error.


Technical Support May 18, 2006 - 3:47 AM

We modified the CExtControlBar::_CalcDesiredMinHW() and CExtControlBar::_CalcDesiredMinVH() methods in the ExtControlBar.cpp file. We tried to return different values from these methods and did not come across any assertions. Would you send us a sample project that reproduces the problem.

tarou iiyama May 18, 2006 - 6:48 PM

Hello

>We modified the CExtControlBar::_CalcDesiredMinHW() and CExtControlBar::_CalcDesiredMinVH() methods in the ExtControlBar.cpp file.

Did you revise CExtControlBar?
Will it be to be included in the next version?

As for ten licenses, prof-uis is finished with the purchase in my company.

Technical Support May 20, 2006 - 10:55 AM

Not, the CExtControlBar remains principally intact. What we implied is that we modified it just to make sure there are no assertion failures in it. Would you send us your project so that we can help you?