zaka
unread,Jul 23, 2012, 4:36:22 PM7/23/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to harbou...@googlegroups.com
Hi!
I have a serious problem with porting an old legacy clipper program written with wopen/wclose console windowing subsystem.
This problem affects only MS Windows of platforms (tested on WinXP and Win7 32bit) while Linux is not affected (Mageia 1 64bit).
After external program execution with RUN() command, WCLOSE() command fails to properly close window (window content remains on screen).
Here is my small test program 'extapptest.prg'. Build command - 'hbmk2 -lhbct extapptest.prg'. Tested with hb30 and latest hb32.
Please, can someone confirm or maybe refuse it? Maybe some workaround for this issue?
Regards, Alexander.
function main()
local w1, w2, w3
setcolor("w+/b")
save screen
clear screen
w1 := wopen(1, 1, 5, 15, .t. )
wbox(2)
@1, 0 say padc( 'Window 1.', 14 )
w2 := wopen(4, 11, 8, 25, .t. )
wbox(2)
@1, 0 say padc( 'Window 2.', 14 )
alert( 'Press OK to run external application.' )
if 'Linux' $ OS()
run( 'kwrite' )
//run( 'gedit' )
elseif 'Windows' $ OS()
run( 'notepad' )
endif
alert( 'Press OK to close Window 1.' )
wclose( w1 )
alert( 'Press OK to close Window 2.' )
wclose( w2 )
alert( 'Press OK to exit.' )
restore screen
return