Where can I find a list of replacements for #Constants?
Surely, somebody has one somewhere.
Google is unable to find it.
List of Deprecated Constants or Procedures?
Re: List of Deprecated Constants or Procedures?
You can look in previous versions of PureBasic if you are referring to PureBasic constants.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.
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?
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!
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?
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.
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.
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Re: List of Deprecated Constants or Procedures?
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
@: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.
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.

Last edited by Demivec on Sat May 13, 2023 2:39 pm, edited 1 time in total.
Re: List of Deprecated Constants or Procedures?
PureBasic's IDE tool 'Structure Viewer' 

My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Re: List of Deprecated Constants or Procedures?
Thanks for all your help, gang!