Identify Parent using Unique Child object with the tag
[-] CustomWin StockBondNMutualFundSales
[ ] msw tag "[AfxWnd42s]DialogView/[PushButton]$5007/.."
..The above tag is working, Is it possible to recognize the parent when the PushButton has the index #1 and identifier $5007.
I tried various formats such as
[-] CustomWin StartWizardScreen
[ ] msw tag "[AfxWnd42s]DialogView/[PushButton]$5007/..|[AfxWnd42s]DialogView/[PushButton]#1/.."
but didn't work...
What am I missing...
[This message has been edited by aspmurali (edited 04-04-2003).]
Re: Identify Parent using Unique Child object with the tag
First I'd suggest looking very closely at Silk's Record/Declaration, Record/Identifier or Record/Tag dialog to watch the tag change as the mouse cursor is moved between the parent and the ...MutualFundSales dialog (and button). The difference at the beginning of the displayed tag in one of these Silk dialogs will be the parent.
I'd then change the CustomWin to a class that Silk recognizes such as MainWin and the tags to match the contents discovered above. A StockBondNMutualFundSales.GetParent() will also report the parent.
Another quick-n-dirty approach would be to:
when the StockBondNMutualFundSales has input focus.