comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Table Widget Selection?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Table Widget Selection? [message #33423 is a reply to message #33419] Mon, 06 January 2003 12:12 Go to previous messageGo to previous message
dmarino is currently offline  dmarino
Messages: 9
Registered: November 2002
Junior Member
Man, that's clever. (is the IEPA listening?)

Works like a champ for Windows.
UNIX didn't like it as written , but I think the technique will apply!

Thanks to David Burridge and Pavel for their kind input!!!

I LOVE workarounds and hacks like this. It sure beats just not being
able to do it :-)

dmarino
digitalglobe


"David Burridge" <davidb@clogic.f9.co.uk> wrote in message news:<z2fS9.2758$xE1.422110@stones>...
> I couldn't resist a a gross hack for this!-)
>
> If you create an unmapped draw widget, you can call cursor with /nowait and
> grab the mouse state from !Mouse. Not pretty, but it works ... kinda:-p I've
> attached the test program at the foot of this post. You'll have to diddle
> with it to respond to more than the first click on a table cell.
>
> Suffice to say, I would *never* do this in a serious program, but you got my
> interest piqued!!!
>
> Cheers,
>
> Dave
> --
> David Burridge
> Burridge Computing, 18 The Green South
> Warborough, Oxon, OX10 7DN
> England
> Tel: +44 (0) 1865 858279, Email: davidb@burridgecomputing.co.uk
>
> "dmarino" <dmarino@digitalglobe.com> wrote in message
> news:1c23e5f8.0301022008.66081572@posting.google.com...
>> Happy New Year!
>>
>> Is there any way to tell which button the user selected a table widget
>> cell selection with? Nothing obvious in the docs, unless I'm missing
>> something. A quick search of the threads for this group didn't really
>> return anything.
>> It would be cool if I could tell if the user right-clicked a cell.
>>
>> Thanks in advance,
>> dmarino
>> digitalglobe
>
> ;*** PROGRAM HERE ***
> pro tabletest_event, ev
>
> ; Here's an event
> Print, "Event!"
>
> ; Find out which mouse button was pressed (yuck!) and report
> cursor, x, y, /nowait
> Case !mouse.button OF
> 1 : Print, 'Left button'
> 2 : Print, 'Middle button'
> 3 : Print, 'Left & middle buttons'
> 4 : Print, 'Right button'
> 5 : Print, 'Right & left buttons'
> 6 : Print, 'Right & middle buttons'
> 7 : Print, 'Right, middle & left buttons'
> Else : ; do nothing
> Endcase
>
> end
>
> pro tabletest
>
> ; Create an interface
> tlb = widget_base (title='Table Test')
> t = widget_table (tlb, /edit, /all_events)
>
> ; Create an unmapped widget base so that cursor can be called
> ; to establish which mouse button was pressed (yuck!)
> db = widget_base (tlb, Map=0)
> d = widget_draw (db)
>
> ; Display and manage the interface
> widget_control, tlb, /realize
> xmanager, 'tabletest', tlb, event_handler='tabletest_event'
> end
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.404 / Virus Database: 228 - Release Date: 15/10/2002
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: problem inverting matrix
Next Topic: RESOLVE_ROUTINE

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 08:07:12 PDT 2025

Total time taken to generate the page: 0.00217 seconds