- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a child text window in a Quickwin program. I'm trying to mimic a button using a text region say 1 row high by 10 columns wide, starting at row 5 column 11:
CALL SETTEXTWINDOW (5, 11, 5, 20)
Write a text label 9 characters long to this area:
CALL SETTEXTPOSITION (1, 1, T)
CALL OUTTEXT ('123456789')
That works OK, and the 10th column of the "button" is left blank. But if instead I try to usethe *entire* button (i.e. every column of the text window):
CALL OUTTEXT ('1234567890')
Nothing at all is printed, resulting in a blank button label. Apparently it is impossible to write a character string X characters long into a text region X characters wide?!
It also appears to be impossible to write a single character to the last position of a text region:
CALL SETTEXTPOSITION (1, 10, T)
CALL OUTTEXT ('X')
This also fails to print anything.
What gives?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Unfortunately movetext and puttext have been removed from the CRTL.
Consider using WriteConsoleOutput.
Note, the data bufffer is in elements of CHAR_INFO {char, attribute}.
You can roll your own replacement for puttext using WriteConsoleOutput.
Jim Dempsey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
So, I'll just accept that the last column of my text windows will always be blank and unusable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
DISPLAYCURSOR ($GCURSOROFF)
Or SETTEXTCURSOR (Z'0101')
Jim Dempsey

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