
FB II Compiler
PG PRO
Debugging
Memory
System
Mathematics
Resources
Disk I/O
Windows
Controls
Menus
Mouse
Keyboard
Text
Fonts
Drawing
Sound
Clipboard
Printing
Communication
ASM |
CONTROLS
Dim a scroll button
Once the SCROLL BUTTON is created, it is treated like a regular BUTTON. As such, you can detect its movement using the BUTTON function and (more to the point) set its state using the BUTTON statement. Try this:
BUTTON scrollBtnID, _grayBtn
...and to re-activate it:
BUTTON scrollBtnID, _activeBtn
Remember to use a _positive_ ID value in the BUTTON statement, even though you may have used a negative value in the SCROLL BUTTON statement.
Please look at inactive folders while in Finder. You will observe, or at least I do, that there are little arrows appearing in the scroll bars when the windows are active. When the windows are inactive, those little arrows go away.
However, in FB, when you dim an EDIT FIELD scroll bar, the arrows remain.
In fact, unless you have a filled EDIT FIELD (with the scroll bar thumb showing) there is _no_ difference between an active scroll bar and an inactive scroll bar. That was the point of my inquiry. Is there a way to dim a scroll bar such that it looks like the scroll bars found on open folder in the Finder?
I accidentally deleted Tedd's mail about dimmed scroll bars not totally being dimmed out in FB the same way they are in other apps, but here's my reply anyway.
If you want that effect, you may need to close the scroll button (BUTTON CLOSE butnId) when the window is in the background and then recreate it when your window comes to the front.
|