Search found 3119 matches
- Mon Apr 15, 2024 10:00 pm
- Forum: Coding Questions
- Topic: Detect TaskBar events [Resolved]
- Replies: 8
- Views: 292
Re: Detect TaskBar events
What type of events? But yes, you can detect mouse clicks, and if it's visible, etc. Not as "events" but you can manually poll for them.
- Mon Apr 15, 2024 8:43 am
- Forum: Windows
- Topic: Cancel shutdown/reboot?
- Replies: 4
- Views: 201
Re: Cancel shutdown/reboot?
Maybe this helps -> https://stackoverflow.com/questions/7538006/prevent-windows-shutdown-with-custom-message It says: "If you need to block shutdown you call ShutdownBlockReasonCreate passing the handle to your main window and the reason as a string. This string is what is displayed in the shut...
- Mon Apr 15, 2024 8:24 am
- Forum: Announcement
- Topic: PureBasic 6.10 LTS is out !
- Replies: 325
- Views: 40412
- Sun Apr 14, 2024 10:22 pm
- Forum: Coding Questions
- Topic: Can't fetch a specific webpage.
- Replies: 12
- Views: 405
- Sun Apr 14, 2024 1:34 pm
- Forum: Coding Questions
- Topic: Setting and Getting GadgetITemData on a ListIconGadget
- Replies: 7
- Views: 355
- Sun Apr 14, 2024 4:45 am
- Forum: General Discussion
- Topic: PureBasic v6.10 is producing a file size 5 times bigger than v6.04
- Replies: 19
- Views: 968
Re: PureBasic v6.10 is producing a file size 5 times bigger than v6.04
No, others have reported it. It's the price of progress. Personally I like the 6.10 improvements (Date lib for years up to 9999 for one); and I use UPX to shrink my exe from 10 MB to 4 MB (which also has the benefit of reducing VirusTotal false positives).
- Sat Apr 13, 2024 9:06 am
- Forum: Coding Questions
- Topic: Debug mode execution speed can vary on source whitespace.
- Replies: 12
- Views: 567
Re: Debug mode execution speed can vary on source whitespace.
Confirmed here: 150ms with no blank lines above the procedure, and 220ms when there is. :shock: When DisableDebugger is used, both are 25ms. Never seen how the source code itself can affect the runtime of a compiled exe. Although... I have had PureBasic's IDE not open until I quit a running exe that...
- Wed Apr 10, 2024 1:35 pm
- Forum: Windows
- Topic: Detect if a window has curved corners?
- Replies: 6
- Views: 247
Re: Detect if a window has curved corners?
Thanks guys, I'll do some testing to see which suits best.
- Tue Apr 09, 2024 8:10 am
- Forum: Windows
- Topic: Detect if a window has curved corners?
- Replies: 6
- Views: 247
Detect if a window has curved corners?
Hi guys. I'm testing my app on Win 11 and of course it's thrown me a curve ball because Win 11 has stupid curved window corners now. :( So, my app draws a nice line across the top of any given third-party window, which now looks stupid because the start and end of the line is not above anything anym...
- Sun Apr 07, 2024 1:28 am
- Forum: Feature Requests and Wishlists
- Topic: Keep same CurrentDir if run from taskbar
- Replies: 13
- Views: 497
Re: Keep same CurrentDir if run from taskbar
Yes, "GetPathPart(ProgramFilename())" is the ONLY way you should get your app's folder. Not GetCurrentDirectory() because that's changable.
- Sat Apr 06, 2024 2:09 am
- Forum: Tricks 'n' Tips
- Topic: create icon pack windows
- Replies: 24
- Views: 906
Re: create icon pack windows
Here's a famous comedy skit from an Australian TV show where he mentions Hawaiian pizza -> https://www.youtube.com/watch?v=LJtNHs4BfYg
It's not a skit about pizzas, but it's well worth spending the 4 minutes to watch this; it's gold! Especially the bit about folding up.
It's not a skit about pizzas, but it's well worth spending the 4 minutes to watch this; it's gold! Especially the bit about folding up.
- Fri Apr 05, 2024 12:03 pm
- Forum: Feature Requests and Wishlists
- Topic: Keep same CurrentDir if run from taskbar
- Replies: 13
- Views: 497
Re: Keep same CurrentDir if run from taskbar
I fail to understand why MS defines the current directory with the application path, when calling from File explorer but defines it with %windir%\System32, if launched from taskbar explorer. See here (I think it explains it?) -> https://stackoverflow.com/questions/18727692/what-is-the-difference-be...
- Fri Apr 05, 2024 8:29 am
- Forum: Feature Requests and Wishlists
- Topic: Keep same CurrentDir if run from taskbar
- Replies: 13
- Views: 497
Re: Keep same CurrentDir if run from taskbar
Don't see how this is related to Purebasic. It's not. GetCurrentDirectory() is a wrapper to the API command GetCurrentDirectory_() on Windows, so it shouldn't be changed. What ChrisR needs to do to fix his problem, is use AZJIO's solution and not change an existing command, which frankly would brea...
- Thu Apr 04, 2024 8:22 am
- Forum: Feature Requests and Wishlists
- Topic: Keep same CurrentDir if run from taskbar
- Replies: 13
- Views: 497
Re: Keep same CurrentDir if run from taskbar
Just so you know... GetCurrentDirectory() is NOT used to know where your exe is run from. It's used as a WORKING directory, which is why SetCurrentDirectory() can change it. So, no, I wouldn't want this command to be changed from its correct behavior.
- Wed Apr 03, 2024 11:07 am
- Forum: Coding Questions
- Topic: Using ListIconGadget with #PB_ListIcon_ColumnAlignment
- Replies: 3
- Views: 151
Re: Using ListIconGadget with #PB_ListIcon_ColumnAlignment
What is the recommendet value for "Item" in SetGadgetItemAttribute()? Is it #PB_Ignore, #PB_Any or what? "Item" seems to have no relevance. The manual says: "The 'Item' parameter is ignored" , so it can be literally anything. I personally use #PB_Ignore so I remember i...