openframeworks / openframeworks/openFrameworks

feature : ofSystemContextMenu

Open
#2,509 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

core feature
Dominant language
C++
Stars
10.4k
Forks
2.6k
Avg merge
1d 21h
Merged PRs (30d)
9

Description

something like

vector<string> myOptions;
myOptions.push_back("Option 1");
myOptions.push_back("Option 2");
myOptions.push_back("Option 3");
ofContextMenuResult result = ofSystemContextMenu(myOptions);

if (result.index == 0) {
    // we hit "Option 1"
}

if (result.name == "Option 2") {
    // we hit "Option 2"
}

I imagine we stop evaluating the app until the user either clicks a context menu item or clicks the app outside the context menu (in which case the click is sent to onMousePressed, etc).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Use the proposed ofSystemContextMenu API and the onMousePressed behavior in the issue as the starting specification. First locate existing platform-specific event and menu entry points; done requires an agreed cross-platform result shape and behavior for selecting an item or clicking outside, with validation on the affected platforms.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.