Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 07:20 Go to next message
Christian Schaefer is currently offline Christian SchaeferFriend
Messages: 2
Registered: July 2009
Junior Member
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 17:00 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
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 08: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 18:50 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
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: Fri Feb 26 21:21:04 GMT 2021

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

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

Back to the top