Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Problem with GUIKit

  • To: mathgroup at smc.vnet.net
  • Subject: [mg96056] Problem with GUIKit
  • From: "Paul Ellsmore" <paul.ellsmore at nanion.co.uk>
  • Date: Tue, 3 Feb 2009 07:17:10 -0500 (EST)

Hi,

 

Does anyone know what the eventname for row selection in a Widget[table] is,
in Version 5.1? 

 

Also, if I use the syntax suggested in GUIKitGuide.nb to list all the
eventnames, methodnames etc, I get an error message:

 

Needs["GUIKit`"];

 

ref = GUIRun[

    Widget["Panel",{

        Widget["ScrollPane",{

            "preferredSize"RWidget["Dimension", {"width"R200,
"height"R110}],

            "viewportView"RWidget["Table",{

                  "items"R{{"a1","b1","c1"},{"a2","b2","c2"}},

                  PropertyValue["model",Name-> "myTableModel"]

                  }, Name->"myTable"]

            }]

        }]

    ]

 

In: "WidgetNames" /. GUIInformation[ref]

Out: {myTable,myTableModel} --- this works OK

 

In: "PropertyNames" /. GUIInformation[ref,"inputField"]

Out: GUIRun::err: The following GUIKit runtime error occurred :

target inputField was not resolved to a valid object instance.

 

The same error message occurs for:

 

Select["MethodNames" /. GUIInformation[ref,"inputField"],

  StringMatchQ[#,"*text*", IgnoreCaseRTrue]&]

 

And for:

 

"EventNames" /. GUIInformation[ref,"inputField"]

 

Any thoughts on how I can find the relevant MethodNames etc?

 

Thanks,

 

Paul

 

 

Dr. Paul A. Ellsmore

 

Nanion Limited

Oxford Centre for Innovation

Mill Street

Oxford

United Kingdom

OX2 0JX

 

Tel: +44 (0) 1865 811175

Fax: +44 (0) 1865 248594


  • Prev by Date: Bug in HypergeometricPFQ[{}, {1/2, 3/4, 3/4}, x]]
  • Next by Date: Re: symbolic matrix manipulation
  • Previous by thread: Re: Bug in HypergeometricPFQ[{}, {1/2, 3/4, 3/4}, x]]
  • Next by thread: Re: Problem with GUIKit