Wojtek Lerch
|
Re: Querying Photon widget contents from a seperate process
|
Wojtek Lerch
12/14/2011 9:49 AM
post90612
|
Re: Querying Photon widget contents from a seperate process
There's no easy way to do this. The Photon server doesn't know about widgets -- it knows about windows and regions
inside windows, but most widgets don't create a region, and those that do, don't associate much information with their
region that could identify the widget (let alone query its resources). Widgets are really just data structures in
memory that dictate the Photon library how to deal with mouse clicks, key presses, drawing, and so on; they can't be
accessed from the outside of the process that owns them.
Your best bet is to invent a messaging interface to allow the test application to query the other application. The best
way to do it in Photon apps is by using the PtConnectorCreate() stuff. But this just gives you a way for the two
processes to send messages to each other -- what to put in the messages is entirely up to you.
|
|
|