Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...


In order to use an image that GiD use, you must use the tcl function gid_themes::GetImage, to see a complet complete list of images available you can take a look for example to the folder:
(GiD Folder)\themes\GiD_classic\images\large_size(24andmore)

...


If your module needs other images from ones supplied by GiD
You can use:
gid_themes::GetImageModule to get the appropriate image, from inside the module folder, depending on current theme.
gid_themes::GetImage { full_path_filename } , image will be equal regardless of current theme. This is the 'old sytlestyle', with the module images stored as module developer want, without follow the previously recommended folder layout.

Note: the full_path_filename points to a 'module' file, but it must be build in a relative way, based on the problemype problemtype location.
e.g.

Code Block
proc InitGIDProject { dir } {
  set full_path_filename [file join $dir my_images_folder my_image.png] 
  set img [gid_themes::GetImage $full_path_filename]
  ...
}

...