Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-swt-dev] RE: platform-swt-dev digest, Vol 1 #671 - 3 msgs

Hello All,
I have written one class xyzPage derived from WizardPage. This page contains
one List control.
I want to disable finish button by default on this page.
Also I want to add functionality. If there are NO items available in list
control then only Finish should be ENABLED else keep Disabled.
One more thing, when I click finish, which internal function should I
override to read the contents of List control on pressing Finish.

Thanks & Regards
Sunil

-----Original Message-----
From: platform-swt-dev-admin@xxxxxxxxxxx
[mailto:platform-swt-dev-admin@xxxxxxxxxxx]On Behalf Of
platform-swt-dev-request@xxxxxxxxxxx
Sent: Wednesday, July 23, 2003 9:30 PM
To: platform-swt-dev@xxxxxxxxxxx
Subject: platform-swt-dev digest, Vol 1 #671 - 3 msgs


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

To subscribe or unsubscribe via the World Wide Web, visit
	http://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-admin@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. SWT drawing operations too slow (Sebastian Bauer)
   2. items in a table required? (Minh Chiem)
   3. Re: items in a table required? (Veronika Irvine)

--__--__--

Message: 1
From: sebauer@xxxxxxxxxxx (Sebastian Bauer)
To: <platform-swt-dev@xxxxxxxxxxx>
Date: Tue, 22 Jul 2003 18:02:39 +0200
Subject: [platform-swt-dev] SWT drawing operations too slow
Reply-To: platform-swt-dev@xxxxxxxxxxx

Hello,

I wrote something like this in the newsgroup but I didn't get a answer here
so I trying here again.

For a hobby projects I need an angle depend gradient fill for polygons. As
SWT does supporting no angle depend gradient I had to write an own routine.
The method creating the gradient returns a object of type ImageData and
works more or less well.
The next problem was to bring this gradient fill onto a GC but note that
only pixels inside a polygon should be setted.
For this purpose I create a two color image with the same dimensions of the
image and draw a single filled color polygon onto this. Then I extract the
pixels of the two color image (color 0 means transparent and color 1 not)
using this information to set the alpha data of the orginal ImageData. So
finally only the pixel which are inside the polygon are drawn when a Image
(created from this ImageData) is drawn.
The problem is that this all is very slow. Most time is spend on
GC.drawImage() and in the called drawImageAlpha() method.
Is there a better known way to speed up the operation? Can the operations
inside SWT be optimized? When looking through the SWT source I see lot of
conversion which is probably the main time eater.
I also tried to build a Image with only a bitmask attached (rather than the
use of alphachannel). This speed up the drawing operation but operation to
build the mask takes about the same time (there is no way to set the mask of
an ImageData object from outside)

Thanks in advance,
Sebastian



--__--__--

Message: 2
Date: Wed, 23 Jul 2003 11:20:39 +1000
From: Minh Chiem <minhchiem@xxxxxxxxxxxx>
To: platform-swt-dev@xxxxxxxxxxx
Subject: [platform-swt-dev] items in a table required?
Reply-To: platform-swt-dev@xxxxxxxxxxx

I've create a table with a cursor table. The thing is that initially,
there are no items in the table but when I try to resize the columns,
the app crashes. It seems that the table cursor has 2 private attribues,
row and column. They are intialised to 0 and when the column is resized,
the table cursor tries to resize by getting the size of the table item
by calling table.getItem(row) or something along those lines. anyway, it
throws an IllegalArgumentException which is bad.

is there going to be a fix for this?


--__--__--

Message: 3
To: platform-swt-dev@xxxxxxxxxxx
Subject: Re: [platform-swt-dev] items in a table required?
From: "Veronika Irvine" <Veronika_Irvine@xxxxxxxxxx>
Date: Wed, 23 Jul 2003 08:37:48 -0400
Reply-To: platform-swt-dev@xxxxxxxxxxx

Do not create the TableCursor until you have created a TableItem.





Minh Chiem <minhchiem@xxxxxxxxxxxx>
Sent by: platform-swt-dev-admin@xxxxxxxxxxx
07/22/2003 09:20 PM
Please respond to platform-swt-dev

        To:     platform-swt-dev@xxxxxxxxxxx
        cc:
        Subject:        [platform-swt-dev] items in a table required?


I've create a table with a cursor table. The thing is that initially,
there are no items in the table but when I try to resize the columns,
the app crashes. It seems that the table cursor has 2 private attribues,
row and column. They are intialised to 0 and when the column is resized,
the table cursor tries to resize by getting the size of the table item
by calling table.getItem(row) or something along those lines. anyway, it
throws an IllegalArgumentException which is bad.

is there going to be a fix for this?

_______________________________________________
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


End of platform-swt-dev Digest



Back to the top