Page 1 of 1

List of Deprecated Constants or Procedures?

Posted: Fri May 12, 2023 3:33 am
by Taishan
Where can I find a list of replacements for #Constants?
Surely, somebody has one somewhere.
Google is unable to find it.

Re: List of Deprecated Constants or Procedures?

Posted: Fri May 12, 2023 4:42 am
by Demivec
Taishan wrote: Fri May 12, 2023 3:33 am Where can I find a list of replacements for #Constants?
Surely, somebody has one somewhere.
Google is unable to find it.
You can look in previous versions of PureBasic if you are referring to PureBasic constants.

What deprecated nstant would you like to know? If it's an API constant then it makes sense to look to API sources.

Re: List of Deprecated Constants or Procedures?

Posted: Fri May 12, 2023 10:34 am
by Tenaja

Re: List of Deprecated Constants or Procedures?

Posted: Fri May 12, 2023 11:04 pm
by Taishan
Thanks to both of you!

I discovered one of the constants were from the PureColor library, which is no big deal.

However the constants that are troublesome are from the API calls: #GWL_STYLE

SetWindowLong_(WindowID(0), #GWL_STYLE, GetWindowLong_(WindowID(0), #GWL_STYLE)|#WS_CLIPCHILDREN)

Where can I find the API constants?

Thanks!

Re: List of Deprecated Constants or Procedures?

Posted: Sat May 13, 2023 1:02 am
by mk-soft
These constants are part of the windows api and can be found at MSDN of Windows (Google search)
The same applies to Linux (gtk, gdk, etc) and macOS (cocoa, objective-c).

Otherwise the description would take up several gigabytes and is therefore too extensive.

Re: List of Deprecated Constants or Procedures?

Posted: Sat May 13, 2023 4:25 am
by Demivec
You could also use PureBasic's IDE tool 'Structure Viewer' to see if it is one of the many predefined constants.

You could do the same thing by just debugging the code

Code: Select all

Debug #GWL_Style

@:Edit: corrected and replaced 'Variable Viewer' with 'Structue Viewer'. Thanks mk-soft. Believe it or not I checked the tool's name before I posted but still wrote the wrong term when I posted for some reason. :oops:

Re: List of Deprecated Constants or Procedures?

Posted: Sat May 13, 2023 10:23 am
by mk-soft
PureBasic's IDE tool 'Structure Viewer' :wink:

Re: List of Deprecated Constants or Procedures?

Posted: Sat May 20, 2023 9:27 pm
by Taishan
Thanks for all your help, gang!