Ticket Created
over 5 years ago

WERETECH-8355

Menu2 does not render to the display in the simulator set for GPSMAP device

Reproduce with Menu2Sample, adding GPSMAP to build target.  Pressing menu button has no visual affect.  Testing this with my own code the menu2 code seems to run and function but there is no updates to the display on the simulator
Garmin SDK 3.1.8

Eclipse Version: 2020-03 (4.15.0) Build id: 20200313-1211

  • Yes. The simulator doesn't properly handle user input, so the menu is unusable.

  • I've linked this issue to your original ticket.

  • Or is that what you meant by not handling user input?  Is there a fix/workaround for this?

  • That gets me a little further.  Copying in the following:-

    <menu2_layout mode="scroll">
    <title_region h="59" w="282" x="0" y="0" />
    <custom_title h="59" w="282" x="0" y="0" />
    <title_string font="medium" w="268" x="141" y="40" />
    <item_region div="1" h="59" w="282" x="0" y="0" />
    <item font_x="15" h="59" label_font="medium" sublabel_font="tiny" w="282" />
    <sub_item h="51" label_font="tiny" label_w="200" y_offset="0" />
    <item_string_limits basic_w="255" check_w="205" icon_w="217" toggle_w="190" />
    <item_toggle align="left" off="menu2_toggle_off_edge.png" on="menu2_toggle_on_edge.png" x="15" y="20" />
    <item_toggle align="right" off="menu2_toggle_off_edge.png" on="menu2_toggle_on_edge.png" x="217" y="20" />
    <item_check align="left" off="menu2_check_off_edge.png" on="menu2_check_on_edge.png" x="17" y="12" />
    <item_check align="right" off="menu2_check_off_edge.png" on="menu2_check_on_edge.png" x="233" y="12" />
    <check_done_button position="bottom" />
    <item_icon align="left" h="24" w="24" x="15" y="18" />
    <item_icon align="right" h="24" w="24" x="243" y="18" />
    <align_defaults check_align="right" icon_align="right" toggle_align="right" />
    </menu2_layout>

    Now gets the sim to display

    But I can't get the menu to display or accept selections? It does respond to the Menu and Quit keys.

  • I’m almost certain that I found this a while back and filed a bug.

    If I remember correctly, the gpsmap66 entry in devices.xml doesn’t have a menu2 layout defined. Once you fix that (you can copy the entry from a similar device like the edge1030), you’ll find the menu won’t properly handle user input.