Vous suivez désormais cette question
- Les mises à jour seront visibles dans votre flux de contenu suivi.
- Selon vos préférences en matière de communication il est possible que vous receviez des e-mails.
background of editable cells UITABLE
12 commentaires
Réponse acceptée
15 commentaires

- Just a side-note. When you replace the simple string with HTML code, the entire code becomes the text for that UITable cell (see code [1] below). If another section in your GUI reads the UITable, it will not read "2" in cell (2,1). It will read the long html string instead. This is a common problem.
- The CellSelection callback function is invoked every time you select a cell before you have a chance to change anything. If you move your code from the CellSelection callback function into a CellEditCallback function (first you'll need to add one from GUIDE), then you'll have the chance to edit the cell before the html comes into effect. Pro: Now you can edit the cell. Con1: the cell won't be highlighted until after you're done editing. Con2: When you select the cell to make a change, the simple string you see (ie, "2") will become the full html string shown in code [1] below. Con3: See point #1 above.
- If you decide to try out point #2 above, you'll need to change a line of your code. Currently you're not reading the current UI table. You're reading whatever was stored in "setappdata" previously. I'm not sure why you're using this approach when the first input to any callback function is the handle to the object you're manipulating. To fix that, make the change shown in code [2] below.
Plus de réponses (1)
Voir également
Catégories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Une erreur s'est produite
Impossible de terminer l’action en raison de modifications de la page. Rechargez la page pour voir sa mise à jour.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.
Amériques
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom(English)
Asie-Pacifique
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)
