[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: Selecting image vs. text in tree or table

In 3.1 it does (since after M4).

"Mia Stern" <mia_stern@xxxxxxxxxx> wrote in message 
news:41EFD0B8.2000503@xxxxxxxxxxxxx
> Native Windows Explorer behavior is to have the rename text box appear 
> only if the name of the object is clicked on, not the icon.  It is that 
> behavior I'm trying to replicate.
>
> Why doesn't TreeItem have getImageBounds ?
>
> - Mia
>
> Steve Northover wrote:
>> Users expect trees and tables to have the native selection characterstics
>> and don't expect different things to happen depending on whether the 
>> image
>> or the text is selected.
>>
>> "Veronika Irvine" <veronika_irvine@xxxxxxx> wrote in message
>> news:csk3l0$654$1@xxxxxxxxxxxxxxxxxx
>>
>>>Use getImageBounds(int) (returns bounds of image) and getBounds(int)
>>>(returns bounds of image plus text) to determine where the click 
>>>occurred.
>>>
>>>"Mia Stern" <mia_stern@xxxxxxxxxx> wrote in message
>>>news:csjsjf$vmq$1@xxxxxxxxxxxxxxxxxx
>>>
>>>>Hi-
>>>>
>>>>Is it possible to determine if a click has occurred on the image vs. the
>>>>text in a Tree (or Table) Viewer?  I'd like to implement different
>>>>behavior depending on what was actually clicked.
>>>>
>>>>Thanks,
>>>>- Mia
>>>>
>>>
>>>
>>
>>
>