Attached please find some sample code. The pop-up menu %pm appears only if the mouse cursor hovers the top border of the main window. In other words, if the mouse cursor is leaving the %gr graphics area: cursor type changes from 'cross' to 'arrow'.
FTN95 version: 5.01, compiled in full debug mode.
Any help is very much appreciated.
WoSl
winapp
program test
c Test pm menus
implicit none
include <windows.ins>
external Df
integer s_width,s_depth,g_width,g_depth
integer i
integer ibgcol
integer hwin,ictrl,ihnd_grap
c Main Window
ibgcol=RGB@(138,185,215)
s_width=clearwin_info@ ('SCREEN_WIDTH')
s_depth=clearwin_info@ ('SCREEN_DEPTH')
g_width=s_width*0.85
g_depth=s_depth*0.85
c
i=winio@ ('%ww[no_border]%ca[Test PM Menu]&')
i=winio@ ('%bg&',ibgcol)
i=winio@ ('%pm[Copy]&',Df)
i=winio@ ('%pm[Cut]&',Df)
i=winio@ ('%pm[Paste[Below]]&',Df)
i=winio@ ('%pm[[Left]]&',Df)
i=winio@ ('%pm[[Right]]&',Df)
i=winio@ ('%pm[Delete]&',Df)
i=winio@ ('%mn[Copy]&',Df)
i=winio@ ('%mn[Cut]&',Df)
i=winio@ ('%mn[Paste[Below]]&',Df)
i=winio@ ('%mn[[Left]]&',Df)
i=winio@ ('%mn[[Right]]&',Df)
i=winio@ ('%mn[Delete]&',Df)
i=winio@ ('%mn[Exit]&','EXIT')
i=winio@ ('%pv%`gr[rgb_colours,full_mouse_input]&',
* g_width,g_depth, ihnd_grap)
i=winio@ ('%hw&',hwin)
i=winio@ ('%lw',ictrl)
c
stop
end
integer function Df ()
c Do-nothing-call back routine
Df=1
return
end