cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

Another XUI XML Dilaog problem

jbaklayan
1-Newbie

Another XUI XML Dilaog problem

Along with the other issues I am having with dockable dialogs, I am also having problems where a button on a dialog always gets activated every time the dialog gets focus. The XML looks like:





<window modal="false" resize="none" orient="horizontal" pack="stretch" title="" xmlns:ev="http://www.w3c.org/2001/xml-events">
<imagegroup><image id="RFCLookup" path="c:\temp\sgml\adept\packages\RFC.gif"/"></imagegroup>
<button id="RFC" image="RFCLookup"></button>
<label label="Active" rfcs:&quot;="/>
<textbox id="RFCDescription'.doc." backgroundcolor="#E4E4E4" readonly="true" width="80">
</textbox>
</window>


I create a callback function for the button:


dlgitem_add_callback(base::RFC_DLG_HANDLE[doc], 'RFC', 'infobar::rfc_btn_cb')


The button gets activated every time the window gets focus. Just clicking on the title bar to try and move the window will cause the button to fire. Not sure what I am doing wrong to prevent this from happening.


I am using version 5.3.


Thanks.


John

1 REPLY 1

Figured it out. I needed to check the event to make sure it was "ITEM_CHANGED" on the button.

Top Tags