noyantis.com/forum

noyantis user forums
It is currently Sun Sep 05, 2010 6:57 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Disabling, enabling items with Taskbar is on the Frame
PostPosted: Mon Nov 23, 2009 8:01 pm 
Offline

Joined: Mon Nov 23, 2009 7:56 pm
Posts: 2
Hi All..

I need to be able to enable, or disable with code from a separate window andy items on the taskbar when it is on the frame and not in a window.

For some reason code like this

X# = TaskPanel4.SetCtrlState('Capturadedatos','Disabled')

will work only from within the taskbar section, but I can't access it from anywhere else including the menu or frame..
The only way it seems is with events, but how do I send events to the taskpanel that is on a frame from some other windows withought touching the panel?

Best Regards...

Roberto Renz


Top
 Profile  
 
 Post subject: Re: Disabling, enabling items with Taskbar is on the Frame
PostPosted: Mon Nov 23, 2009 8:33 pm 
Offline
Site Admin

Joined: Thu Nov 19, 2009 11:00 pm
Posts: 15
Hi Roberto,

Any of the templates that can be attached to the main AppFrame (eg, CommandBars, TaskPanel, ShortcutBar etc) execute on their own thread.

This thread number is stored in a variable – it's name is made up of the template number followed by '_Thread'. Eg, In the case of TaskPanel, the thread number is stored in a variable called 'NYS005_Thread'.

To set properties or call class methods for templates that are attached to the AppFrame, you will need to pass an user event to the ‘NYS005_Thread’ and then intercept it in the 'NOYANTIS SOFTWARE - TaskPanel - Inside Accept Loop' embed point.

To accomplish your task, you would have to create your own User Event, pass it from the child window (thread) to the main application thread, and then get that to pass it on to the ‘NYS005_Thread’.

I hope this helps,

_________________
Andy Wilton

Author / Developer
http://www.noyantis.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group