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 » ComboBox listbox CExtBarTextFieldButton Tooltip large items Collapse All
Subject Author Date
Stephan Finkler May 12, 2005 - 8:47 AM

Hi,
I have got a ComboBox in a toolbar and customization is enabled.
If the user drop down the listbox and move the mouse over an item,
I would like to see the complete text (like a toolip), because some items
are very long.

Any idea?

Technical Support May 12, 2005 - 10:22 AM

Are you talking about tooltips that appear over dropped down list box’s items like tooltips in the tree view common control? Or you would like to see tooltips like rich text tooltips demonstrated in the HelpNotes sample application?

Stephan Finkler May 13, 2005 - 1:16 AM

Actually I need tooltips that appear over dropped down list box s items like tooltips in the tree view common control, but tooltips like in your HelpNotes sample would be great.

Also it would be great to format the text in the list box or better to put text in columns or a grid.
e.g. dropped down list box
INFO1 ¦ INFO2 ¦ INFO3 --> Item1
INFO4 ¦ INFO5 ¦ INFO6 --> Item2

Technical Support May 14, 2005 - 9:54 AM

We added this feature to our To-Do list. It will be implemented as part of the customization system. Please let us know whether you are pressed for time with regard to this issue.

Stephan Finkler May 17, 2005 - 2:04 AM

Thanks for your quick response.

Until you will have implemented that feature it would be great
to size the listbox to the largest item in it and to show a tooltip in the edit field of the combobox if the size of the text is larger than the edit field.

Any idea to that?

By the way:
we are always pressed for time ;-)

Technical Support May 17, 2005 - 8:35 AM

You can see how to implement auto resizing of list box items in the StyleEditor sample. You may notice that items of the Style list box always fit the width of the client area. The CMainFrame::OnPopupListBoxItemMeasure() virtual method is used only for measuring item’s height in the owner-draw-variable list box. The width of the pop-up list box is measured in the CMainFrame::OnPopupListBoxMeasureTrackSize() virtual method which does not relate to the owner draw features of list box common control. This is part of the Prof-UIS toolbar/menu customization system.