[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [platform-swt-dev] Changing the visual aspect of a text control
|
Hi Christophe,
Below the information you requested, and in attachment, the two files
representing what I have and what I want.
Platform : J9 virtual machine 2.0
SWT 2.135
Pocket PC 2002 on Toshiba e740, Compaq iPaq, Fusjitsu-Siemens Pocket
Loox
Sample program:
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Text;
public class Driver {
public static void main(String[] args) {
Display display = new Display();
Shell shell = new Shell(display);
shell.setText("PR");
Text text = new Text(shell, SWT.BORDER);
shell.open();
while (!shell.isDisposed()) {
if (!display.readAndDispatch())
display.sleep();
}
}
}
From: Christophe Cornu <Christophe_Cornu@xxxxxxxxxx>
Reply-To: platform-swt-dev@xxxxxxxxxxx
To: platform-swt-dev@xxxxxxxxxxx
Subject: Re: [platform-swt-dev] Changing the visual aspect of a text
control
Date: Tue, 16 Dec 2003 11:16:25 -0500
Hi Hubert,
Please open a PR (Platform, SWT, Windows CE) with the following data:
- snippet, version of SWT, type of PocketPC
Thanks,
Chris
|---------+---------------------------------->
| | "Hubert Lingo" |
| | <hubertlingo@xxxxxxxxxx|
| | m> |
| | Sent by: |
| | platform-swt-dev-admin@|
| | eclipse.org |
| | |
| | |
| | 12/16/2003 10:55 AM |
| | Please respond to |
| | platform-swt-dev |
| | |
|---------+---------------------------------->
>------------------------------------------------------------------------------------------------------------------------------|
|
|
| To: platform-swt-dev@xxxxxxxxxxx
|
| cc:
|
| Subject: Re: [platform-swt-dev] Changing the visual aspect of a
text control |
|
|
>------------------------------------------------------------------------------------------------------------------------------|
No it doesn't work on a Pocket PC. I still have the same behaviour.
Thanks again.
Hubert.
>From: Christophe Cornu <Christophe_Cornu@xxxxxxxxxx>
>Reply-To: platform-swt-dev@xxxxxxxxxxx
>To: platform-swt-dev@xxxxxxxxxxx
>Subject: Re: [platform-swt-dev] Changing the visual aspect of a text
>control
>Date: Tue, 16 Dec 2003 09:12:11 -0500
>
>
>
>
>
>Hi Reinaldo,
>As David suggested, SWT.FLAT | SWT.BORDER should do it.
>
>Chris
>
>import org.eclipse.swt.*;
>import org.eclipse.swt.widgets.*;
>import org.eclipse.swt.graphics.*;
>import org.eclipse.swt.layout.*;
>
>public class PR {
>
> public static void main(String[] args) {
> Display display = new Display();
> Shell shell = new Shell(display);
> shell.setText("PR");
> Text text = new Text(shell, SWT.SIMPLE | SWT.FLAT |
>SWT.BORDER);
> text.setBounds(10,10,200,50);
> Text text2 = new Text(shell, SWT.MULTI | SWT.FLAT |
>SWT.BORDER);
> text2.setBounds(10,100,200,50);
>
> shell.open();
> while (!shell.isDisposed()) {
> if (!display.readAndDispatch())
> display.sleep();
> }
> }
>}
>
>
>
> David Whiteman
> <dlwhiteman@xxxxxxxxxxx To:
>platform-swt-dev@xxxxxxxxxxx
> .edu> cc:
> Sent by: Subject: Re:
>[platform-swt-dev] Changing the visual aspect of a text control
> platform-swt-dev-admin@
> eclipse.org
>
>
> 12/16/2003 08:45 AM
> Please respond to
> platform-swt-dev
>
>
>
>
>
>
>Tuesday, December 16, 2003, 7:21:11 AM, Reinaldo Braga wrote:
>
> > Hum...
> > I´m undestand....
> > I'll go to search for this
>
> > tks..
> > Reinaldo.
>
>Did you try SWT.FLAT?
>
>Please be sure to use the newsgroups for usage questions.
>
>--
>Regards,
>David
>mailto:dlwhiteman@xxxxxxxxxxxxxxx
>news://news.eclipse.org/eclipse.platform.swt
>http://www.eclipse.org/newsportal/thread.php?group=eclipse.platform.swt
>
>_______________________________________________
>platform-swt-dev mailing list
>platform-swt-dev@xxxxxxxxxxx
>http://dev.eclipse.org/mailman/listinfo/platform-swt-dev
>
>
>
>_______________________________________________
>platform-swt-dev mailing list
>platform-swt-dev@xxxxxxxxxxx
>http://dev.eclipse.org/mailman/listinfo/platform-swt-dev
_________________________________________________________________
MSN Messenger : discutez en direct avec vos amis !
http://www.msn.fr/msger/default.asp
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-swt-dev
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-swt-dev
_________________________________________________________________
MSN Search, le moteur de recherche qui pense comme vous !
http://search.msn.fr/worldwide.asp
Attachment:
WhatIHave.png
Description: PNG image
Attachment:
WhatIWant.png
Description: PNG image