Hi,
thank you very much for all comments, it's very interesting.
Due to all comments I found exact that what I want, see following code as example:
winapp
program test
include<windows.ins>
integer*4 i,ix1,iy1,ix2,iy2, iHandle
common/ba/ix1,iy1,ix2,iy2, iHandle
external ienter
ix1 = 20 ! values as example
iy1 = 20
ix2 = 150
iy2 = 100
i=winio@('%ca[Test für Grafikausgabe]&')
i=winio@('%bg[grey]&')
i=winio@('%`gr[grey,rgb_colours]&',300L,200L, iHandle)
CALL DRAW_FILLED_RECTANGLE@ (0, 0, 300, 200, RGB@(182, 182, 182) )
i=winio@('%ff%2nl x1 = %10rd&',ix1)
i=winio@('%ta y1 = %10rd&',iy1)
i=winio@('%2nl x2 = %10rd&',ix2)
i=winio@('%ta y2 = %10rd&',iy2)
i=winio@('%nl%nlChange grafic with ENTER&')
i=winio@('%ac[Enter]' ,ienter )
end
integer*4 function ienter()
include <windows.ins>
integer*4 ix1,iy1,ix2,iy2, iHandle
common/ba/ix1,iy1,ix2,iy2, iHandle
iHandle = 0
IA = Select_Graphics_Object@ (iHandle)
CALL DRAW_FILLED_RECTANGLE@ (0, 0, 300, 200, RGB@(182, 182, 182) )
CALL DRAW_RECTANGLE@ (ix1,iy1,ix2,iy2, RGB@(0, 0, 0) )
call draw_characters@('Test',((ix1+ix2)/2-10),((iy1+iy2)/2),RGB@(0, 0, 0))
ienter = 2
end ienter
It is a great forum, thank you.
Johann