Home › Forums › Problems and solutions in GDL › Graphical UI and parameters list › more picture parameters
- This topic has 6 replies, 3 voices, and was last updated 7 years, 8 months ago by
Szabadi Gergely.
-
AuthorPosts
-
-
July 31, 2017 at 15:19 #3429
Szabadi Gergely
ParticipantHi!
I would like to know, if there is a way, to create more than one picture-chooser parameter? (gs_picture_name)
Is there any naming order to multiply that, like “gs_picture_name2” ?Many thanks!
G. Szabadi
-
August 1, 2017 at 08:09 #3431
Gergely Fehér
KeymasterYou can use any string parameter for storing an image name…
Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SE -
August 1, 2017 at 09:08 #3432
Szabadi Gergely
ParticipantBut I would like to have the option to scroll and choose from the pictures of added libraries. Like in the picture, but I would like to create this scrolling-type parameter many times.
Attachments:
G. Szabadi
-
August 1, 2017 at 11:25 #3439
Csilla Mai
MemberHi,
If you would like to use the same value list for the same parameter in more library parts, you can create a library part under Library Master subtype. This library part’s every value list definition applies to all the parameters with the same name in the loaded library. If you write the value list definition for “gs_picture_name” parameter in the parameter script of the library part with the Library Master subtype, as the example:
values "gs_picture_name" "1.png", "2.png", "3.png", "4.png", CUSTOM
then every string parameter with the name “gs_picture_name” will get this value list automatically.
If you want to use the same value list in one library part more times, it is recommended to store the list in an array, and use the array as a value list for the differently named parameters.
Csilla Mai
Library Developer, Library Team
GRAPHISOFT SE -
August 1, 2017 at 12:16 #3440
Szabadi Gergely
ParticipantDear Csilla,
I think maybe you misunderstood. I understand, that I can define values in parameter list. But I don’t want to define as I don’t know which picture (from which library) want to be used by the user.
So I found this “gs_picture_name” parameter name (STR type), which results that the parameter values already change for only picture formats from added libraries. I only want to use more parameter like this.
for example I want create a double screens for a PC workstation and the double screen is one object. I would like that user has the option which picture he or she want to see on which screen. And the user could choose from all added library.
G. Szabadi
-
August 1, 2017 at 13:14 #3441
Csilla Mai
MemberHi,
The User image files can be requested by an application query . The value list of “gs_picture_name” and “gs_picture_name_2D” parameters are defined in a Library Master file by the returned data of this application query:
! ==============================================================================
! Custom picture file request
! ==============================================================================
dim stCustomPicFiles[]
bCustomPicFileExist = APPLICATION_QUERY (“LIBRARY_MANAGER”, “USER_IMAGE_FILES”, stCustomPicFiles)
if bCustomPicFileExist then
values “gs_picture_name” stCustomPicFiles, CUSTOM
values “gs_picture_name_2D” stCustomPicFiles, CUSTOM
endifCsilla Mai
Library Developer, Library Team
GRAPHISOFT SE -
August 2, 2017 at 12:28 #3442
Szabadi Gergely
ParticipantThank you Csilla!
That is what I was looking for!G. Szabadi
-
-
AuthorPosts
- The forum ‘Graphical UI and parameters list’ is closed to new topics and replies.