[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #47513] function "uibuttongroup" not implement
From: |
John Donoghue |
Subject: |
[Octave-bug-tracker] [bug #47513] function "uibuttongroup" not implemented |
Date: |
Tue, 17 May 2016 14:47:45 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2486.0 Safari/537.36 Edge/13.10586 |
Follow-up Comment #9, bug #47513 (project octave):
Works in both Linux and windows for me
I tested with the code in the help and then variants of this:
function test_uibuttongroup
f = figure();
bgroup = uibuttongroup(f, ...
"title", "Test", ...
"position",[0 0 .5 .5],...
"BorderType", "etchedout", ...
"titleposition", "centertop", ...
"selectionchangedfcn",address@hidden);
% Create three radio buttons in the button group.
uicontrol(bgroup,...
"style", "radiobutton",...
"string","radiobutton 1",...
"position",[10 150 300 30],...
"handlevisibility","off");
uicontrol(bgroup,
"style", "radiobutton",...
"string","radiobutton 2",...
"position",[10 100 300 30],...
"handlevisibility","off");
uicontrol(bgroup,
"style", "radiobutton",...
"string","radiobutton 3",...
"position",[10 50 300 30],...
"handlevisibility","off");
% create menus in the context menu
c = uicontextmenu (f);
m1 = uimenu ("parent",c,"label","Menu item 1","callback","disp('menu item
1')");
set (bgroup, "uicontextmenu", c);
endfunction
function buttonselection(source,callbackdata)
printf("Previous selection: %s\n", get(callbackdata.OldValue, 'String'));
printf("New selection: %s\n", get(callbackdata.NewValue, 'String'));
endfunction
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?47513>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/