Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-1463

Button is disabled and clickable if windows is from visible=false to true

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 6.5.1
    • 6.5.0
    • Components
    • None

      <window >
      	<label multiline="true">
      		1.click open editor 1, the button Save should be enabled and click-able 
      		(however it is disabled but click-able if the bug is not fixed)
      	</label>
      	<zscript>
      	void open1(){
      		win.visible=true;
      		win.getFellow("btn").disabled=false;
      		win.title = "Update";
      	}
      	void open2(){
      		win.getFellow("btn").disabled=false;
      		win.visible=true;
      		win.title = "Update";
      	}
      	void close(){
      		win.visible=false;
      	}
      	</zscript>
      	<button label="Open Editor 1" onClick="open1()" />
      	<button label="Open Editor 2" onClick="open2()" />
      	<window id="win" 
      		mode="modal" width="30em" height="30ex"
      		visible="false" >
      		<vlayout vflex="1">
      			<textbox id="tb" instant="true" rows="2" hflex="1" vflex="1"
      				value="ABCD" />
      		</vlayout>
      		<hbox pack="end" width="100%">
      			<button id="btn" label="Save" onClick="close" disabled="true" />
      		</hbox>
      	</window>
      </window>
      

            jumperchen jumperchen
            dennis dennis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: