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

knob tooltips

For general discussion related FlowStone

Re: knob tooltips

Postby Nubeat7 » Sat Jun 11, 2016 12:40 pm

but it would be better if the cursor is not shown while dragging and stays at the same position, so after dragging the label keeps on the same place, i think there were posted some ruby/windows solutions somewhere
User avatar
Nubeat7
 
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna

Re: knob tooltips

Postby Tronic » Sat Jun 11, 2016 12:47 pm

yes, I have already tried this, but if you drag an release too fast,
sometime you have an annoying flash redraw before it is cleared,
I've tried other solutions, but I think better than that for now it is not possible.
Tronic
 
Posts: 539
Joined: Wed Dec 21, 2011 12:59 pm

Re: knob tooltips

Postby Nubeat7 » Sat Jun 11, 2016 4:12 pm

another thing which should be changed are the redrawing conditions in the "isInMousePoint" methode of the label
to this:
if (@erase_rect != (@rect = [x+2,y] + @area)) && @show

it should include the @show bool too, other wise it is permanently redrawing when moving the mouse on the surface..

just fixed it in my last version..
User avatar
Nubeat7
 
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna

Re: knob tooltips

Postby Nubeat7 » Sat Jun 11, 2016 5:57 pm

ok how about that, the curser is hidden while interacting with knobs and holds the position, so also the label stays after interacting
Attachments
tooltip_hold_pos_while_drag.fsm
(583.17 KiB) Downloaded 870 times
User avatar
Nubeat7
 
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna

Re: knob tooltips

Postby RJHollins » Sun Jun 12, 2016 4:37 am

Still not seeing any text being displayed :(

But I do see the black box ... and the overall response seems better with this latest version NuBeat.

But why no text display ?? is this a 3.04 issue ? [any working substitute]?

thx
RJHollins
 
Posts: 1571
Joined: Thu Mar 08, 2012 7:58 pm

Re: knob tooltips

Postby Nubeat7 » Sun Jun 12, 2016 11:41 am

is the box black, because it should be grey?
maybe it lies in the fact that the string and background brushes for the label are generated in the init methode, try to move it into the draw methode or make a blankline in the init methode to reinitialise...
User avatar
Nubeat7
 
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna

Re: knob tooltips

Postby aombk » Sun Jun 12, 2016 12:06 pm

great work people! very interesting developments :)
this was a very busy week for me.
so i now have a lot of catching up to do in the filed of knob tooltips :)
User avatar
aombk
 
Posts: 34
Joined: Tue May 24, 2016 2:44 pm
Location: athens, greece

Re: knob tooltips

Postby aombk » Mon Jun 13, 2016 3:53 pm

i find it hard to follow these latest changes. the new knob confuses me. also the color and dimension changes in the tooltip and the knob do not get applied, probably because of what Nubeat7 said, that they get generated in the init method.

also in the last two files i noticed that if you get a tooltip to appear and then quickly move the mouse, sometimes, tooltip "leftovers" remain.

but again, my main problem is that this whole thing has gotten quite complicated. i need time to understand what is going on.
User avatar
aombk
 
Posts: 34
Joined: Tue May 24, 2016 2:44 pm
Location: athens, greece

Re: knob tooltips

Postby Nubeat7 » Mon Jun 13, 2016 5:26 pm

aombk wrote:i find it hard to follow these latest changes. the new knob confuses me. also the color and dimension changes in the tooltip and the knob do not get applied, probably because of what Nubeat7 said, that they get generated in the init method.

the knob itself didn't change a lot, the only thing which is new is the hit path,
it creates an ellipse graphicspath so you can use .isVisible in the isInMousePoint methode which avoids the areacalculating there, i simplyfied this a little more for you below.. and there is a connection from the mOver output to the mousemove on input all the rest is the same as before ..

color and dimension of the label itself is easy to change, just change the area array values( i changed thhe name to labelsize for better understanding) which is width and height of the label
the rest is set inside the font properties ...

what you mean with knobs do not get applied? you don't see them when you open the schematic?
btw if you change something in the knob code sometimes you need to recall the rectangles methode that it is shown on the frontpanel, just click on the radius input to do that..

i also commented the code, hope it helps..

about the artefacts which happens sometimes maybe there can be done a whole area redrawing when @show is set to false, this will be not too often and would clear the whole area not only tha last shown label area, while i need to say that this doesn't happen here..
Attachments
tooltip_hold_pos_while_drag.fsm
(582.36 KiB) Downloaded 884 times
User avatar
Nubeat7
 
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna

Re: knob tooltips

Postby RJHollins » Mon Jun 13, 2016 5:42 pm

For me to get the tooltip to display values, I had to temporarily bypass
#create brushes (can be done in the drawmethode too)
@b1 = Brush.new @c1
@b2 = Brush.new @c2

using #

I could immediately see values in the now greyed box.

I then cleared the 2 # from the code. Still worked.

Question ... I'm not finding a way to set knob to DEFAULT with [Cntrl-Click] ... can this be added ?

thx
RJHollins
 
Posts: 1571
Joined: Thu Mar 08, 2012 7:58 pm

PreviousNext

Return to General

Who is online

Users browsing this forum: No registered users and 31 guests