It is currently Thu Aug 28, 2014 3:16 pm




Post new topic Reply to topic  [ 3 posts ] 
 Enable/disable components between windows 
Author Message
Corporal
Corporal

Joined: Fri Feb 08, 2008 1:21 pm
Posts: 43
Location: North Carolina
Post Enable/disable components between windows
How can I use a button in one window to enable a button in a different window?


Thu Jul 15, 2010 11:04 am
Profile
General
General

Joined: Mon Sep 29, 2008 11:38 am
Posts: 307
Post Re: Enable/disable components between windows
You can enable/disable the components via a Client tag. Just change the client tag state using one button and it will affect the other. Just bind that client tag to the Enabled property of the component(s)you wish to disable/enable.


Thu Jul 15, 2010 12:08 pm
Profile
General
General

Joined: Fri Aug 03, 2007 11:39 am
Posts: 626
Location: Devon, England
Post Re: Enable/disable components between windows
If the other window is open, you can do this directly without needing client tags. You can get a reference to the other window using
Code:
window = system.gui.getWindow('windowName')
You can then get a reference to any control in the window using something like
Code:
window.getRootContainer().getComponent('buttonName')
depending on where the control is in the hierarchy.

_________________
Al
DataCapture Ltd.

www.datacap.co.uk


Fri Jul 16, 2010 12:09 pm
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: