Page 2 of 3

Re: Bitmap dropdown list ?

Posted: Thu Oct 04, 2018 10:43 am
by Spogg
tulamide wrote:It's actually not that difficult.

The basis is Flowstone's ability to move a view within another view. Just move the "menu" view out of sight, then when the user clicks to open the menu, move it to that coordinates. The code for the menu itself would be much like a listbox, so my Ruby listbox module might be a good starting point:
http://www.dsprobotics.com/support/viewtopic.php?f=3&t=3928


Interesting points tulamide.
I knocked up a quick demo using your excellent Ruby listbox instead of the standard Windows one. Was this the sort of thing you had in mind?
Of course it’s not actually a bitmap-based selector but maybe it could be adapted somehow…?

Cheers

Spogg

Re: Bitmap dropdown list ?

Posted: Thu Oct 04, 2018 11:24 am
by tulamide
Spogg wrote:
tulamide wrote:It's actually not that difficult.

The basis is Flowstone's ability to move a view within another view. Just move the "menu" view out of sight, then when the user clicks to open the menu, move it to that coordinates. The code for the menu itself would be much like a listbox, so my Ruby listbox module might be a good starting point:
http://www.dsprobotics.com/support/viewtopic.php?f=3&t=3928


Interesting points tulamide.
I knocked up a quick demo using your excellent Ruby listbox instead of the standard Windows one. Was this the sort of thing you had in mind?
Of course it’s not actually a bitmap-based selector but maybe it could be adapted somehow…?

Cheers

Spogg

Yes, that's exactly what I had in mind. The use of the selector is even better than moving the view, in this case. Regarding Bitmap, I didn't really notice this bit. But if you're working with names (file names, patch names, etc) a bitmap version would be very difficult. Adding a bitmap (for example an icon) to a line in the listbox is not so difficult. Just use the same mechanics as for bitmap knobs (a bitmap strip of possible icons, and an index-based copy of the part of the strip you need), and draw it within the coordinates of the line in question.

I know it isn't much help, but I currently can't do an example.

Re: Bitmap dropdown list ?

Posted: Thu Oct 04, 2018 12:29 pm
by lalalandsynth
I had something like this in mind , a dropdown with PNg images , just looks so much better.
Let me see if I can hack something together from that example, although my skills are super limited :P
EDIT: I quickly realize that this is outside my knowledge by far. hehe

I can use the index to switch Png´s and then I make the dropdown in a custom color and font , then this might work.
If I can make the initial selector invisible and just sit on top of the PNG

Sweet


Capture front FS.png
Capture front FS.png (53.84 KiB) Viewed 17443 times

Re: Bitmap dropdown list ?

Posted: Thu Oct 04, 2018 1:02 pm
by lalalandsynth
This could work with a bit of customizing , Thanks Tulamide !!
I am now trying to get rid of the top bar above the list of names so I can place this beneath the PNG and the dropdown list will appear below. is there a line that i can remove to get rid of that ?
Found it, done !



Drpnw.gif
Drpnw.gif (36.64 KiB) Viewed 17441 times

Re: Bitmap dropdown list ?

Posted: Thu Oct 04, 2018 1:15 pm
by lalalandsynth
NICE ! Wooho !

Drpnw 2.gif
Drpnw 2.gif (32.96 KiB) Viewed 17441 times

Re: Bitmap dropdown list ?

Posted: Thu Oct 04, 2018 4:46 pm
by lalalandsynth
This is a slight issue , is it possible to modify this so you can close the menu again by hitting the main knob if you dont select anything ? Also , not as important , close it also if the mouse leaves the area of the knob and the menu so you cannot open multiple menus at the same time?


Drpnw Issue.gif
Drpnw Issue.gif (45.01 KiB) Viewed 17435 times

Re: Bitmap dropdown list ?

Posted: Thu Oct 04, 2018 9:27 pm
by lalalandsynth
Pretty cool , just to to solve the clicking on the png to close the dropdown in case you decide not to change anything.

And the little offset of the light gray banner on top of the fonts when I go to the lowest one.

Drpnw Solved.gif
Drpnw Solved.gif (87.34 KiB) Viewed 17430 times

Re: Bitmap dropdown list ?

Posted: Thu Oct 04, 2018 11:25 pm
by lalalandsynth
BTW, found out why my little meters will not work most of them time.
The stock " meters " seem to have a faulty ASM Ballistics module.
Replaced with an envelope follower and it works fine.

Well...fine, they dont disappear, feel they miss a few hits here and there.

They do however work Full size with the original module.

DISCLAIMER: I am working on the alpha version.

For now ;)

Re: Bitmap dropdown list ?

Posted: Fri Oct 05, 2018 8:22 am
by Spogg
Looking really good!

That's made such a difference to your GUI.

Cheers

Spogg

Re: Bitmap dropdown list ?

Posted: Fri Oct 05, 2018 9:40 am
by tulamide
It feels good to see, that you were able to create it from just a few hints from me and a basic fsm from Spogg. Which should tell you that you are cabable of way more than you trust yourself to do. Remember, you were willing to pay for something you could then create within hours!

So, be more self-confident! Or, as Nike used to say: Just do it!