Skip to main content
1-Visitor
April 19, 2013
Question

Another XUI XML Dilaog problem

  • April 19, 2013
  • 1 reply
  • 694 views

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

    jbaklayan1-VisitorAuthor
    1-Visitor
    April 19, 2013

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