Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » [SOLVED] How to getSelectionCount from a CCombo control?
[SOLVED] How to getSelectionCount from a CCombo control? [message #720607] Tue, 30 August 2011 19:01 Go to next message
Eclipse UserFriend
From a TEXT i can do it through:
((Text)control).getSelectionCount();

But, how can i access it on a CCombo?
((CCombo)control).getSelectionCount(); is not implemented...

Thanks.

[Updated on: Thu, 01 September 2011 17:04] by Moderator

Re: [SOLVED] How to getSelectionCount from a CCombo control? [message #721476 is a reply to message #720607] Thu, 01 September 2011 17:05 Go to previous message
Eclipse UserFriend
Looking at the implementation of Text.getSelectionCount() it's trivial to do:

Point selection = myCCombo.getSelection();
int selectionCount = selection.y - selection.x;
Previous Topic:(no subject)
Next Topic:Extension editor appears to be broken
Goto Forum:
  


Current Time: Sat Jul 12 17:22:13 EDT 2025

Powered by FUDForum. Page generated in 0.13029 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top