forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Using + to execute two callbacks

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+
View previous topic :: View next topic  
Author Message
wahorger



Joined: 13 Oct 2014
Posts: 781
Location: Morrison, CO, USA

PostPosted: Wed Jan 15, 2020 11:53 pm    Post subject: Using + to execute two callbacks Reply with quote

I had seen this in the documentation and puzzled why one would need this. I now have a use for it. In fact, I could use more, but that's asking for a lot!!

It worked well. I attach two callbacks to a control, and used %ud as well. Experimentation shows that the USER_DATA is passed to both callback routines. This gives me a great flexibility.

Finding small differences in the way 8.60 issues messages (new ones popped up), but no problems at all.

Good job, Silverfrost!
Back to top
View user's profile Send private message Visit poster's website
John-Silver



Joined: 30 Jul 2013
Posts: 1402
Location: Aerospace Valley

PostPosted: Sun Jan 19, 2020 8:39 pm    Post subject: Reply with quote

where is it in the documentation Bill ? Ta.
_________________
''Computers (HAL and MARVIN excepted) are incredibly rigid. They question nothing. Especially input data.Human beings are incredibly trusting of computers and don't check input data. Together cocking up even the simplest calculation ... Smile "
Back to top
View user's profile Send private message
wahorger



Joined: 13 Oct 2014
Posts: 781
Location: Morrison, CO, USA

PostPosted: Mon Jan 20, 2020 5:49 am    Post subject: Reply with quote

It was hard to find. Look at the end of the "Standard call-back functions". I had run across it in another context at some point and found it interesting. If you look at %aw, you'll see it used.
Back to top
View user's profile Send private message Visit poster's website
John-Silver



Joined: 30 Jul 2013
Posts: 1402
Location: Aerospace Valley

PostPosted: Mon Jan 20, 2020 4:49 pm    Post subject: Reply with quote

thanks Bill, i'll take a look.
like you say, a more than 2 callbacks capaility could be an interesting exercise for Paul to get his teeth into, or maybe just nesting them with cseveral '+' callbacks might work
_________________
''Computers (HAL and MARVIN excepted) are incredibly rigid. They question nothing. Especially input data.Human beings are incredibly trusting of computers and don't check input data. Together cocking up even the simplest calculation ... Smile "
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+ All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group