|
|
|
|
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.
Subject |
Author |
Date |
|
Courtney Smith
|
Sep 16, 2009 - 8:20 AM
|
We have a cextgridcellcombobox. Our font size for the grid is XX, but the combobox dropdown shows a font of YY. Is there a way to set the item font for the drop list? Thanks,
CJ
|
|
Courtney Smith
|
Sep 18, 2009 - 1:51 PM
|
Ok that works well. How do i increase my droplist heigh. I can only see 2 items in the drop list because its small and not all the items add to the droplist.
|
|
Technical Support
|
Sep 20, 2009 - 1:43 AM
|
Prof-UIS 2.85 prevents this situation automatically. The CExtGridCell::OnPopupListBoxAdjustSize() virtual method does popup list box size adjustment and you can see well looking list box on the screen. If the list box has only a few items, then it’s height is decreased and you don’t see white space at the bottom. The width of the list box is adjusted to fit its items. Older Prof-UIS versions require overriding of the CExtGridCell::OnPopupListBoxMeasureTrackSize() or CExtGridWnd::OnGridCellPopupListBoxMeasureTrackSize() virtual methods if you need to change the size of the popup list box.
|
|
Courtney Smith
|
Sep 17, 2009 - 12:47 PM
|
I have those two functions in my custom class, but the problem i run into is, i’m not totally sure how i should change those functions to increase the font size and rect size.
|
|
Technical Support
|
Sep 18, 2009 - 3:41 AM
|
Please take a look at the source code of the CExtGridCell::OnPopupListBoxItemDraw and CExtGridCell::OnPopupListBoxItemMeasure methods. Both are invoking the _tcsi.m_wndGrid.OnSiwGetDefaultFont() code. The CExtScrollItemWnd::OnSiwGetDefaultFont() method provides all the grid parts with the default font for painting and measuring. You should simply replace the _tcsi.m_wndGrid.OnSiwGetDefaultFont() code invocation with some your code for providing popup list box with required font.
|
|
Technical Support
|
Sep 17, 2009 - 3:03 AM
|
It’s possible to replace the font of the popup list boxes displayed from the grid cells. But currently this requires coding a grid cell class which implements the CExtGridCell::OnPopupListBoxItemMeasure() and CExtGridCell::OnPopupListBoxItemDraw() virtual methods. We can regard your message is a feature request and provide you with the source code update which will allow you to assign a font to popup list boxes and/or individual list box items.
|
|