BBC BASIC for Windows
« Utilities »

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



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 2 3  Notify Send Topic Print
 veryhotthread  Author  Topic: Utilities  (Read 3913 times)
admin
Administrator
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 1145
xx Re: Utilities
« Reply #30 on: May 10th, 2009, 10:06am »

Quote:
if you did want to insert something at the caret (in a utility) how would you do that?

To find the caret position you can send message 1034 (WM_USER+10). The value returned is (yCaret << 12) + xCaret

Richard.
User IP Logged

Malcolm
Guest
xx Re: Utilities
« Reply #31 on: May 10th, 2009, 11:55pm »

Quote:
To find the caret position you can send message 1034 (WM_USER+10).


Yes, that works nicely, Thanks again Richard.

Regards, Malcolm.
User IP Logged

Michael Hutton
Developer

member is offline

Avatar




PM

Gender: Male
Posts: 248
xx Re: Utilities
« Reply #32 on: May 28th, 2009, 08:32am »

I was trying to detect when a new line has been added to the IDE either (I thought) was to:

1. Send a EM_GETLINECOUNT message with a certain delay eg 50ms or so but this can cause problems (ie all lines are reformatted and any the characters in the first 5 spaces will get shifted along the line). I imagine that EM_GETLINECOUNT also triggers the IDE to format the IDE into a recognisable form.

2. Try to PeekMessage the IDE message queue and intercept and WM_CHAR messages with the value of &D and then read the line, but I can't PeekMessage another thread's message queue.

Is there a way of detecting when the 'Enter' key is pressed in he IDE? The idea is to have a utility automatically get a new line rather than having the user to trigger a --do this-- utility.

would be great for the WINCONST utility....

Michael
User IP Logged

admin
Administrator
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 1145
xx Re: Utilities
« Reply #33 on: May 28th, 2009, 10:37am »

Quote:
intercept and WM_CHAR messages with the value of &D

I suppose in principle you could do that by subclassing the editor window, but the potential for getting it wrong and crashing out the editor is such that it's not something I would want to recommend.

Richard.
User IP Logged

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

| |

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