Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Clicking outside a text flow
Clicking outside a text flow [message #185617] Mon, 27 June 2005 19:53
Eclipse UserFriend
Originally posted by: freddie_nurke.hotmail.com

Hi folks,

In the sample code for text editing, text layout figures' widths are set
to be as wide as their container using getPreferredSize. In my code,
I'm using TextFlows, which end up narrower than their container wherever
the line of text ends before the edge of the container. The upshot of
this is that if I click to the right of the text in my text box, nothing
happens -- the click is passed through to the parent rather than to the
flow.

How do I go about making TextFlows as wide as their container? Do I
have to subclass them and override getPreferredSize?

Thanks,

Fred
Previous Topic:ContextMenu in PropertySheet
Next Topic:How to programatically launch Preference Dialog
Goto Forum:
  


Current Time: Thu Dec 12 17:27:49 GMT 2024

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

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

Back to the top