Page 1 of 1

Is this a bug?

Posted: Sun Mar 05, 2017 4:18 pm
by DaveyBoy
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 1119 times

Re: Is this a bug?

Posted: Sun Mar 05, 2017 5:24 pm
by DaveyBoy
Please re-download.... Schoolboy error in the schematic :oops:

Re: Is this a bug?

Posted: Sun Mar 05, 2017 8:21 pm
by Nubeat7
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....

Re: Is this a bug?

Posted: Sun Mar 05, 2017 10:10 pm
by DaveyBoy
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 1158 times

Re: Is this a bug?

Posted: Sun Mar 05, 2017 11:12 pm
by tulamide
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.

Re: Is this a bug?

Posted: Sun Mar 05, 2017 11:29 pm
by DaveyBoy
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

Re: Is this a bug?

Posted: Sun Mar 05, 2017 11:34 pm
by tulamide
You're welcome :)