Poll: Unseen is crazy...
You do not have permission to vote in this poll.
Defo...no doubt...
100.00%
1 100.00%
Defo again - but he may actually be on to something here...
0%
0 0%
Total 1 vote(s) 100%
* You voted for this item. [Show Results]

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Arbitrary CONST values
#4
(10-25-2025, 11:41 PM)SMcNeill Wrote: I think this would be a crazy idea, as _DeskTopWidth isn't set in stone like CONST is.   Maybe on *your* system, it never changes, but on my setup I tend to have:

laptop at 2048 x 1200 resolution
TV at 4096 x 2400 resolution
second monitor at 1920 x 1024 resolution

So I can start a program on the laptop screen, then grab it with the mouse and drag it left/right to the next screen and... my original desktop width isn't my current desktop width.  Since such a command is usually involved with scaling, by making it CONST, I've now doomed my program to never scale.  It's too small to read on my tv and interact with.  Too large to fit my second monitor.

It really just ruined the entire point of the command.   Much better to:

Dim Shared As Long ScreenW 
ScreenW = _DesktopWidth

Then, you can periodically check to see if that width has changed and respond to it properly inside the program.
So for you, when _DESKTOPWIDTH is called then...it depends on the screen your rendering on! Imagine you launched program on your small screen and then Alt Entered, moved it across to you tv/other panel and the screen you've moved it to has a different res...the initial width, height, aspect ratio etc would suddenly change! AND I agree it's a mess as this is not a problem i haven't encountered! 

BUT my reasoning....IF Aspect ratio or pixel size is calibrated against a "i made it to work on this res" but you can support this...then(again for me its probably relevant only...) a custom Aspect Ratio and/or scale values may be useful...and apparently referencing CONST is twice as fast as referencing variables....and you know me FPS is KING!

Thanks

Unseen

@bplus : "DEFO" is short for definitely!
Reply


Messages In This Thread
Arbitrary CONST values - by Unseen Machine - 10-25-2025, 11:25 PM
RE: Arbitrary CONST values - by SMcNeill - 10-25-2025, 11:41 PM
RE: Arbitrary CONST values - by Unseen Machine - 10-26-2025, 12:01 AM
RE: Arbitrary CONST values - by bplus - 10-25-2025, 11:51 PM
RE: Arbitrary CONST values - by bplus - 10-26-2025, 12:15 AM
RE: Arbitrary CONST values - by Unseen Machine - 10-26-2025, 12:26 AM
RE: Arbitrary CONST values - by ahenry3068 - 10-26-2025, 02:48 PM
RE: Arbitrary CONST values - by CharlieJV - 10-26-2025, 06:06 PM
RE: Arbitrary CONST values - by ahenry3068 - 10-26-2025, 08:16 PM
RE: Arbitrary CONST values - by bplus - 10-26-2025, 05:35 PM
RE: Arbitrary CONST values - by bplus - 10-26-2025, 06:37 PM
RE: Arbitrary CONST values - by bplus - 10-26-2025, 10:50 PM
RE: Arbitrary CONST values - by ahenry3068 - 10-27-2025, 01:28 AM
RE: Arbitrary CONST values - by bplus - 10-27-2025, 01:48 AM
RE: Arbitrary CONST values - by ahenry3068 - 10-27-2025, 04:29 AM
RE: Arbitrary CONST values - by SMcNeill - 10-27-2025, 02:12 AM
RE: Arbitrary CONST values - by CharlieJV - 10-27-2025, 02:17 AM
RE: Arbitrary CONST values - by Unseen Machine - 10-27-2025, 02:36 AM
RE: Arbitrary CONST values - by bplus - 10-27-2025, 08:18 AM
RE: Arbitrary CONST values - by a740g - 10-27-2025, 09:37 AM
RE: Arbitrary CONST values - by SMcNeill - 10-27-2025, 09:45 AM
RE: Arbitrary CONST values - by Jack - 10-27-2025, 12:05 PM
RE: Arbitrary CONST values - by a740g - 10-27-2025, 06:06 PM
RE: Arbitrary CONST values - by Kernelpanic - 10-27-2025, 08:41 PM
RE: Arbitrary CONST values - by Pete - 10-28-2025, 06:57 AM
RE: Arbitrary CONST values - by Unseen Machine - 10-28-2025, 11:22 PM
RE: Arbitrary CONST values - by Unseen Machine - 10-28-2025, 11:30 PM
RE: Arbitrary CONST values - by ahenry3068 - 10-29-2025, 12:31 AM
RE: Arbitrary CONST values - by Unseen Machine - 10-29-2025, 01:50 AM
RE: Arbitrary CONST values - by bplus - 10-29-2025, 02:27 AM
RE: Arbitrary CONST values - by ahenry3068 - 10-29-2025, 02:56 AM
RE: Arbitrary CONST values - by bplus - 10-29-2025, 05:44 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Upcoming changes to CONST may affect your code SMcNeill 14 2,716 12-30-2023, 05:13 PM
Last Post: Kernelpanic
  TYPE and CONST within SUB/FUNCTION TerryRitchie 9 1,939 07-11-2023, 01:22 AM
Last Post: bplus
  suggestion: initialize array values within the DIM statement bobalooie 19 3,312 12-22-2022, 06:46 PM
Last Post: Kernelpanic
  Convert IPv4 dotted quad into four decimal values bert22306 6 1,528 10-31-2022, 03:30 AM
Last Post: bert22306
Bug Color CONST Warning v1.5+ bplus 3 797 05-05-2022, 06:13 PM
Last Post: Pete

Forum Jump:


Users browsing this thread: 1 Guest(s)