There is a problem of dysplaying a tool tip when edit field of small size is placed on the edge of app's frame.
classdef test2 < matlab.apps.AppBase % Properties that correspond to app components
properties (Access = public) UIFigure matlab.ui.Figure EditFieldLabel matlab.ui.control.Label EditField matlab.ui.control.NumericEditField end % Component initialization
methods (Access = private) % Create UIFigure and components
function createComponents(app) % Create UIFigure and hide until all components are created
app.UIFigure = uifigure('Visible', 'off'); app.UIFigure.Position = [100 100 517 163]; app.UIFigure.Name = 'MATLAB App'; % Create EditFieldLabel
app.EditFieldLabel = uilabel(app.UIFigure); app.EditFieldLabel.HorizontalAlignment = 'right'; app.EditFieldLabel.Position = [343 28 56 22]; app.EditFieldLabel.Text = 'Edit Field'; % Create EditField
app.EditField = uieditfield(app.UIFigure, 'numeric'); app.EditField.Tooltip = {'This is a tooltip'}; app.EditField.Position = [476 28 38 22]; % Show the figure after all components are created
app.UIFigure.Visible = 'on'; end end % App creation and deletion
methods (Access = public) % Construct app
function app = test2 % Create UIFigure and components createComponents(app) % Register the app with App Designer
registerApp(app, app.UIFigure) if nargout == 0 clear app end end % Code that executes before app deletion
function delete(app) % Delete UIFigure when app is deleted
delete(app.UIFigure) end endend
Best Answer