Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] modifying widget border after creation

Tuesday, May 13, 2003, 9:18:53 AM, "Rodríguez Miguélez, Adolfo" wrote:

> Hi All,

> I would need to modify the broder of a widget after creation. For example, a
> composite created as:

> Composite composite = new Composite(parent, SWT:NONE);

> would like to display a border for it. 

> Does anyone know how to do it. 

> I just know to set the border in class instatiation  

> Composite composite = new Composite(parent, SWT:BORDER);

> but not modifying after.

Adolfo,

You should ask user questions in the SWT newsgroup.  This mailing list
is for SWT design discussions.

That said, since there is no option for dynamically adding a border,
your best bet might be to add a paint listener to the composite and
paint a border around the widget in the callback method.

David

-- 
Regards,
David                            
mailto:dlwhiteman@xxxxxxxxxxxxxxx



Back to the top