Inbuilt Constants

Just starting out? Need help? Post your questions and find answers here.
matty47
User
User
Posts: 35
Joined: Fri Sep 26, 2003 10:21 pm

Inbuilt Constants

Post by matty47 »

How can I find what the inbuilt constants refer to? There does not seem to be anything in the help file apart from the #PB ones. There are lots of others . I did find the Scintilla ones on the Scintilla website but what about the #EM_ constants that refer to the editor gadget. Is there a list somewhere?
Thanks for any help.
User avatar
jacdelad
Addict
Addict
Posts: 2010
Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa

Re: Inbuilt Constants

Post by jacdelad »

EM_* is a Windows API message for edit controls. If you Google the constant (without the "#") you'll find it in the msdn library. The scheme is mostly easy to understand: name of control (listview=LV, checkbox=CB...), type of constant (message=M, notification=N, style=S...), underscore and a name. #LVM_ARRANGE is a listview-message (windows listview is purebasic listicon) that arranges the items.

This does not explain all constants. As I said, you can Google them, without the hashtag.
Good morning, that's a nice tnetennba!

PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
User avatar
oreopa
Enthusiast
Enthusiast
Posts: 283
Joined: Sat Jun 24, 2006 3:29 am
Location: Edinburgh, Scotland.

Re: Inbuilt Constants

Post by oreopa »

Goto PureBasic menu: Tools > Structure Viewer... In it there is a "Constants" tab which contains all the natively known constants and their values.
Proud supporter of PB! * Musician * C64/6502 Freak
BarryG
Addict
Addict
Posts: 4178
Joined: Thu Apr 18, 2019 8:17 am

Re: Inbuilt Constants

Post by BarryG »

jacdelad wrote: Mon Jul 26, 2021 5:50 amThe scheme is mostly easy to understand: name of control (listview=LV, checkbox=CB...), type of constant (message=M, notification=N, style=S...), underscore and a name.
Cool, I never knew that. Thanks!
Post Reply