View Full Version : query attribute from image(image for window)
JayHoo 04-27-2010, 04:18 PM Hi, I need to query "google.png" from bild0 object. But I am not able to get it. I think it is quite simple:
image -image "google.png" bild0;
For easier testing:
if(`window -exists ImgWdw`) deleteUI ImgWdw;
if( `windowPref -exists ImgWdw` ) windowPref -r ImgWdw;
window ;
columnLayout;
image -image "google.png" bild0;
showWindow;
|
|
NaughtyNathan
04-27-2010, 04:26 PM
image -q -image bild0;
?
:nathaN
JayHoo
04-27-2010, 05:01 PM
Thanks for your reply. The code did give an error but the content of the string is empty. :(
Keilun
04-27-2010, 05:35 PM
Worked just fine for me on 2010:
if(`window -exists ImgWdw`) deleteUI ImgWdw;
if( `windowPref -exists ImgWdw` ) windowPref -r ImgWdw;
window ;
columnLayout;
image -image "google.png" bild0;
showWindow;
image -q -image bild0;
// Result: google.png //
If you have multiple image widgets named bild0, then you might have to qualify it using the full path name. Could that be your error?
JayHoo
04-27-2010, 06:32 PM
Hm, ok. Works in 2010. But in 2011 I get no result.
Keilun
04-28-2010, 03:15 PM
Looks like a bug.
CGTalk Moderation
04-28-2010, 03:15 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.