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 » How can I vertically centre text on a CExtStatusControlBar pane? Collapse All
Subject Author Date
Georgios Kapetanakis Oct 26, 2007 - 6:07 AM

Dear Support,

I am using Prof-UIS v. 2.61.

When displaying text on the first pane of a CExtStatusControlBar, the text appears centred vertically as expected. However, all other text panes always vertically align text to the top, which is ugly. The function SetPaneDrawTextFlags() does not seem to support the DT_VCENTER style.

Is there a way to vertically centre text on a statusbar pane? How can I achieve this?

Many thanks for any help you can offer.

/G

Rolf Boerkoel Jul 16, 2008 - 4:12 AM

Try including the DT_SINGLELINE flag, it worked for me:


 m_wndStatusBar.SetPaneDrawTextFlags(1, DT_VCENTER|DT_CENTER|DT_SINGLELINE);


 

Technical Support Oct 26, 2007 - 11:38 AM

Because we do not support older versions we can only recommend you download Prof-UIS Freeware 2.81, open the source code for CExtStatusControlBar, and check what the changes were made using some compare/merge utility.

Georgios Kapetanakis Oct 26, 2007 - 11:21 AM

Hi,

Thank you for the reply. I know the version I use is rather old, but unfortunately it is the one my company is using at the moment. Upgrading versions would require a large amount of regression testing, for which we have no time at present.

Do you know how this problem was fixed? If so, I would appreciate it if you could send me the new implementation of a particular function that has solved the problem or anything else that might help.

/G

Technical Support Oct 26, 2007 - 11:16 AM

We tried to reproduce this bug with v.2.81 but failed. So we would recommend you upgrade to the latest version.