HI SHAI! im interested to disable the interfase (touch screen) while im
doing some query's i tryed with
Display.getInstance().setTouchScreenDevice(false) but the device stills
responding to the touch. what im doing wrong?
my code is:
public void showInfiniteProgress()
{
if (infiniteGenerado == false)
{
glass.setUIID("InfiniteProgress");
glass.setLayout(new BorderLayout());
Container infiniteContainer = new Container();
glass.addComponent(BorderLayout.CENTER, infiniteContainer);
TableLayout tl = new TableLayout(1, 1);
infiniteContainer.setLayout(tl);
Constraint consTL = tl.createConstraint();
consTL.setWidthPercentage(100);
consTL.setHeightPercentage(100);
consTL.setHorizontalAlign(Component.CENTER);
consTL.setVerticalAlign(Component.CENTER);
infiniteContainer.addComponent(consTL, new InfiniteProgress());
infiniteGenerado = true;
}
if (super.contains(glass))
{
super.removeComponent(glass);
}
super.addComponent(glass);
Display.getInstance().setTouchScreenDevice(false);
}
public void removeInfiniteProgress()
{
super.removeComponent(glass);
// Display.getInstance().getCurrent().setLeadComponent(null);
Display.getInstance().setTouchScreenDevice(true);
}
thanks
If you are experiencing an issue please mention the full platform your
issue applies to:
IDE: NetBeans/Eclipse/IDEA
Desktop OS
Simulator
Device
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit
https://groups.google.com/d/msgid/codenameone-discussions/d186f415-b176-46c5-a613-16d46e3701ae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.