Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 23:01 Go to next message
Marco Lopes is currently offline Marco LopesFriend
Messages: 61
Registered: September 2010
Member
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 21:04]

Report message to a moderator

Re: [SOLVED] How to getSelectionCount from a CCombo control? [message #721476 is a reply to message #720607] Thu, 01 September 2011 21:05 Go to previous message
Marco Lopes is currently offline Marco LopesFriend
Messages: 61
Registered: September 2010
Member
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: Thu Apr 18 09:50:33 GMT 2024

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

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

Back to the top