BBC BASIC for Windows
« New features for utility authors »

Welcome Guest. Please Login or Register.
Apr 5th, 2018, 10:37pm



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

If you require a dump of the post on your message board, please come to the support board and request it.


Thank you Conforums members.

BBC BASIC for Windows Resources
Online BBC BASIC for Windows documentation
BBC BASIC for Windows Beginners' Tutorial
BBC BASIC Home Page
BBC BASIC on Rosetta Code
BBC BASIC discussion group
BBC BASIC for Windows Programmers' Reference

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: New features for utility authors  (Read 1675 times)
Malcolm
Guest
xx Re: New features for utility authors
« Reply #8 on: Mar 28th, 2011, 9:17pm »

Quote:
Has my suggestion of inserting multiple lines in one 'chunk' made it unnecessary to disable redrawing, and therefore unnecessary to display the hourglass?


It is quite possible that it may but I am not sure yet. To retrieve a multi-lined block the clipboard is the only way I could see to do it, or is there another way?
I was getting a line at a time and so inserting only a line at a time or some blank lines for formatting.

Malcolm.
User IP Logged

admin
Administrator
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 1145
xx Re: New features for utility authors
« Reply #9 on: Mar 28th, 2011, 10:26pm »

on Mar 28th, 2011, 9:17pm, Guest-Malcolm wrote:
To retrieve a multi-lined block the clipboard is the only way I could see to do it, or is there another way?

Why would you want to retrieve a multi-lined block? Reading lines (using EM_GETLINE) doesn't result in scrolling or any other display disturbance, so there shouldn't be any issue with doing that one line at a time.

Quote:
I was getting a line at a time and so inserting only a line at a time or some blank lines for formatting.

Obviously I don't know what your code is doing, but I can't see why reading lines one-at-a-time should imply also inserting them individually.

The Windows Constants utility is a good example to follow. The entire program is read one line at a time, but the constant declarations are inserted in one block using WM_PASTE.

Richard.
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls