- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
6 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
"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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Here is how this is done in standard Win32.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page