f



Why doesn't the 'ButtonDownFcn' of my static text box get activated when it is located above a frame? (Solution Number: 1-19EAA)

from jrobinson@sara.com: Here is a work-around I used, for MATLAB
7.3:

%Edit text with Max=2 causes problem in MATLAB Solution Number:
1-19EAA
hEdit = uicontrol(hFig,'style','edit', 'Max', 1);
set(hEdit, 'ButtonDownFcn','Soln_1_19EAA_CB');

function Soln_1_19EAA_CB
	hEdit = gco;
	set(hEdit, 'Max', 2);
	set(hEdit, 'Enable', 'on');
	set(hEdit, 'ButtonDownFcn', '');
return
0
jrobinson (4)
12/18/2006 8:12:44 PM
comp.soft-sys.matlab 211266 articles. 25 followers. lunamoonmoon (257) is leader. Post Follow

0 Replies
741 Views

Similar Articles

[PageSpeed] 52

Reply: