BBC BASIC for Windows
« Unrequired dialog response. »

Welcome Guest. Please Login or Register.
Apr 5th, 2018, 11:22pm



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: Unrequired dialog response.  (Read 1114 times)
Matt
Developer

member is offline

Avatar




PM

Gender: Male
Posts: 210
xx Re: Unrequired dialog response.
« Reply #8 on: Jun 10th, 2013, 05:45am »

on Jun 9th, 2013, 7:48pm, Richard Russell wrote:
We seem to be having some difficulty understanding each other.
Richard. My appologies for not understanding you and not making myself clear. That's the trouble with being a novice.

Quote:
You surely know that in Windows (indeed, virtually universally) constants are referred to by name, not by numeric value. You won't find numbers such as 1 and 2 in MSDN, instead you will find names such as LBN_SELCHANGE.
Yes. This is something I've learned through experience.

Quote:
Indeed, this use of names rather than numbers should extend to your own BASIC programs;
By and large, it does.

However, there is a difference, here, with what you are saying and what I'm doing. If you want the program to recognise a notification, say LBN_SELCHANGE, then what you've said above is fine. If you find you're getting a result, say of 1, and you've no idea what it is or where it came from (slight exageration in this case), then, to someone whose still learning, this can sometimes be somewhat difficult to find out.

Having said that, your latest reply has managed to lead me to answer most of my queries. (Putting them in to practice might be a different matter. We'll see.)

Again, my appologies for my ignorance. It must be quite frustrating to be costantly answering questions that seem so basic. But at least I'm willing to try to learn.

Matt

p.s. Please have a look at my post on 'PE Hangs with Module Viewer'. I can't use the Module Viewer until I sort it.
User IP Logged

admin
Administrator
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 1145
xx Re: Unrequired dialog response.
« Reply #9 on: Jun 10th, 2013, 1:30pm »

on Jun 10th, 2013, 05:45am, Matt wrote:
However, there is a difference, here, with what you are saying and what I'm doing. If you want the program to recognise a notification, say LBN_SELCHANGE, then what you've said above is fine. If you find you're getting a result, say of 1, and you've no idea what it is or where it came from (slight exageration in this case), then, to someone whose still learning, this can sometimes be somewhat difficult to find out.

There must be hundreds of Windows constants that have the value '1'. Even if you had a 'reverse' look-up listing all of those constants, it would still be difficult to identify which corresponds to the value you are receiving. It still seems to me that the only sensible approach is first to use MSDN to discover what notifications a List Box can provide and then (if necessary) find their numeric values using either the Windows Constants Utility or API Viewer.

It's trivial to write the following BASIC 'program' and then to run the Windows Constants utility to find the numeric values:

Code:
      PRINT LBN_DBLCLK
      PRINT LBN_KILLFOCUS
      PRINT LBN_SELCANCEL
      PRINT LBN_SELCHANGE
      PRINT LBN_SETFOCUS
 

Richard.
User IP Logged

admin
Administrator
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 1145
xx Re: Unrequired dialog response.
« Reply #10 on: Jun 10th, 2013, 2:49pm »

on Jun 10th, 2013, 05:45am, Matt wrote:
Please have a look at my post on 'PE Hangs with Module Viewer'.

I have no comment to make on that thread.

R.
User IP Logged

Malvern
Guest
xx Re: Unrequired dialog response.
« Reply #11 on: Jun 10th, 2013, 11:10pm »

Quote:
Even if you had a 'reverse' look-up listing all of those constants, it would still be difficult to identify which corresponds to the value you are receiving.


Such a program does exist!

Have you tried: WINCONSTlookup2_1.exe in the group files? It lets you search for constant numbers and against the type of constant. So if you are looking for anything to do with list box notifications use LBN_ and it will list all matches. If you put in a value as well only those matches will appear. It is much faster than searching MSDN. The list is not exhaustive and some Post Vista constants are not there, but most of WIN32 is included. The idea is Michael Hutton's and the constants data base is Richard's work.
User IP Logged

Matt
Developer

member is offline

Avatar




PM

Gender: Male
Posts: 210
xx Re: Unrequired dialog response.
« Reply #12 on: Jun 11th, 2013, 5:14pm »

on Jun 10th, 2013, 11:10pm, Malvern wrote:
Have you tried: WINCONSTlookup2_1.exe in the group files.

Thanks Malvern. Just installed it and it looks good. As does win32.hlp that , I think, Richard suggested.

Matt
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