2
Window
에 현재 "포커스"가 있는지 어떻게 확인할 수 있습니까?ZK Window에 포커스가 있는지 확인하십시오.
즉 ZIndex가 가장 높은지 확인하십시오. getZIndex()
을 사용할 수는 있지만, 가장 높은지 아직 알 수 없습니다.
Window
에 현재 "포커스"가 있는지 어떻게 확인할 수 있습니까?ZK Window에 포커스가 있는지 확인하십시오.
즉 ZIndex가 가장 높은지 확인하십시오. getZIndex()
을 사용할 수는 있지만, 가장 높은지 아직 알 수 없습니다.
은 기본적으로 당신은 최상위 창을 닫을 때
예를 들어,
<zk>
<window mode="overlapped" title="win one" border="normal" width="200px" height="150px">
<attribute name="onMove"><![CDATA[
((Label)self.getFirstChild()).setValue("My Zindex is the highest one");
((Label)self.getNextSibling().getFirstChild()).setValue("");
]]></attribute>
<attribute name="onClick"><![CDATA[
((Label)self.getFirstChild()).setValue("My Zindex is the highest one");
((Label)self.getNextSibling().getFirstChild()).setValue("");
]]></attribute>
<label value="" />
</window>
<window mode="overlapped" title="win two" border="normal" width="200px" height="150px">
<attribute name="onMove"><![CDATA[
((Label)self.getFirstChild()).setValue("My Zindex is the highest one");
((Label)self.getPreviousSibling().getFirstChild()).setValue("");
]]></attribute>
<attribute name="onClick"><![CDATA[
((Label)self.getFirstChild()).setValue("My Zindex is the highest one");
((Label)self.getPreviousSibling().getFirstChild()).setValue("");
]]></attribute>
<label value="" />
</window>
</zk>
그러나, 등 무엇을 최소화됩니까, 윈도우가 온 클릭하고 onMove 동안 가장 상단 하나가 알 수 있습니까? – bidifx
쉬운 방법이 없으며, 모든 창을 가져 와서 비교할 필요가 있습니다. zIndex – benbai123