Hi,
I would like to be able to use more than one text box or label(I'm not sure what they are called), on a clearwin gui, and be able to update them independantly. However when I update the boxes, all updates are directed at only one box. The following code shows the problem. the second textbox doesn't get updated.
Many thanks
Albert
WINAPP PROGRAM testTextBoxes IMPLICIT NONE INCLUDE <windows.ins> EXTERNAL updatetext1 EXTERNAL updatetext2 INTEGER ans CHARACTER*50 str1,str2 COMMON str1, str2 str1=' ' str2=' ' ans=winio@('%ca[Number Factoriser]&') ans=winio@('%ta%`^bt[Updatetext1]&',updatetext1) ans=winio@('%ta%^bt[Updatetext2]&',updatetext2) ans=winio@('%2nl%ob%42st%cb&',str1) ans=winio@('%2nl%ob%42st%cb',str2) END
INTEGER FUNCTION updatetext1() CHARACTER*50 str1 COMMON str1 str1='hello' CALL window_update@(str1) updatetext1=1 END
INTEGER FUNCTION updatetext2() CHARACTER*50 str2 COMMON str2 str2='goodbye' CALL window_update@(str2) updatetext2=1 END