At 04:36 PM 11/23/2006, you wrote:

> I'm kind of hijacking this thread a bit (forgive me), but how do
> you make the Row highlighted BEFORE the CellClick event ends? I
> often have code in the CellClick that creates a delay, and I think
> the user would want to at least see that he selected SOMETHING,
> instead of waiting for some operation to finish.

You could put your code in the action event of a timer and it would
then run after the event is finished. You would set the Mode of the
timer to 1 during the CellClick event.

I've been trying to clean up my programming styles (encapsulate, code reuse, comment well, be clear about variable names, write functions with clear purposes and not make them too long, etc.), but it's so frustrating when the development environment forces you to write unclear hacky code just to workaround an IDE kink.

But you point is taken, at least your idea works, which is good, but it's frustrating to have to work at cross-purposes.

The nice thing about Visual Basic is that even though you have a BASIC language thing and interpreted code, you pretty much have a completely open-ended system to where if the IDE restricts you from something, you can use the Windows API using Declares or write a C++ DLL to do what you want. In this instance, you'd simply send a Windows message to the listbox forcing the selection to be made early in the CelLClick code. (But Windows/VB draws the selection before the event code anyway.)

With RB there isn't that flexability; perhaps it's a Mac problem that you don't have these type of events to control objects. VB tends to use Windows-standard controls, I don't kow, perhaps RB uses their own and they aren't open to the Mac API sections.

It is generally not a good idea to interrupt the built in events in
many cases. This might be one.

See above. RB=closed system. VB=open system.

You can also use properties to set the flow of your code after the event has finished.

What do you mean by that?



Garth Hjelte
Sampler User


_______________________________________________
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>

Reply via email to