1 páginas (3 elementos)
ComboBoxList - Variables and an image based on a selection made from a ComboBoxList - Mensajes
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.

I appreciate any help you can provide.
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.
I appreciate any help you can provide.
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.
You also could dynamically generate the images using the standard plot region, X-Y plot region or modeller region.
Editado 2/5/2025 11:48:22
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
A 5 usuarios les gustó este mensaje
David Daniel Alvarez Galvis 2/5/2025 18:21:25, francesco rapuano 3/5/2025 5:48:46, federico 3/5/2025 11:55:09, Davide Carpi 5/5/2025 7:35:49, ioan92 10/5/2025 8:45:03
Here is an example where the combobox selects one of three pre-defined images, given as matrices.

imageselect.sm (11,24 KiB) descargado 1678 vez(es).

imageselect.sm (11,24 KiB) descargado 1678 vez(es).
Editado 8/5/2025 21:17:43
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
A 3 usuarios les gustó este mensaje
1 páginas (3 elementos)
- Nuevos mensajes
- Sin mensajes nuevos