If you have a problem or need to report a bug please email : support@dsprobotics.com
There are 3 sections to this support area:
DOWNLOADS: access to product manuals, support files and drivers
HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects
USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here
NEW REGISTRATIONS - please contact us if you wish to register on the forum
Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright
Ruby setViewSize
6 posts
• Page 1 of 1
Ruby setViewSize
The user guide describes this method to resize a view within its parent. However, trying to use it raises a 'no method' error, and indeed the methods-call doen't list setViewSize, just getViewSize.
Any information on this? Especially how to set the view size without this method?
Any information on this? Especially how to set the view size without this method?
"There lies the dog buried" (German saying translated literally)
- tulamide
- Posts: 2714
- Joined: Sat Jun 21, 2014 2:48 pm
- Location: Germany
Re: Ruby setViewSize
I believe it is the FS 3.0.5 feature. There is no other way of setting view size as far as I'm concerned. You may cheat a little and use clipping and area redraws to simulate the behavior to some extend.
- KG_is_back
- Posts: 1196
- Joined: Tue Oct 22, 2013 5:43 pm
- Location: Slovakia
Re: Ruby setViewSize
Ah, I see! Thanks. I wanted to add this as a feature to a control, but size set by the user when building the view is also sufficient.
"There lies the dog buried" (German saying translated literally)
- tulamide
- Posts: 2714
- Joined: Sat Jun 21, 2014 2:48 pm
- Location: Germany
Re: Ruby setViewSize
I wonder why there isn't this feature in the FS primitives in the first place(on the Module GUI prim to be specific).
- KG_is_back
- Posts: 1196
- Joined: Tue Oct 22, 2013 5:43 pm
- Location: Slovakia
Re: Ruby setViewSize
KG_is_back wrote:I wonder why there isn't this feature in the FS primitives in the first place(on the Module GUI prim to be specific).
Me too. It was one of the first things I wondered about when starting doing graphics. Would make life much easier
"There lies the dog buried" (German saying translated literally)
- tulamide
- Posts: 2714
- Joined: Sat Jun 21, 2014 2:48 pm
- Location: Germany
Re: Ruby setViewSize
tulamide wrote:KG_is_back wrote:I wonder why there isn't this feature in the FS primitives in the first place(on the Module GUI prim to be specific).
Me too. It was one of the first things I wondered about when starting doing graphics. Would make life much easier
It definitely would. Perhaps they didn't added it straightaway because there were some issues with recalculation of front panel (I can imagine this to happen when the frontpanel size suddenly changes, trowing redraws and viewArea triggers all over the place). But since they added it in ruby, the normal green version shouldn't be so much of an effort to add.
- KG_is_back
- Posts: 1196
- Joined: Tue Oct 22, 2013 5:43 pm
- Location: Slovakia
6 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 80 guests