List of Deprecated Constants or Procedures?

Just starting out? Need help? Post your questions and find answers here.
Taishan
New User
New User
Posts: 6
Joined: Wed May 03, 2023 2:20 am

List of Deprecated Constants or Procedures?

Post by Taishan »

Where can I find a list of replacements for #Constants?
Surely, somebody has one somewhere.
Google is unable to find it.
User avatar
Demivec
Addict
Addict
Posts: 4260
Joined: Mon Jul 25, 2005 3:51 pm
Location: Utah, USA

Re: List of Deprecated Constants or Procedures?

Post 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.
User avatar
Tenaja
Addict
Addict
Posts: 1959
Joined: Tue Nov 09, 2010 10:15 pm

Re: List of Deprecated Constants or Procedures?

Post by Tenaja »

Taishan
New User
New User
Posts: 6
Joined: Wed May 03, 2023 2:20 am

Re: List of Deprecated Constants or Procedures?

Post 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!
User avatar
mk-soft
Always Here
Always Here
Posts: 6209
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: List of Deprecated Constants or Procedures?

Post 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.
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
User avatar
Demivec
Addict
Addict
Posts: 4260
Joined: Mon Jul 25, 2005 3:51 pm
Location: Utah, USA

Re: List of Deprecated Constants or Procedures?

Post 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:
Last edited by Demivec on Sat May 13, 2023 2:39 pm, edited 1 time in total.
User avatar
mk-soft
Always Here
Always Here
Posts: 6209
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: List of Deprecated Constants or Procedures?

Post by mk-soft »

PureBasic's IDE tool 'Structure Viewer' :wink:
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
Taishan
New User
New User
Posts: 6
Joined: Wed May 03, 2023 2:20 am

Re: List of Deprecated Constants or Procedures?

Post by Taishan »

Thanks for all your help, gang!
Post Reply