Author Topic: Removing an item from a GuiPopUpMenuCtrl?  (Read 1379 times)

I honestly cannot figure out how to do this. I'm adding one with %ctrl.add("text", 1);

-snip-
Edit:
In  %ctrl.add("text", 0), the 0 should be the index.
Does %ctrl.remove(0); work?
« Last Edit: March 31, 2015, 04:08:52 AM by Honorabl3 »

Nah I tried that it said invalid object.

Maybe you could clear all elements with %ctrl.clear(); and re-add ones you want to keep?

Doesn't just doing this with $foobar = %ctrl.add("text", 1); and then using $foobar.delete(); work?

Doesn't just doing this with $foobar = %ctrl.add("text", 1); and then using $foobar.delete(); work?
Nope.

Maybe you could clear all elements with %ctrl.clear(); and re-add ones you want to keep?
Yea that works I guess I'll do that.

Thanks.