[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.newcomer] Move Control Back and Forth

Hello,

         I have created a custom control and placed it on a composite 
layout. The layout type is FormLayout. The left and top property values of 
the custom control is same as the text control right behind it. The question 
is how can I send the text control to front when I click the custom control 
and bring the custom control to front when I click the text box control 
(Something similiar to Visual Basic Z-order type of thing).

Look likes the following code does not work in the vice-versa widgeSelected 
events


For textbox widgetSelected event
=============================
thisClass.sShell.moveAbove(customControl);
thisClass.sShell.moveBelow(textBox);
For customControl widgetSelected event
======================================
thisClass.sShell.moveAbove(textBox);
thisClass.sShell.moveBelow(customControl);

Is there any workaround for this or I am missing something completely

Rusty