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

Is this a bug?

Post any examples or modules that you want to share here

Is this a bug?

Postby DaveyBoy » Sun Mar 05, 2017 4:18 pm

Hi folks

I've made a vertical scrollbar for a project, it seems to be working ok except:
Once I move the slider the green input prims lock up and I am unable to change their values:

Image

is this a bug or am I overlooking something?

Any help much appreciated... Thanks in advance

Vertical Scrollbar.fsm
(1.47 KiB) Downloaded 934 times
User avatar
DaveyBoy
 
Posts: 131
Joined: Wed May 11, 2016 9:18 pm
Location: Leeds UK

Re: Is this a bug?

Postby DaveyBoy » Sun Mar 05, 2017 5:24 pm

Please re-download.... Schoolboy error in the schematic :oops:
User avatar
DaveyBoy
 
Posts: 131
Joined: Wed May 11, 2016 9:18 pm
Location: Leeds UK

Re: Is this a bug?

Postby Nubeat7 » Sun Mar 05, 2017 8:21 pm

everything whats inside the init methode is initialised just once when the app is loaded or when you change some code in the ruby module....
User avatar
Nubeat7
 
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna

Re: Is this a bug?

Postby DaveyBoy » Sun Mar 05, 2017 10:10 pm

Hi Nubeat7

Thanks for the quick reply. Yes I'm aware of the init method but I should be able to change these values on the fly.
What's happening is that once I've moved the scroller by hand I can no longer click inside and highlight the integer prims, once I click inside the ruby edit it comes right again.... until I move the scroller again.

And there's more.... when it locks up like this it wont let me highlight inside the slider properties:

Image

It must be either a bug or there's something in my code that Flowstone doesn't like :?

Strange thing is . . . it works!

Scroller Issue.fsm
(4.59 KiB) Downloaded 976 times
User avatar
DaveyBoy
 
Posts: 131
Joined: Wed May 11, 2016 9:18 pm
Location: Leeds UK

Re: Is this a bug?

Postby tulamide » Sun Mar 05, 2017 11:12 pm

There's no mouse Up method, but the real issue is you capture the mouse but never release it. To every capture belongs a release, else the mouse will not work correctly until a new capture command occurs. You can test it by moving your scrollbar then moving the slider. After that the mouse works again.

You should also use your own view (create module, place mgui inside, create view output), because the one you use always draws a bitmap (even if invisible) which makes it very slow.
"There lies the dog buried" (German saying translated literally)
tulamide
 
Posts: 2686
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Is this a bug?

Postby DaveyBoy » Sun Mar 05, 2017 11:29 pm

Yes that's fixed it... I should have worked that out myself, another schoolboy error on my part :oops: Thanks Tulamide.

I only have the display connected for testing but I wasn't aware that it would draw in the background when hidden.
Something new learned from this :)

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

Re: Is this a bug?

Postby tulamide » Sun Mar 05, 2017 11:34 pm

You're welcome :)
"There lies the dog buried" (German saying translated literally)
tulamide
 
Posts: 2686
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany


Return to User Examples

Who is online

Users browsing this forum: No registered users and 17 guests