AnuKass
20th December 2018, 07:30
Hi i'm new for LN
i'm trying to resize the window size.i refer baanboard and i got this code.
evt.type( event ) = EVTRESIZEWINDOW
evt.resize.width( event ) = win.wid
evt.resize.height( event ) = win.hei
but i have a doubt ?what is the input of the event variable ?
i tried long and string input .still i got error??
anyone please assist me ..?
bdittmar
20th December 2018, 08:06
Window resize events
EVTRESIZEWINDOW
evt.resize.columns( event ) New width in number of columns (character window).
evt.resize.rows( event ) New height in number of rows (character window).
evt.resize.width( event ) New width in pixels (graphical window).
evt.resize.height( event ) New height in pixels (graphical window).
AnuKass
20th December 2018, 08:13
Hi bdittmar,
thanks for your reply...
in this script what is input of event variable?
can you please any sample program which was you tried..?
****************************************
long event(EVTMAXSIZE)
while TRUE
next.event(event)
on case evt.type(event)
case EVTKEYPRESS:
on case evt.keypress.key(event)
case KEY_RETURN:
....
case KEY_ESC:
....
break
endcase
break
endwhile
Thanks in Advance...
AnuKass
20th December 2018, 12:33
Hi I found it ...
But i have another doubt .. how to get x,y mouse coordinates using,
evt.motion.x( event )
evt.motion.y( event ).
Thanks in Advance..
mark_h
20th December 2018, 16:01
Do you have to track the mouse corrdinates? In my one session I just anchor the window. Then I just let the 4gl take over. Not sure if that is an option or not. So basically launch any one of the 7 sessions it anchors the window - then every tab is a different session (and table to maintain).
function extern max_window()
{
long My.Win
My.Win = current.mwindow()
change.object(My.Win,DsNx,0,DsNy,0)
update.object(My.Win)
}
AnuKass
21st December 2018, 06:33
Hi mark_h,
Thanks for your reply ..
it's working ... but i asking about these function,
evt.motion.x( event )
evt.motion.y( event ).
how to get coordinates from that???
Thanks in Advance..