MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Podręcznik Użytkownika Strona 579

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 759
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 578
Create Toolbars for Programmatic GUIs
TooltipString specifies the tooltips for the push tool and the toggle too l as
My push tool and Your toggle tool,respectively.
In this example, setting the toggle tool
Separator property to on creates a
dividing line to the left of the toggle tool.
You can change the order of the tools by modifying the child vector of the
parent toolbar. For this example, execute the following code to reverse the
order of the tools.
oldOrder = allchild(th);
newOrder = flipud(oldOrder);
set(th,'Children',newOrder);
This code uses flipud because the Children property is a column v ector.
Use the delete function to remove a tool from the toolbar. The following
statement remove s the
toggle tool from the toolbar. The toggle tool handle
is
tth.
delete(tth)
If necessary, you can use the findall function to determine the handles of
the tools on a particular toolbar.
11-91
Przeglądanie stron 578
1 2 ... 574 575 576 577 578 579 580 581 582 583 584 ... 758 759

Komentarze do niniejszej Instrukcji

Brak uwag