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
Graphical drop-down selector
25 posts
• Page 2 of 3 • 1, 2, 3
Re: Graphical drop-down selector
Oddly I can't replicate what we both think happened! This one seems to be fine, knobs work completely independently ..
Good news for the project in hand .. not so good for your & my advancing memory errr whatsitcalled
Or maybe what we both reckon we encountered previously was different to this, course it was.
H
Good news for the project in hand .. not so good for your & my advancing memory errr whatsitcalled
Or maybe what we both reckon we encountered previously was different to this, course it was.
H
-
HughBanton - Posts: 265
- Joined: Sat Apr 12, 2008 3:10 pm
- Location: Evesham, Worcestershire
Re: Graphical drop-down selector
tulamide wrote:Hugh, regarding setShowInParent, it is (as far as I know) only active in FS4. I thought you were using the latter, sorry for confusion!
Yes, I invariably do use FS4. But I haven't managed to make setShowInParent work - any clues regarding the syntax/usage?
Thanks
H
-
HughBanton - Posts: 265
- Joined: Sat Apr 12, 2008 3:10 pm
- Location: Evesham, Worcestershire
Re: Graphical drop-down selector
PS .. and of course my failing memory jibe was only aimed at Spogg & Me, not any of you youngsters out there
-
HughBanton - Posts: 265
- Joined: Sat Apr 12, 2008 3:10 pm
- Location: Evesham, Worcestershire
Re: Graphical drop-down selector
HughBanton wrote:Oddly I can't replicate what we both think happened! This one seems to be fine, knobs work completely independently ..
Good news for the project in hand .. not so good for your & my advancing memory errr whatsitcalled
Or maybe what we both reckon we encountered previously was different to this, course it was.
H
Your example makes use of selectors and other things, that might be a workaround (I have to spend time with it first). Try mine, it is just two rectangles (both black at the start). When clicking on the background one, only that will randomly change color. When clicking on the smaller foreground one, both change color randomly.
- Attachments
-
- click-through.fsm
- (536 Bytes) Downloaded 477 times
"There lies the dog buried" (German saying translated literally)
- tulamide
- Posts: 2714
- Joined: Sat Jun 21, 2014 2:48 pm
- Location: Germany
Re: Graphical drop-down selector
Regarding setShowInParent I investigated the code base. Although both methods (setShowInParent and setViewSize) are described on page 172 of the user manual, they are removed from the View class in FS4. Not a hint of them, they were not even just made private.
That is very sad.
3.06 never had them, and I think they were introduced with 3.0.8.x (but nobody should seriously work with those versions).
So now we're back to square one. Well. You found a non-Ruby way, so everything's fine, I guess?
That is very sad.
3.06 never had them, and I think they were introduced with 3.0.8.x (but nobody should seriously work with those versions).
So now we're back to square one. Well. You found a non-Ruby way, so everything's fine, I guess?
"There lies the dog buried" (German saying translated literally)
- tulamide
- Posts: 2714
- Joined: Sat Jun 21, 2014 2:48 pm
- Location: Germany
Re: Graphical drop-down selector
So, not my finest hour, but this does at least provide a working start point I think ...
And it's actually a 'drop-sideways' selector, like you always wanted. (Sorry, it just came out that way )
The logic is not ideal, doesn't quite behave like the traditional drop-down list yet. Maybe someone can tidy it up if they feel enthused.
Another next step to replace the instant graphics with a bit-map bar which can be indexed, same as the way the toolbox multi-colour LED works. I'm sure there's a neat Ruby method out there for most of this ...
Hugh
And it's actually a 'drop-sideways' selector, like you always wanted. (Sorry, it just came out that way )
The logic is not ideal, doesn't quite behave like the traditional drop-down list yet. Maybe someone can tidy it up if they feel enthused.
Another next step to replace the instant graphics with a bit-map bar which can be indexed, same as the way the toolbox multi-colour LED works. I'm sure there's a neat Ruby method out there for most of this ...
Hugh
-
HughBanton - Posts: 265
- Joined: Sat Apr 12, 2008 3:10 pm
- Location: Evesham, Worcestershire
Re: Graphical drop-down selector
A better one. More work to do but at least this now functions just like a toolbox drop-down list.
2 main changes : I added 'mouseMove' so you can hover without selecting, and hence 'Select' now toggles the list.
I'll get round to a bitmap version eventually!
H
2 main changes : I added 'mouseMove' so you can hover without selecting, and hence 'Select' now toggles the list.
I'll get round to a bitmap version eventually!
H
-
HughBanton - Posts: 265
- Joined: Sat Apr 12, 2008 3:10 pm
- Location: Evesham, Worcestershire
Re: Graphical drop-down selector
Was also trying to make one.. With not much advancement..
Finally i go for another concept. No more drop-down window.
But a stepped X/Y scroll bitmap.
For now there's no preset save inside, and the bitmap must be 48pixels multiple.
Also it's in green module.
Finally i go for another concept. No more drop-down window.
But a stepped X/Y scroll bitmap.
For now there's no preset save inside, and the bitmap must be 48pixels multiple.
Also it's in green module.
- Attachments
-
- Graphic Selector XY Scroll.fsm
- (90.07 KiB) Downloaded 439 times
- Tepeix
- Posts: 361
- Joined: Sat Oct 16, 2021 3:11 pm
Re: Graphical drop-down selector
A little upgrade to the bitmap scroll.
Now it works with preset. (but i never find a way to make works the default value..)
And the size more easily configurable.
(some fast made decoration just to see it in some context)
Now it works with preset. (but i never find a way to make works the default value..)
And the size more easily configurable.
(some fast made decoration just to see it in some context)
- Attachments
-
- Graphic Selector XY Scroll v3.fsm
- (122.2 KiB) Downloaded 459 times
- Tepeix
- Posts: 361
- Joined: Sat Oct 16, 2021 3:11 pm
Re: Graphical drop-down selector
I've done some more, made bitmap & Ruby graphic versions which work rather well .. except ...
Found it all a bit daunting converting to 3.06, so (apologies) I've just posted it over on Discord instead
The mouse 'transparency' problem still exists, where you sometimes end up adjusting more than you bargained for.
Which is a major snag - would love to find a solution.
H
Found it all a bit daunting converting to 3.06, so (apologies) I've just posted it over on Discord instead
The mouse 'transparency' problem still exists, where you sometimes end up adjusting more than you bargained for.
Which is a major snag - would love to find a solution.
H
-
HughBanton - Posts: 265
- Joined: Sat Apr 12, 2008 3:10 pm
- Location: Evesham, Worcestershire
25 posts
• Page 2 of 3 • 1, 2, 3
Who is online
Users browsing this forum: No registered users and 58 guests