Page 1 of 1
Inbuilt Constants
Posted: Mon Jul 26, 2021 12:11 am
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.
Re: Inbuilt Constants
Posted: Mon Jul 26, 2021 5:50 am
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.
Re: Inbuilt Constants
Posted: Mon Aug 02, 2021 9:56 pm
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.
Re: Inbuilt Constants
Posted: Tue Aug 03, 2021 12:19 pm
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!