find a controls using its title in gtk or any others

Submitted by UnTouchAble on Wed, 27/04/2005 - 04:12.
( categories: Programming )

salamo 3alekom

in my graduation project i've stuck in this problem in win32 there's a function called FindWindowEx(....)

by using the window title or button title ... i could get a handle to this widget(using gtk language)

when passing null i could get the controls contained in certain window

for non win32 programmer windows OS treat every thing in terms of window and child window So button,labels, ..... treated as child windows .

the problem is when i need to do that in linux i already do a function which simulate a FindWindow but it could find only the main window not widget inside it by using xlib directly but what about widgets .....

could any one help at least in how gtk ,qt or tk treat widget inside it

i think motif use the same concept used by win32 then what about the others

ofcourse u need to know what is this ??? the app is Gui testing tool but no unit testing which mean the GuiTester is separated from the program under test not like juint or marathon or other stuff

REGARDs


Reply





*

  • Allowed HTML tags: <a> <b> <dd> <dl> <dt> <i> <li> <ol> <ul> <pre> <blockquote> <img> <ins> <del> <br> <div> <span> <em> <h1> <h2> <h3> <h4> <h5> <h6> <code> <p> <hr>
  • You can insert tables with comma separated values (CSV) into the text, they will be automatically converted to appropriate HTML-tables.
  • You may link to images on this site using a special syntax
  • WikiText is converted to HTML (supported WikiText formatting will show in the long tip format).
  • You may write mixed Arabic and English freely, line direction will be computed automaticaly
  • Glossary terms will be automatically marked with links to their descriptions