Windows Constants

Discussions about the BBC BASIC language, with particular reference to BB4W and BBCSDL
RNBW
Posts: 29
Joined: Thu 05 Apr 2018, 21:41

Windows Constants

Post by RNBW »

Is there a schedule of windows and windows controls constants for use with BB4W. In particular what are the constants for ES_WANTRETURN and ES_MULTILINE?
DDRM

Re: Windows Constants

Post by DDRM »

On the principle of teaching a man to fish, do you know about the "Add windows constants" utility? It's probably already installed (look in the "utilites" menu on the IDE), but if not, you can install it (it's in the ADDINS folder). Simpy put the constants in your program, run the utility, and it will add appropriate assignments at the beginning. Here's a two line example to answer your question, after running the utility:

Code: Select all

      ES_MULTILINE = 4
      ES_WANTRETURN = 4096
      a%=ES_WANTRETURN
      b%=ES_MULTILINE
Alternatively there are sites on the web which list all/most of these constants, so you should be able to google it pretty easily...

Best wishes,

D
RNBW
Posts: 29
Joined: Thu 05 Apr 2018, 21:41

Re: Windows Constants

Post by RNBW »

I was fishing in the wrong place!

I never thought to look in the Utilities on the IDE.

Thank you very much. Problem solved.