Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29613 Diskussionen

Scrolling Window in Standard Graphics

rtsmith
Einsteiger
1.825Aufrufe
I have existing code in QuickWin to create a scrolling window
open(unit=96,file='user',title='name')
call gettextposition(rc)
... in a called routine
hwnd=gethwndqq(96)
do 10 i=1,nrows
res=sendmessage(hwnd,wm_vscroll,sb_linedown,0)
10 continue
Please could someone show me the equivalent code required to open a scrolling window and to write text to it in standard graphics. Thanks
0 Kudos
6 Antworten
Steven_L_Intel1
Mitarbeiter
1.825Aufrufe
"Standard Graphics" mode imitates DOS - there's no such thing as windows there. You just have one "window" which thinks it is the whole screen.
Paul_Curtis
Geschätzter Beitragender I
1.825Aufrufe
Here is how this is done in standard Win32.
rtsmith
Einsteiger
1.825Aufrufe
Paul
Thanks for the code. I have got it all to compile except for "CreateSimpleFont". Please could you tell me how to satisfy this reference.
Thanks
Richard
Paul_Curtis
Geschätzter Beitragender I
1.825Aufrufe
Sorry to have omitted a utility routine. This is part of an extensive set of Win32 wrappers for common functions, which unfortunately everyone has to build for themselves.
rtsmith
Einsteiger
1.825Aufrufe
Paul
I have incorporated your code into my work, but am having trouble satisfying the reference to textproc. I don't know where I am going wrong, so I have cut my program down to basics as test.f. I have attached this. If you compile and link it, it will tell you that textproc is unsatisfied. Please could you tell me where the mistake is. Thanks (Don't worry about the warnings)
Richard
rtsmith
Einsteiger
1.825Aufrufe
I've tracked down the correction for TextProc
!DEC$ IF DEFINED(_X86_)
!DEC$ ATTRIBUTES STDCALL, ALIAS : '_TextProc@16' :: TextProc
!DEC$ ELSE
!DEC$ ATTRIBUTES STDCALL, ALIAS : 'TextProc' :: TextProc
!DEC$ ENDIF
Richard Smith
Antworten