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 » About RibbonBar Part5 Collapse All
Subject Author Date
tera t Jan 25, 2008 - 1:46 AM

Hello.

I want to make width of here wide.
http://www.yukai.jp/~ifreeta/20080125/image05.jpg

Please teach a way.
Thanks,

tera t Feb 25, 2008 - 5:39 PM

Hello.

I do not have any problem.
I was not able to understand English answers well.
I decide to use the thing of new Version.
Thank you.

Technical Support Feb 25, 2008 - 4:38 AM

We do not support old versions. Do you have any strong reason not to switch to to a newer version ?

tera t Feb 22, 2008 - 4:39 AM


I use Prof-UIS2.70.
However, the application does not work well ????

Technical Support Feb 21, 2008 - 6:51 AM

We already fixed this issue. You should use a newer version than 2.70.

tera t Feb 21, 2008 - 2:04 AM

Hello.

Please answer.

tera t Feb 19, 2008 - 1:11 AM

Hello.

>Could you put the source code which produces this screen shot into our sample application and send it to us?
In the source which I sent last time, will "Debug" be impossible?


http://www.yukai.jp/~ifreeta/20080219/RibbonBarTestA.lzh
I incorporated it in RibbonSample. (--;
Please answer me.

Technical Support Feb 18, 2008 - 4:21 AM

Could you put the source code which produces this screen shot into our sample application and send it to us?

Technical Support Feb 18, 2008 - 4:20 AM

We cannot reproduce similar painting effects. Could you ensure both the main frame window and un-painted container window are created with the WS_CLIPSIBLINGS|WS_CLIPCHILDREN standard window styles?

tera t Feb 15, 2008 - 5:35 PM


Hello.

Are you investigating the following matter?
http://www.yukai.jp/~ifreeta/20080214/image01.jpg

I want to display it with a Combo form
The application becomes the text box.

Thanks,

tera t Feb 15, 2008 - 5:29 PM

Hello.

>How to reproduce this incorrect painting effect with our sample applications?
This problem seems to occur only at the time of theme 2003.

It is a reproduction method.
1) You start application in this state.
http://www.yukai.jp/~ifreeta/20080216/image01.jpg

2) You widen SampleBar
http://www.yukai.jp/~ifreeta/20080216/image02.jpg

3) A background is not drawn.
http://www.yukai.jp/~ifreeta/20080216/image03.jpg
http://www.yukai.jp/~ifreeta/20080216/image04.jpg

Technical Support Feb 15, 2008 - 10:50 AM

If this issue is in Prof-UIS, then it’s in any tab page container and not only in the flat tab page container. How to reproduce this incorrect painting effect with our sample applications?

tera t Feb 14, 2008 - 6:34 PM

Hello.

I sent an email.

2) Then please examine the other malfunction
An afterimage remains with theme 2003.
Please examine it.
http://www.yukai.jp/~ifreeta/20080215/image01.jpg

Technical Support Feb 14, 2008 - 6:25 AM

Could you please reproduce this problem with our RibbonBar sample and send it to us?


tera t Feb 14, 2008 - 1:05 AM

Hello.

http://www.yukai.jp/~ifreeta/20080214/image01.jpg
A frame is not displayed.
It is not displayed with a combo form
Please teach it

Thanks,

Technical Support Feb 9, 2008 - 1:04 AM

You should add the following two files to your project:

// in .H file

class CYourTextFieldButton : public CExtBarTextFieldButton
{
public:
      DECLARE_DYNCREATE( CYourTextFieldButton );
      CYourTextFieldButton(
            bool bComboField = false,
            INT nTextFieldWidth = __EXT_MENU_DEF_INPLACE_EDIT_WIDTH,
            CExtToolControlBar * pBar = NULL,
            UINT nCmdID = ID_SEPARATOR,
            UINT nStyle = 0
            )
            : CExtBarTextFieldButton(
                  bComboField,
                  nTextFieldWidth,
                  pBar,
                  nCmdID,
                  nStyle
                  )
      {
      }
      virtual CSize CalculateLayout(
            CDC & dc,
            CSize sizePreCalc,
            BOOL bHorz
            )
      {
            ASSERT_VALID( this );
            CSize _size = CExtBarTextFieldButton::CalculateLayout( dc, sizePreCalc, bHorz );
            _size.cy += 10; // make it 10 pixels larger in height
      }
 };

class CYourTextFieldNode : public CExtRibbonNode
{
public:
      DECLARE_SERIAL( CYourTextFieldNode );
      CYourTextFieldNode(
            UINT nCmdIdBasic = 0L,
            UINT nCmdIdEffective = 0L,
            CExtRibbonNode * pParentNode = NULL,
            DWORD dwFlags = 0L,
            __EXT_MFC_SAFE_LPCTSTR strTextInToolbar = NULL,
            __EXT_MFC_SAFE_LPCTSTR strTextInMenu = NULL,
            __EXT_MFC_SAFE_LPCTSTR strTextUser = NULL,
            LPARAM lParam = 0L,
            CExtCmdIcon * pIconCustomized = NULL,
            INT nTextFieldWidth = 100,
            INT nDropDownWidth = -2, // (-1) - auto calc, (-2) - same as button area
            INT nDropDownHeightMax = 250
            );
      CExtRibbonNode(
            UINT nCmdIdBasic = 0L,
            UINT nCmdIdEffective = 0L,
            CExtRibbonNode * pParentNode = NULL,
            DWORD dwFlags = 0L,
            __EXT_MFC_SAFE_LPCTSTR strTextInToolbar = NULL,
            __EXT_MFC_SAFE_LPCTSTR strTextInMenu = NULL,
            __EXT_MFC_SAFE_LPCTSTR strTextUser = NULL,
            LPARAM lParam = 0L,
            CExtCmdIcon * pIconCustomized = NULL,
            INT nTextFieldWidth = 100,
            INT nDropDownWidth = -2, // (-1) - auto calc, (-2) - same as button area
            INT nDropDownHeightMax = 250
            );
      virtual CRuntimeClass * _OnRibbonGetButtonRTC()
      {
            ASSERT_VALID( this );
            return ( RUNTIME_CLASS( CYourTextFieldButton ) );
      }
      virtual CExtBarButton * OnRibbonCreateBarButton(
            CExtRibbonPage * pBar,
            CExtBarButton * pParentTBB = NULL
            )
      {
            CYourTextFieldButton * pTextFieldTBB  =
                  STATIC_DOWNCAST(
                        CYourTextFieldButton,
                        CExtRibbonNode::OnRibbonCreateBarButton( pBar, pParentTBB )
                        );
            pTextFieldTBB->m_nDropDownWidth = DropDownWidthGet();
            pTextFieldTBB->m_nDropDownHeightMax = DropDownHeightMaxGet();
            pTextFieldTBB->m_bTextFieldIsNotEditable = ( GetFlags() & __ECTN_TBB_TF_NE ) ? true : false;
            return pTextFieldTBB;
      }
};

// in .CPP file

IMPLEMENT_DYNCREATE( CYourTextFieldButton, CExtBarTextFieldButton );
IMPLEMENT _SERIAL( CYourTextFieldNode, CExtRibbonNode );
The CYourTextFieldButton class implements a custom measured text/combo field toolbar button and CYourTextFieldNode is a ribbon node that creates an instance of the CYourTextFieldButton class instead of CExtBarTextFieldButton implemented in Prof-UIS.



tera t Feb 4, 2008 - 5:00 PM

Hello.

Please answer it

tera t Jan 31, 2008 - 8:00 PM

Hello.

I do not understand ways of the descriptions well.
I ask for your sample code.

Thanks

Technical Support Jan 26, 2008 - 3:00 PM

It’s possible to specify the width of text or combo field. The height is measured automatically. If you need some custom height, you should implement a text field button class like we advised on our previous answer and implement the CExtBarButton::CalculateLayout() virtual method in it. Your method should invoke parent class method and then increase the CSize::cy height value before returning the CSize object.

tera t Jan 25, 2008 - 1:50 AM

By a theme, height does a variable stripe.
If it is difficult, this matter is good

Thanks,