Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Eclipse 3.1.M6 Strike.through
Eclipse 3.1.M6 Strike.through [message #453280] Mon, 04 April 2005 03:20 Go to next message
Eclipse UserFriend
can StyledText and StyleRange also applied to labels or other basic widgets
?
Re: Eclipse 3.1.M6 Strike.through [message #453286 is a reply to message #453280] Mon, 04 April 2005 13:00 Go to previous messageGo to next message
Eclipse UserFriend
Sorry, it can't. The operating system draws those widgets.

"Christian Schaefer" <chs@tipas.at> wrote in message
news:d2qq19$7po$1@news.eclipse.org...
> can StyledText and StyleRange also applied to labels or other basic
widgets
> ?
>
>
>
>
Re: Eclipse 3.1.M6 Strike.through [message #453317 is a reply to message #453286] Tue, 05 April 2005 04:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: chs.tipas.at

yes i see.

we have like i suppose all others done some additinal coding like that:
Class logFontClass =
Class.forName("org.eclipse.swt.internal.win32.LOGFONT");
...
if (underline) {
logFontClass.getField("lfUnderline").set(logFont, new Byte((byte)
1));
}

for me, it is hard to explain, why we have to to some of such boring low
level tasks to other team members which came from other windows programming
environments, which have had such problems the last time in the mid 90s ;-)

there are some of such basically small things, but for beginners, they are
very hard to solve and maybe time consuming, which should not be the case i
think.



"Steve Northover" <steve_northover@ca.ibm.com> schrieb im Newsbeitrag
news:d2rs22$3eo$1@news.eclipse.org...
> Sorry, it can't. The operating system draws those widgets.
>
> "Christian Schaefer" <chs@tipas.at> wrote in message
> news:d2qq19$7po$1@news.eclipse.org...
>> can StyledText and StyleRange also applied to labels or other basic
> widgets
>> ?
>>
>>
>>
>>
>
>
Re: Eclipse 3.1.M6 Strike.through [message #453445 is a reply to message #453317] Tue, 05 April 2005 14:50 Go to previous message
Eclipse UserFriend
With this code, if your application relies on underlining to show something
to the user in the UI, your app will fail or look wrong everywhere else but
Windows. Obviously, we can't add this to the toolkit for that reason.

"Chris Schaefer" <chs@tipas.at> wrote in message
news:d2tgo9$4o4$1@news.eclipse.org...
> yes i see.
>
> we have like i suppose all others done some additinal coding like that:
> Class logFontClass =
> Class.forName("org.eclipse.swt.internal.win32.LOGFONT");
> ...
> if (underline) {
> logFontClass.getField("lfUnderline").set(logFont, new Byte((byte)
> 1));
> }
>
> for me, it is hard to explain, why we have to to some of such boring low
> level tasks to other team members which came from other windows
programming
> environments, which have had such problems the last time in the mid 90s
;-)
>
> there are some of such basically small things, but for beginners, they are
> very hard to solve and maybe time consuming, which should not be the case
i
> think.
>
>
>
> "Steve Northover" <steve_northover@ca.ibm.com> schrieb im Newsbeitrag
> news:d2rs22$3eo$1@news.eclipse.org...
> > Sorry, it can't. The operating system draws those widgets.
> >
> > "Christian Schaefer" <chs@tipas.at> wrote in message
> > news:d2qq19$7po$1@news.eclipse.org...
> >> can StyledText and StyleRange also applied to labels or other basic
> > widgets
> >> ?
> >>
> >>
> >>
> >>
> >
> >
>
>
Previous Topic:Trouble with put WS_EX_LAYERED (0x80000) flag on the Canvas window
Next Topic:Drag/Drop SWT-TreeItems to JTable in SWT.EMBEDDED Composite?
Goto Forum:
  


Current Time: Tue Jul 15 10:51:48 EDT 2025

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

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

Back to the top