ComboBoxList

ComboBoxList - Variables and an image based on a selection made from a ComboBoxList - Сообщения

#1 Опубликовано: 30.04.2025 22:01:24
David Daniel Alvarez Galvis

David Daniel Alvarez Galvis

1 сообщений из 9 понравились пользователям.

Группа: User

Hello everyone.

In SMath, is it possible to show variables and an image based on a selection made from a ComboBoxList in the graphical interface? For example, if I select T-type rings, it should only display the T-type image and the input variables related to T-type. Or if I select Omega-type, it should show the Omega-type image and the corresponding input variables for Omega. Tipo de anillos.PNGSeleccion tipo T.PNG

I appreciate any help you can provide.
#2 Опубликовано: 02.05.2025 11:46:47
Martin Kraska

Martin Kraska

1 230 сообщений из 2 156 понравились пользователям.

Группа: Moderator

As to the image, that is possible. You can use the image region to display an image from a file. Just provide the filename based on the combobox selection. You also could perhaps embed the graphics in the sm file by reading them into a matrix using functions from Mathcad toolbox.

You also could dynamically generate the images using the standard plot region, X-Y plot region or modeller region.
Отредактировано 02.05.2025 11:48:22
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
5 пользователям понравился этот пост
David Daniel Alvarez Galvis 02.05.2025 18:21:25, francesco rapuano 03.05.2025 05:48:46, federico 03.05.2025 11:55:09, Davide Carpi 05.05.2025 07:35:49, ioan92 10.05.2025 08:45:03
#3 Опубликовано: 08.05.2025 21:16:01
Martin Kraska

Martin Kraska

1 230 сообщений из 2 156 понравились пользователям.

Группа: Moderator

Here is an example where the combobox selects one of three pre-defined images, given as matrices.

image.png

imageselect.sm (11 КиБ) скачан 79 раз(а).
Отредактировано 08.05.2025 21:17:43
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
3 пользователям понравился этот пост
ioan92 09.05.2025 18:32:19, Alvaro Diaz Falconi 10.05.2025 01:56:59, Davide Carpi 09.05.2025 11:43:32
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений