フィルターのクリア

Hidden password in MATLAB App designer

38 ビュー (過去 30 日間)
Mukesh Reddy Samreddy
Mukesh Reddy Samreddy 2023 年 7 月 12 日
回答済み: Sai Gokul 2023 年 7 月 12 日
How can I add a component in App Designer that allows th user to show and hide passwords? I am currently unable to edit the existing component, and I have not been able to find any suitable component fr this purpose.

回答 (1 件)

Sai Gokul
Sai Gokul 2023 年 7 月 12 日
Hi Mukesh,
I understand you want to add a text box that hides the text you entered.
You can follow the below steps
  1. Install the "Widgets Toolbox" add-on from the MATLAB File Exchange by visiting the following URL: Widgets Toolbox - MATLAB App Designer Components.
  2. Once the add-on is installed, open MATLAB App Designer.
  3. In the "Components" panel on the left-hand side of the App Designer window, you should now see a new component called "PasswordField" listed under the "Widgets" section.
  4. To add the PasswordField component to your app's user interface, simply drag and drop it onto the app's design canvas.
  5. Customize the properties of the PasswordField component by selecting it on the canvas and modifying the options in the "Properties" panel on the right-hand side. You can change the label text, set a default value, adjust the size, etc., as per your requirements.
  6. To access the entered text from the PasswordField component in your MATLAB code, you can use its "ValueChangedFcn" callback. This callback will be triggered whenever the value of the PasswordField changes. You can assign a callback function to this event to perform actions based on the entered text.
Hope it helps!

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

製品


リリース

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by