Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsUpdate font size immediately
https://www.eclipse.org/forums/index.php/mv/msg/147171/463319/#msg_463319
Originally posted by: murley.murley.murley
Hi,
My gui have a label using the font size specified by me, and i created a
FontDialog to let user change the font size.
After user click "Ok" button in FontDialog, the font didn't update
immediately (i.e. runtime change font size according to user selection)
Do anyone know how to perform ?
Thanks]]>2005-11-03T13:08:14-00:00Re: Update font size immediately
https://www.eclipse.org/forums/index.php/mv/msg/147171/463322/#msg_463322
Originally posted by: friederich.kupzog.de
label.redraw(), composite.layout() or something like that?
Regards,
Friederich
murley wrote:
> Hi,
>
> My gui have a label using the font size specified by me, and i created a
> FontDialog to let user change the font size.
> After user click "Ok" button in FontDialog, the font didn't update
> immediately (i.e. runtime change font size according to user selection)
> Do anyone know how to perform ?
>
> Thanks
>
>
--
Friederich Kupzog
Elektronik & Software
Neusser Str. 5-7
50670 Köln
Tel 0241 160696-1
Fax 0221 726670
www.kupzog.de/fkmk]]>2005-11-03T15:13:36-00:00Re: Update font size immediately
https://www.eclipse.org/forums/index.php/mv/msg/147171/463325/#msg_463325
Originally posted by: murley.murley.murley
thanks for reply,
Since my gui object is CTabItem, therefore no such method..
And if there has many objects (CTabItem) need to update, i don't want
manually update each one as it is not flexible]]>2005-11-03T15:36:58-00:00Re: Update font size immediately
https://www.eclipse.org/forums/index.php/mv/msg/147171/463329/#msg_463329
Either layout or redraw on tabfolder
murley wrote:
> thanks for reply,
>
> Since my gui object is CTabItem, therefore no such method..
>
> And if there has many objects (CTabItem) need to update, i don't want
> manually update each one as it is not flexible
>
>]]>Stefan Langer2005-11-03T15:39:12-00:00Re: Update font size immediately
https://www.eclipse.org/forums/index.php/mv/msg/147171/463389/#msg_463389
CTabItem.setFont() to change the font for just one item.
DO NOT call redraw - this just causes a repaint and this is not neccessary -
the widget will repaint as required.
You may wish to call folder.getShell().layout(new Control[] {folder}) if you
want the CTabFolder to change size in order to accomodate the new font
size - however, this is not neccessary to see the font change and it really
depends on you application layout.
"Stefan Langer" <eclipse@bettsockentraeger.de> wrote in message
news:dkdat1$hh6$1@news.eclipse.org...
> Updating the tabfolder the cTabitem belong to should do the trick.
> Either layout or redraw on tabfolder
>
> murley wrote:
>> thanks for reply,
>>
>> Since my gui object is CTabItem, therefore no such method..
>>
>> And if there has many objects (CTabItem) need to update, i don't want
>> manually update each one as it is not flexible]]>Veronika Irvine2005-11-04T19:21:52-00:00