Hey everyone!
What is the correct usage of toggle buttons for the new Toolbar
class? Are we supposed to indicate groupings, which buttons are
complementary or opposite of one another? Or is all this supposed to
be done through code?
The default behavior (not doing anything) goes like this. I tried a
simple example with two toggle buttons in a window toolbar. Starting
with both buttons unselected (pushed = false).
1. Click first button. It gets selected. OK.
2. Click the same button again. It deselects itself. OK.
3. Repeat same two steps with second button while first deselected.
Same result. OK.
4. Click first button to select it, then click second button. First
button deselects automatically. OK.
5. Now while second button is selected, click first button. Nothing
happens. ?
6. Click first button a second time. Now it gets selected. ?
That's just one example. When you have 5 or 6 buttons it's the same
thing even if they are separated by a separator, so it seems
impossible to have two groups of buttons that pertain to different
things?
I also tried to make the buttons behave the way I want via code. I
tried the following with my two first buttons.
select case item
case Toolbar11.ToolItem5
Toolbar11.ToolItem5.Pushed = true
Toolbar11.ToolItem6.Pushed = false
case Toolbar11.ToolItem6
Toolbar11.ToolItem5.Pushed = false
Toolbar11.ToolItem6.Pushed = true
end select
This makes the problem explained in 5. and 6. above go away. Good.
But then clicking twice in a row on the same button deselects both
buttons and it takes a few clicks to get a selection back, even
though the code specifically says what should happen.
I didn't find much help in the online reference. Any ideas how this
is supposed to behave anyone?
Steve
--
Steve Roy
<http://homepage.mac.com/sroy>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>