1 Pages (3 items)
ComboBoxList - Variables and an image based on a selection made from a ComboBoxList - Messages
#1 Posted: 4/30/2025 10:01:24 PM
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.
#2 Posted: 5/2/2025 11:46:47 AM
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.
Edited 5/2/2025 11:48:22 AM
Martin Kraska
Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
4 users liked this post
David Daniel Alvarez Galvis 5/2/2025 6:21:25 PM, francesco rapuano 5/3/2025 5:48:46 AM, federico 5/3/2025 11:55:09 AM, Davide Carpi 5/5/2025 7:35:49 AM
#3 Posted: 5/8/2025 9:16:01 PM
Here is an example where the combobox selects one of three pre-defined images, given as matrices.

imageselect.sm (11 KiB) downloaded 7 time(s).
imageselect.sm (11 KiB) downloaded 7 time(s).
Edited 5/8/2025 9:17:43 PM
Martin Kraska
Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 users liked this post
Davide Carpi 5/9/2025 11:43:32 AM
1 Pages (3 items)
-
New Posts
-
No New Posts