On Nov 25, 2006, at 2:25 PM, Rubber Chicken Software Co. wrote:
The difference I see in this case is that 1) VB shows the cell
selected, then executes the code in the "Click" event, 2) RB
executes the code, then shows the cell as selected (highlights it).
That's the defaults. What I was referring to was that in VB, and in
Windows, I can swap the behavior if I wanted to. On RB and Mac, I
(apparently) can't.
On Windows (maybe on RB and VB, but for sure on VB), you can send a
Windows message to the ListBox window to select something, or
deselect something, no matter what VB is doing. VB is nice enough
to allow something else to "mess" with it's functionality. There
are some exceptions (Menus especially), but generally if you play
the game right, you can blend Windows messages and common VB events
and come up with something that works for you.
And you do this within the Cell code itself, not some other place.
Instead of using a Timer, which is a hack, just to avoid RB's built-
in behavior.
Well, you can always make a feature request to have Rb behave in the
manner you find most convenient.
As I said above, you have the option of doing everything yourself or
responding after the event.
How do I do that?
Return True in the CellClick event.
There are many changes that myself and others would like to see
happen in the ListBox events. Some have been reviewed which simply
means they have received it and might change it if it fits within
their current scheme. The effort they put into these requests is
directly proportional to their available development time and the
severity (number of requests).
VB is *not* Rb and hoping that REAL will make it's framework similar
to VB is not a realistic goal. One good reason might be that Rb is
committed to making a Cross-platform environment which VB never
attempted to do. In that case, why should one expect a step backwards
to make Rb just like VB?
You may think it is easier to do what you want in VB but I am certain
that there are other features in Rb that aren't available in VB that
offset this shortcoming.
In any case, there are ways and means to accomplish the tasks and
responses you desire in Rb. Even if some of them are currently
workarounds. Isn't the end result the most important item you should
be concerned about?
Terry
_______________________________________________
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>