Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] RE: HOW to remove title bar of SWT Shell after creation of Shell


Platforms that have a Window manager such as Linux don't let you change the trim after a window has been created.  It's not an SWT limitation.  Every application that runs on those platforms has this problem.



"Daniel Spiewak" <djspiewak@xxxxxxxxx>
Sent by: platform-swt-dev-bounces@xxxxxxxxxxx

01/29/2007 12:23 AM

Please respond to
"Eclipse Platform SWT component developers list."        <platform-swt-dev@xxxxxxxxxxx>

To
"Eclipse Platform SWT component developers list." <platform-swt-dev@xxxxxxxxxxx>
cc
Subject
Re: [platform-swt-dev] RE: HOW to remove title bar of SWT Shell after        creation of Shell





Well, your question probably should have been asked on the eclipse.platform.swt newsgroup since it's really usage related.  People who monitor this mailing list aren't really on the lookout for usage questions, so a lot go unanswered...

The short answer to your question is: no.  The long answer to your question is: well, no.  Once a shell (or any control for that matter) is created, you cannot change its style bits.  You have two options as I see them.  First: create the shell NO_TRIM to begin with and emulate the trim until you no longer need it.  Otherwise: create two shells and reparent a content composite from one to the other.  This is a pretty bad solution, but if you're desperate...  I suppose, there is a third option, which would be find a way to avoid needing a shell which starts trimmed and becomes trimless.  :-)

Daniel

On 1/28/07, Kumar, Saurav <saurav.kumar@xxxxxxxxx > wrote:

Why not anybody accepting my request? Is there some rule like committer
can only raise the questions or my question so stupid that..

Reply soon
Saurav


-----Original Message-----
From:
platform-swt-dev-bounces@xxxxxxxxxxx
[mailto:
platform-swt-dev-bounces@xxxxxxxxxxx] On Behalf Of
platform-swt-dev-request@xxxxxxxxxxx
Sent: Thursday, January 25, 2007 10:30 PM
To:
platform-swt-dev@xxxxxxxxxxx
Subject: platform-swt-dev Digest, Vol 23, Issue 7

Send platform-swt-dev mailing list submissions to
       
platform-swt-dev@xxxxxxxxxxx

To subscribe or unsubscribe via the World Wide Web, visit
       
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
or, via email, send a message with subject or body 'help' to
       
platform-swt-dev-request@xxxxxxxxxxx

You can reach the person managing the list at
       
platform-swt-dev-owner@xxxxxxxxxxx

When replying, please edit your Subject line so it is more specific
than "Re: Contents of platform-swt-dev digest..."


Today's Topics:

  1. How to remove title bar of SWT Shell after        creation of
Shell
     (Kumar, Saurav)
  2. New DateTime Widget (Dave Smith)


----------------------------------------------------------------------

Message: 1
Date: Thu, 25 Jan 2007 12:47:22 +0530
From: "Kumar, Saurav" <
saurav.kumar@xxxxxxxxx>
Subject: [platform-swt-dev] How to remove title bar of SWT Shell after
       creation of Shell
To: <
platform-swt-dev@xxxxxxxxxxx >
Message-ID:
       <
CE652BC92C01E645A7AD3BCEF5CDD86BF3E983@xxxxxxxxxxxxxxxxxx >
Content-Type: text/plain; charset="us-ascii"



Dear All,



If I create shell with this style

final Shell shell2 = new Shell(SWT.RESIZE);



I get intended shell.



But I want to remove title bar (as it is appearing with SWT.RESIZE) of
already created shell then ?



I am not able to find any way to do so.



Another alternative is

Can I create new shell with this style and transfer all the contents of
old one to new shell ?



Please reply





With Best Regards,

Saurav





DISCLAIMER:
Unless indicated otherwise, the information contained in this message is
privileged and confidential, and is intended only for the use of the
addressee(s) named above and others who have been specifically
authorized to receive it. If you are not the intended recipient, you are
hereby notified that any dissemination, distribution or copying of this
message and/or attachments is strictly prohibited. The company accepts
no liability for any damage caused by any virus transmitted by this
email. Furthermore, the company does not warrant a proper and complete
transmission of this information, nor does it accept liability for any
delays. If you have received this message in error, please contact the
sender and delete the message. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:

https://dev.eclipse.org/mailman/listinfo/platform-swt-dev/attachments/20
070125/e6e67edc/attachment.html

------------------------------

Message: 2
Date: Thu, 25 Jan 2007 10:26:21 -0500
From: Dave Smith <
dave.smith@xxxxxxxxxxx>
Subject: [platform-swt-dev] New DateTime Widget
To:
platform-swt-dev@xxxxxxxxxxx
Message-ID: <
1169738781.16229.4.camel@xxxxxxxxxxxxxxxxxxx>
Content-Type: text/plain

I have a couple of requests.

1. Can we add an ISO date format? YYYY/MM/DD
2. If we are using an ISO date format can we have a Century default? In
our custom DateTime Widget the first two digits are filled in (20) and
the user is started at the 3rd. position.
3. Can we set and retrieve the date out of the widget using a standard
java.util.Date or java.util.Calendar ?
4. How does the user pop down the calendar selection?

--
Dave Smith
CANdata Systems Ltd
416-493-9020



------------------------------

_______________________________________________
platform-swt-dev mailing list

platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev


End of platform-swt-dev Digest, Vol 23, Issue 7
***********************************************



DISCLAIMER:
Unless indicated otherwise, the information contained in this message is privileged and confidential, and is intended only for the use of the addressee(s) named above and others who have been specifically authorized to receive it. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message and/or attachments is strictly prohibited. The company accepts no liability for any damage caused by any virus transmitted by this email. Furthermore, the company does not warrant a proper and complete transmission of this information, nor does it accept liability for any delays. If you have received this message in error, please contact the sender and delete the message. Thank you.
_______________________________________________
platform-swt-dev mailing list

platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev


Back to the top