Re: Cross platform Widget_Table [message #38185 is a reply to message #38184] |
Tue, 24 February 2004 15:02   |
btt
Messages: 345 Registered: December 2000
|
Senior Member |
|
|
David Fanning wrote:
> Ben Tupper writes:
>
>
>> I have been skittering around all day with widget tables. It's quite a
>> (re)learning curve everytime I use 'em.
>
>
>> I have been assuming that I can simply look for ev.CH = 13B before doing
>> my "AutoSave" thing. But then I read the "String Composition" thread of
>> this week.
>>
>> Are these the end-of-line insertion events same on other systems? I
>> have pasted simple test code below if your willing to test it.
>
>
> I have a firm rule that I *never* answer questions about the Table
> Widget because every time I play with the thing my blood pressure
> rises dangerously. But, for you Ben...
>
> On my Windows machine (Windows 2000, IDL 6.0):
>
> I get a 13B event if I hit RETURN. I don't see any event at
> all in the event handler for TABs (my machine beeps at me
> like I'm doing something wrong!) or arrow keys (although I
> move to a new cell on both tabs and arrows.
>
> There you go. Don't you love it! :-)
>
> Now, where is that medicine... :-(
>
> Cheers,
>
> David
>
Thanks Paul and David,
I know what you mean, David. I thought that fer-sure some expert would
wrap the widget table up in a friendly object. (Eh-hem) I, too, avoid
them when I can. But I seem to be working with vectors of structures
as a handy way to organize flat databases.
On the Winders machine, are you sure you have edited (changed) the cell
value before hitting TABs? It isn't enough to simply select the cell
(at least not on my platform).
If it is true that you can change the value of the cell then hit TAB
without generating an end-of-line event then I might have a wee problem.
Thanks,
Ben
|
|
|