Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.
29305 Discussions

Scrolling Window in Standard Graphics

rtsmith
Beginner
801 Views
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 Replies
Steven_L_Intel1
Employee
801 Views
"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.
0 Kudos
Paul_Curtis
Valued Contributor I
801 Views
Here is how this is done in standard Win32.
0 Kudos
rtsmith
Beginner
801 Views
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
0 Kudos
Paul_Curtis
Valued Contributor I
801 Views
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.
0 Kudos
rtsmith
Beginner
801 Views
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
0 Kudos
rtsmith
Beginner
801 Views
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
0 Kudos
Reply