Skip to content

(Not sure) Impossible to set PopupMenu:VALUE due to wrong type #3168

@ChrisInBed

Description

@ChrisInBed

In GUI apps, when I tried to set a string value to PopupMenu:VALUE, there will be error saying you cannot convert a StringValue type to Structure type. Because there is no way to create a Structure type value in kOS script, I think PopupMenu:VALUE is in fact a readonly value.

declare global gui_edl_load_options to gui_edl_load_box:addpopupmenu().
set gui_edl_load_options:value to "entry".  // buggy: `value` is a structure type, but "entry" is a string

I'm not sure if this is a bug; it could also be that I haven't grasped the correct usage.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions