Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Mac Cocoa:-Z order of canvas inside view is changing on resetPerspective(Z order of Canvas inside View is changing when perspective is reset)
Mac Cocoa:-Z order of canvas inside view is changing on resetPerspective [message #876348] Thu, 24 May 2012 12:41 Go to next message
anand joshi is currently offline anand joshiFriend
Messages: 2
Registered: May 2012
Junior Member
Hi ,

I'm working one application on Mac OSx Cocoa using the SWT Cocoa.

The application has one perspective which has multiple views and inside that two canvases are created.
Requirement is that the small canvas should always be above the large canvas.

When i detach the view from the perspective the order is maintained i.e. the small canvas comes on the top of large canvas but when i re-attach this view by the perspective's resetPerspective() method the view gets positioned correctly but the small canvas gets hidden behind large canvas.

I tried implementing smallCanvas.moveAbove(largeCanvas) but no success.

and this happens only on MacOS Cocoa platform , its working correctly on other OS even on Mac Carbon

I'm not sure how the Z-Order of canvas is getting changed on Cocoa platform, if any extra code needs to be written specifically for cocoa?

Regards
anand

Re: Mac Cocoa:-Z order of canvas inside view is changing on resetPerspective [message #876351 is a reply to message #876348] Thu, 24 May 2012 12:43 Go to previous messageGo to next message
anand joshi is currently offline anand joshiFriend
Messages: 2
Registered: May 2012
Junior Member
*in the perspective there are multiple views and one view has two swt canvas
Re: Mac Cocoa:-Z order of canvas inside view is changing on resetPerspective [message #878679 is a reply to message #876348] Tue, 29 May 2012 18:04 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
It sounds like you're seeing a bug in swt's Cocoa port. If you see this
with a recent release of SWT such as
http://download.eclipse.org/eclipse/downloads/drops4/S-4.2RC2-201205242100/index.php
then please log a report with SWT at
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Platform&component=SWT
and provide a means of reproducing the problem.

Thanks,
Grant


On 5/24/2012 8:41 AM, anand joshi wrote:
> Hi ,
> I'm working one application on Mac OSx Cocoa using the SWT Cocoa.
> The application has one perspective which has multiple views and inside
> that two canvases are created.
> Requirement is that the small canvas should always be above the large
> canvas.
>
> When i detach the view from the perspective the order is maintained i.e.
> the small canvas comes on the top of large canvas but when i re-attach
> this view by the perspective's resetPerspective() method the view gets
> positioned correctly but the small canvas gets hidden behind large canvas.
>
> I tried implementing smallCanvas.moveAbove(largeCanvas) but no success.
>
> and this happens only on MacOS Cocoa platform , its working correctly on
> other OS even on Mac Carbon
>
> I'm not sure how the Z-Order of canvas is getting changed on Cocoa
> platform, if any extra code needs to be written specifically for cocoa?
>
> Regards
> anand
>
>
Previous Topic:selection and deselection in treeviewer
Next Topic:StyledText and secondary display
Goto Forum:
  


Current Time: Thu Sep 19 03:34:15 GMT 2024

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

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

Back to the top