I am attempting to use ClearWin+ from gFortran to create an edit box and obtain a handle to the edit_info data for the box created. The edit_info parameter is not accepted by ClearWin+.
I have tried passing it in as an array of integer4,integer8 or an edit_info type. All of them yield the error below. Removing the ` grave element from the format string and the parameter creates the box fine but then I don't have access to the edit_info data.
PROGRAM main
use clrwin$
implicit none
integer(kind=CW_HANDLE) win
integer(kind=CW_HANDLE) winctrl
integer i
TYPE(edit_info) info
integer*4, dimension (48) :: info_int
EQUIVALENCE (info, info_int)
! Main window.
i=winio$('%ww[no_border]&')
i=winio$('%pv%fr&',400,300)
i=winio$('%lw&',winctrl)
i=winio$('%hw',win)
! Attach a sub window with an edit box.
i=winio$('%ww[no_border,no_maxbox]&')
i=winio$('%ca[Editor]&')
i=winio$('%aw&',winctrl)
! The following does not work in gFortran 64 bit.
! It results in 'Argument number 4 of WINIO@ (continuation 3) should be an integer array'
! Create an edit box and retrieve a reference to the edit_info type for updating it later.
i=winio$('%pv%40.10`eb[read_only]','*',0,info_int)
! Replace the above with this line and it works.
i=winio$('%pv%40.10eb[read_only]','*',0)
call window_update$(info_int)
END