uicontrolHyperLink

creates a simple hyperlink for the use in figures and GUI Layout Toolbox
1 Download
Updated 15 Jan 2024

View License

Creates Hyperlink for figure objects (no uifigure needed)
Requiers: findjobj - find java handles of Matlab graphic objects
Yair Altman (2024). findjobj - find java handles of Matlab graphic objects
(https://www.mathworks.com/matlabcentral/fileexchange/14317-findjobj-find-java-handles-of-matlab-graphic-objects),
MATLAB Central File Exchange. Retrieved January 15, 2024.
SYNTAX: h = uicontrolHyperLink(Parent,Position,Units,Fontsize,Text,URL);
INPUT parameters:
Parent - Parent object, specified as a Figure, Panel, ButtonGroup, or Tab object. Use this property to specify the parent container when creating a UI component or to move an existing UI component to a different parent container.
Position - Location and size, specified as a four-element vector of the form [left bottom width height]. Default measurement units are in pixels.
Units - Units of measurement and Font, specified as one of the values 'points' | 'normalized' | 'inches' | 'centimeters' | 'pixels'
Fontsize - Font size of Text, specified as a positive number. The Units property specifies the units.
Text - String that is shown as a hyperlink
URL - URL of the Hyperlink. Opens a new tab in the default Browser and enters URL. If URL contains '@' then th defaultE-Mail program will be opend.
OUTPUT parameters:
h - handle to uicontrol element (Style pushbutton)
EXAMPLES: url = 'https://drive.google.de';
text = 'Google Website';
hlinkDrive = uicontrolHyperLink(figureHandle,[70, 370, 110, 20],'pixels',16,text,url);

Cite As

Sebastian Friedrich (2024). uicontrolHyperLink (https://www.mathworks.com/matlabcentral/fileexchange/157721-uicontrolhyperlink), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2021a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0