Support

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

Multiple views (Ruby)

For general discussion related FlowStone

Multiple views (Ruby)

Postby DaveyBoy » Mon Apr 03, 2017 11:22 am

Hi Guys

The manual (page 156) mentions multiple views but doesn't explain how to use them. In the example below, how would I draw to the bottom view only?

Image

As always any advice much appreciated.

Thanks in advance
Dave
User avatar
DaveyBoy
 
Posts: 131
Joined: Wed May 11, 2016 9:18 pm
Location: Leeds UK

Re: Multiple views (Ruby)

Postby TheOm » Mon Apr 03, 2017 5:43 pm

Use the first parameter of draw to distinguish which view is requesting the draw, for example like this:
Attachments
ruby multi view.fsm
(549 Bytes) Downloaded 939 times
TheOm
 
Posts: 103
Joined: Tue Jan 28, 2014 7:35 pm
Location: Germany

Re: Multiple views (Ruby)

Postby DaveyBoy » Mon Apr 03, 2017 7:34 pm

Yes that works

Thanks TheOm :)
User avatar
DaveyBoy
 
Posts: 131
Joined: Wed May 11, 2016 9:18 pm
Location: Leeds UK

Re: Multiple views (Ruby)

Postby DaveyBoy » Mon Apr 03, 2017 10:23 pm

Hmmmm now I have another issue:

Image

The mouseover is still active in the top view... any way to stop this?

Multiple Display Mouseover.fsm
(1.96 KiB) Downloaded 939 times


Thanks again in advance :)
User avatar
DaveyBoy
 
Posts: 131
Joined: Wed May 11, 2016 9:18 pm
Location: Leeds UK

Re: Multiple views (Ruby)

Postby KG_is_back » Tue Apr 04, 2017 12:26 am

It seems to be a bug. In the mouse-related methods the input ("i") object doesn't work. It always is index 0 by default and empty name (""). While in the draw method it is correctly indexed both by number and by name.
KG_is_back
 
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: Multiple views (Ruby)

Postby DaveyBoy » Tue Apr 04, 2017 11:20 am

Thanks KG
Seems this has been mentioned before, I was just about to give up when I found this thread:

http://www.dsprobotics.com/support/viewtopic.php?f=2&t=3518&hilit=multiple+view&start=10

So adapting Tronic's "Trigger View" workaround and changing the cursor all is good :D

Image

Multiple Display Mouseover Working.fsm
(2.18 KiB) Downloaded 890 times


It is a bit of a hack but it works!
Hope this will help someone else in the future until the bug is fixed :)

Thanks again KG
User avatar
DaveyBoy
 
Posts: 131
Joined: Wed May 11, 2016 9:18 pm
Location: Leeds UK


Return to General

Who is online

Users browsing this forum: No registered users and 35 guests