Menu

#87 Gauge inside Alert

open
nobody
None
5
2008-07-23
2008-07-23
pascal
No

The following code failed in MicroEmulator but works fine in WTK and on a real device:

Alert alert = new Alert("Foo");
Gauge gauge = new Gauge(null, false, 10, 0);
alert.setIndicator(gauge);

Discussion

  • pascal

    pascal - 2008-07-23
     
  • pascal

    pascal - 2008-07-23

    Logged In: YES
    user_id=1276308
    Originator: YES

    This is the UnitTest code for the previous patch.
    File Added: gauge-vs-alert-unittest.txt

     
  • pascal

    pascal - 2008-07-23
     
  • David N. Welton

    David N. Welton - 2008-10-21

    I just set them both prefWidth and prefHeight to -1 when creating them, and that seemed to work. In any case I can confirm this is a problem.

     

Log in to post a comment.