From 13231ccfb1db122002105b6cd33a59ba894db796 Mon Sep 17 00:00:00 2001 From: Matthew Dawson Date: Thu, 14 Jun 2012 19:38:26 +0000 Subject: [PATCH] Revert last commit, it broke too many things. Due to matlab stupidity, it doesn't have an undo functionality in its input boxes (why?). The work around involves unfocusing and re-focusing the textbox. In the meantime, the original bug I tried to fix is still out there. git-svn-id: https://groke.mcmaster.ca/svn/grad/colin/trunk/TableTool@8552 57e6efec-57d4-0310-aeb1-a6c144bb1a8b --- @GUI/init.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/@GUI/init.m b/@GUI/init.m index d653478..44e552a 100644 --- a/@GUI/init.m +++ b/@GUI/init.m @@ -66,6 +66,7 @@ object.check_pb = uicontrol('style','push',... 'string','Syntax',... 'HorizontalAlign','left',... 'Parent',object.fig,... + 'Max',2.0,... 'callback',@(src,event)check_call(object,src,event)); @@ -107,6 +108,7 @@ object.function_name_control = uicontrol('style','edit',... 'HorizontalAlign','center',... 'FontWeight','bold',... 'FontSize',12,... + 'Max',2.0,... 'KeyPressFcn',@(src,event)textbox_callback(object,src,event),... 'BackgroundColor',[1 1 1]); @@ -122,6 +124,7 @@ object.function_inputs_control = uicontrol('style','edit',... 'Parent',object.fig,... 'HorizontalAlign','center',... 'FontWeight','bold',... + 'Max',2.0,... 'FontSize',12,... 'KeyPressFcn',@(src,event)textbox_callback(object,src,event),... 'BackgroundColor',[1 1 1]); -- GitLab