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 » Toolbar combo/menu list window auto-sizing Collapse All
Subject Author Date
Neville Franks Dec 17, 2003 - 1:11 AM

Is there any way to get toolbar combo’s drop down list to size horizontally and vertically to fit there content? For example when CMainFrame::OnPopupListBoxInitContent() has finished. This is for lists which are using the default font, not owner draw.

Thanks, Neville

Technical Support Dec 18, 2003 - 7:21 AM

Dear Neville,


The OnPopupListBoxInitContent() method just puts items into the list-box. To measure the size of the popup, you should override OnPopupListBoxMeasureTrackSize(). Prof-UIS stores no instances of list-boxes, nor does it keep their item strings. Each list-box is created on-the-fly. So, every time these two methods initialize its contents and size corresponding to the data you provide.