lucioing Posted July 21, 2023 Share Posted July 21, 2023 Now, I want to draw a simple rect and write, above it, the string from menu or button choice. PROCEDURE Example_1; VAR MyStr:STRING; MenuItem:INTEGER; result:BOOLEAN; BEGIN SetUnits(0,3,0,2.54,'cm','cmq'); { unità cm } result:=GetPluginChoiceIndex('Example_1', 'Nome', pNome, MenuItem); MyStr:=GetCustomObjectChoice('Example_1', 'Nome', MenuItem); Message(MyStr); <- I get nothing Rect(-100, 100, 100, -100); MoveTo(-100, 150); TextSize(12); CreateText(MyStr); <- and of course here too. END; Run(Example_1); ............................................................................... So, I wonder why. Maybe it is a very stupid bug, but I'm unable to see it. Is there someone who could help me, please? Thank you L. Quote Link to comment
Jesse Cogswell Posted July 21, 2023 Share Posted July 21, 2023 Could you please attach your .vso file so that we can see the plug-in definition settings? My guess is that your objectName argument or the parameterName argument doesn't line up with the parameter names in the plug-in definition, but I can't see that without the object itself. 1 Quote Link to comment
lucioing Posted July 21, 2023 Author Share Posted July 21, 2023 Oh my God... You right!!! I never, never, never thought of that! I feel I'm stupid, but not SO MUCH!!! Thank you, Jesse L. 1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.