octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need someone to test uimenu features on ML


From: Søren Hauberg
Subject: Re: Need someone to test uimenu features on ML
Date: Tue, 11 Oct 2011 20:18:42 +0200

Hi

tir, 11 10 2011 kl. 16:45 +0100, skrev Michael Goffioul:
> 1) callback propagation through menu hierarchy:
> 
> h0 = uimenu ('label', 'Level 0', 'callback', @() disp('level 0'));
> h1 = uimenu (h0, 'label', 'Level 1', 'callback', @() disp('level 1'));
> h2 = uimenu (h1, 'label', 'Level 2', 'callback', @() disp('level 2'));

I get some errors here

??? Error using ==> @()disp('level 0')
Too many input arguments.

(when I click 'Level 0')
 
??? Error while evaluating uimenu Callback

??? Error using ==> @()disp('level 1')
Too many input arguments.

(when I hover over 'level 1')
 
??? Error while evaluating uimenu Callback

??? Error using ==> @()disp('level 2')
Too many input arguments.
 
??? Error while evaluating uimenu Callback

(when I click on 'level 2')

> Then select menu 'Level 2' and see what's printed.
> 
> 2) case-sensitive accelerators
> 
> h0 = uimenu ('label', 'My Menu');
> h1 = uimenu (h0, 'label', 'Normal', 'accelerator', 'z');
> h2 = uimenu (h0, 'label', 'Shifted', 'accelerator', 'Z');
> 
> Then check the accel displayed in the menu and try the following
> key sequences when the figure has the focus:

I might be doing things wrong, but... When I click on 'My Menu' I get to
choose between 'Normal' and 'Shifted' and both have the accelerator
"Ctrl+z". When I click CTRL+Z or CTRL+SHIFT+Z then nothing happens.

Hope that helps I little bit,
Søren




reply via email to

[Prev in Thread] Current Thread [Next in Thread]