Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT Graphics and Controls(How to check whether a control is visible on screen or not.)
SWT Graphics and Controls [message #1016951] Fri, 08 March 2013 05:16 Go to next message
Eclipse UserFriend
HI All,

I have a scenario where i am drawing a rectangles around a text box on focus lost and gained events. Every thing goes fine as long as TextBox is visually seen on screen..the movment i scroll the composite contents...such that textbox can not be seen visually anymore..things starts to fail. Rectangles are getting drawn relative to TextBox location which is actually not visible now.

Is there anyway to first check if Control is visually seen on the screen or not...in case it is not seen on display i will not draw the lines let there be any event on control.

Thanks & Regards,
Rahul



Re: SWT Graphics and Controls [message #1017205 is a reply to message #1016951] Mon, 11 March 2013 02:29 Go to previous message
Eclipse UserFriend
Please provide the code snippet.
Previous Topic:SWT - switch an icon with a text string position.
Next Topic:Waiting cursor "best practice"
Goto Forum:
  


Current Time: Thu Jul 24 12:49:56 EDT 2025

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

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

Back to the top