The initial problem as explained above is fixed. Ragarding the lower box: The idea is to have a Clearwin window within a box. However, when I test the code it writes the results to a new Clearwin window (see figure below) and not the one defined in the code.
Question: What should I change in oder to direct the result to the desired window? The test code which produce the result in the figure is given at the end of this entry.
[URL=http://img51.imageshack.us/i/enum.gif/]
[/URL]
winapp
program enum
use mswin
implicit none
integer :: i,j,ctrl
character(len =20):: string
ctrl = -1
i=winio@('%ca[Enumarate fonts]&')
i=winio@('%sy[thin_border]&')
i=winio@('%bg[BTNFACE]&')
i=winio@('%mn[E&xit]&','EXIT')
! Open a box
i=winio@('%nl%ob[raised]&')
i=winio@('Results %ff%nl&')
! Define a clearwin window
i=winio@('%ob[depressed]%40.20cw[vscroll]%cb&',0)
i=winio@('%lw&',ctrl)
do j=1,1000
call get_font_name@(string,j)
if (string /=' ') then
print *,j,' [',string,'] '
else
exit
endif
enddo
i=winio@('%cb')
end program enum