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 

call back in %rs with mouse click

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



Joined: 16 Oct 2009
Posts: 58
Location: München

PostPosted: Thu Jul 26, 2012 12:25 pm    Post subject: call back in %rs with mouse click Reply with quote

Code:

winapp
program mouse_test
include <windows.ins>
external test
character*10 data
data = ' '
i=winio@('%ac[Enter]&',test)
i=winio@('%^rs',data,test)   
end

integer*4 function test()
include <windows.ins>
test=1
write(*,*)"call back test called"
end


Hello,
with %^rs the call back "test" works fine with characters and with [ENTER] .
Is it possible to call the call back function in %^rs with the right mouse click?

Thanks
Johann
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7916
Location: Salford, UK

PostPosted: Thu Jul 26, 2012 5:08 pm    Post subject: Reply with quote

The short answer is no, not without a lot of messing about (sub-classing the default message handling procedure for the Microsoft edit control).
Back to top
View user's profile Send private message AIM Address
LitusSaxonicum



Joined: 23 Aug 2005
Posts: 2388
Location: Yateley, Hants, UK

PostPosted: Thu Jul 26, 2012 5:58 pm    Post subject: Reply with quote

Bartl,

There is a format code %bk to allow right mouse button clicks on a %bt button (I don't know if it works on a %bb button), and there is also a subroutine call to change the button text (change_button_text@). Button text can also be specified with an @ to make it change dynamically like you do with a caption %ca. Hence you might be able to get the effect you want with a button, although you won't be able to edit the text character-by-character at runtime.

Eddie
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