PureBasic Forum

Spider Web Drawing
Page 3 of 3

Author:  idle [ Thu May 05, 2016 10:28 pm ]
Post subject:  Re: Spider Web Drawing

to open on linux think this should work for most desktops
 Case #PB_OS_Linux : ProcedureReturn RunProgram("xdg-open",FileName, "")

Author:  JHPJHP [ Sun May 08, 2016 5:55 pm ]
Post subject:  Re: Spider Web Drawing

Hi idle,

Thank you, that worked perfectly.


- added 1 menu item
-- Open Control Panel: adds the ability to fine-tune the drawing effect
- applied the patch by idle to the OpenOriginalImage Procedure

NB*: Settings are save to an ADS (Alternate Data Stream) attached to the default image (only available in the Windows OS).

Author:  JHPJHP [ Sat May 19, 2018 7:29 pm ]
Post subject:  Re: Spider Web Drawing

- added DPI awareness: SetProcessDpiAwarenessContext


Author:  Dude [ Sun May 20, 2018 2:26 am ]
Post subject:  Re: Spider Web Drawing

Your app crashes here on Win 7 (64-bit) and PureBasic v5.62 (32-bit). Crashes if I run it from the PB source, or from the compiled exe. No error message in the IDE, just the error in the screenshot below.


SetProcessDpiAwarenessContext is for Win 10 only, so I fixed it by changing the SetDpiAwarenessContext() procedure to this:

Procedure SetDpiAwarenessContext()
  If OSVersion()=>#PB_OS_Windows_10
    user32 = OpenLibrary(#PB_Any, "user32.dll")
    If user32
      SetProcessDpiAwarenessContext = GetFunction(user32, "SetProcessDpiAwarenessContext")

Author:  JHPJHP [ Sun May 26, 2019 3:29 am ]
Post subject:  Re: Spider Web Drawing

Hi Dude,

Thank you for pointing out the OS limitation using SetProcessDpiAwarenessContext; problem should now be fixed.

NB*: All of my other posts using this Function have also been patched.


Updated (Windows):
- image sizes configured to use the built-in PureBasic DPI compiler option

Page 3 of 3 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group