Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing ComboBox features #468

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

tabrath
Copy link

@tabrath tabrath commented May 30, 2019

As I was in need of more ComboBox functionality and it's in your backlog (#309) I took a shot at it and implemented:

  • Removal of item
  • Insertion of item
  • Clearing all items

I've tested this on Linux (Arch) and Windows by adding buttons for each method in the test project. Unfortunately my objective-c competence is equal to zero and I've got no macOS installation to test on right now, so that code needs a proper review/test.

void uiComboboxDelete(uiCombobox *c, int n)
* Unix: gtk_combo_box_text_remove
* Windows: CB_DELETESTRING
* Darwin: NSPopUpButton.removeItemAtIndex
void uiComboboxClear(uiCombobox *c)
* Unix: gtk_combo_box_text_remove_all
* Windows: CB_RESETCONTENT
* Darwin: NSPopUpButton.removeAllItems
void uiComboboxInsertAt(uiComboBox *c, int n, const char *text)
* Unix: gtk_combo_box_insert
* Windows: CB_INSERTSTRING
* Darwin: NSArrayController.insert
@andlabs andlabs added this to the Alpha 5 milestone May 30, 2019
@MarSoft
Copy link

MarSoft commented Mar 15, 2020

Is there anything I could help with this PR to speed up making it available in the next release? Unfortunately I also have no knowledge in ObjectiveC.
I am most interested in Go bindings actually.

@AndreRenaud
Copy link

Is this PR looking likely to merge into the next release?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants