Search found 2912 matches

by mk-soft
Sun Sep 19, 2021 12:15 pm
Forum: Windows
Topic: Bring (hidden) window to front when clicking systray icon
Replies: 9
Views: 292

Re: Bring (hidden) window to front when clicking systray icon

Doesn't my example work?

I can hide the window with "Minimise" and also hide the window behind another window.
by mk-soft
Sat Sep 18, 2021 10:16 am
Forum: Windows
Topic: Bring (hidden) window to front when clicking systray icon
Replies: 9
Views: 292

Re: Bring (hidden) window to front when clicking systray icon

MSDN: https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setforegroundwindow CompilerIf #PB_Compiler_OS = #PB_OS_Windows Macro SetActiveWindow(Window) SetForegroundWindow_(WindowID(Window)) EndMacro CompilerEndIf Example (Update) ;-TOP EnableExplicit ;- Constant Enumeration Window...
by mk-soft
Thu Sep 16, 2021 6:30 pm
Forum: Bugs - Windows
Topic: Invalid memory access on DisableDebugger line when using very large numbers with CreateImage
Replies: 19
Views: 489

Re: PB x64 - Invalid memory access when disabling debugger before using very large numbers with CreateImage

Unfortunately Fred did not tell us until when an ID (image, gadgets, etc) is interpreted as an array element and from when it is interpreted as a dynamic object.

As is known, dynamic object IDs cannot be overwritten, but can only be deleted with FreeXYZ and created again with #PB_Any.
by mk-soft
Thu Sep 16, 2021 3:20 pm
Forum: Coding Questions
Topic: Buttons
Replies: 11
Views: 612

Re: Buttons

Sadly, however, as an OOP example
Link: Own Flat Gadgets
by mk-soft
Tue Sep 14, 2021 5:09 pm
Forum: Linux
Topic: running code from PB win10 on PB on linux (ubuntu)
Replies: 5
Views: 436

Re: running code from PB win10 on PB on linux (ubuntu)

Under macOS and Linux with OpenWindowedScreen, the window events must always be queried, otherwise the KeyboardInkey function hangs. I have written an adaptation of ExamineKeyboardEx for this. Edit: Furthermore, there seems to be a problem with the recognition of capital letters under macOS and Linu...
by mk-soft
Tue Sep 14, 2021 4:10 pm
Forum: Linux
Topic: running code from PB win10 on PB on linux (ubuntu)
Replies: 5
Views: 436

Re: running code from PB win10 on PB on linux (ubuntu)

Purebasic also works with Ubuntu newer than 18.04.

But unfortunately still with limitations. With Purebasic, the WebKit has not yet been updated. So the WebGadget or the Dialog Library (CreateDialog needs WebKit) does not work.

Otherwise everything works (with some adjustment)
by mk-soft
Tue Sep 14, 2021 12:51 pm
Forum: Off Topic
Topic: Advertising banner on Purebasic Forum
Replies: 14
Views: 1119

Re: Advertising banner on Purebasic Forum

Thank you very much Fred

Maybe set up a donation button for the forum.
by mk-soft
Mon Sep 13, 2021 10:41 am
Forum: Linux
Topic: Software on linux...
Replies: 10
Views: 663

Re: Software on linux...

It should be enough to compress the application as TAR.XZ. This way the file attributes should not be lost. You should also not compile it with the GTK2 subsystem, as GTK2 must first be installed on the target system. If something is still missing, start the application in the terminal window (./[Ap...
by mk-soft
Sun Sep 12, 2021 10:15 am
Forum: Off Topic
Topic: Advertising banner on Purebasic Forum
Replies: 14
Views: 1119

Advertising banner on Purebasic Forum

I know that advertising is an important source of revenue. But this banner is a bit annoying.
<ins class="adsbygoogle adsbygoogle-noablate" data-adsbygoogle-status="done" style="display: none !important;" data-ad-status="unfilled"><ins
...
by mk-soft
Sun Sep 12, 2021 10:00 am
Forum: Announcement
Topic: PureBasic 6.00 Alpha 4 released !
Replies: 196
Views: 41166

Re: PureBasic 6.00 Alpha 4 released !

Will there be three different Purebasic libraries for macOS later?

As I read, you can compile the programs and libraries for different architectures.

For intel: "x86_64"
For M1: "arm64"
Or: "Universal binary" for Intel and M1
by mk-soft
Sun Sep 12, 2021 9:25 am
Forum: Coding Questions
Topic: Speed up filling ListiconGadget from thread?
Replies: 5
Views: 506

Re: Speed up filling ListiconGadget from thread?

On Linux and MacOS is not possible to fill from Threads.
by mk-soft
Mon Sep 06, 2021 6:44 pm
Forum: Coding Questions
Topic: How to check if a file exist?
Replies: 13
Views: 4706

Re: How to check if a file exist?

Macro is enough ...

Code: Select all

Macro ExistsDirectory(_directory_)
  Bool(FileSize(_directory_) = -2)
EndMacro

Macro ExistsFile(_file_)
  Bool(FileSize(_file_) > -1)
EndMacro
by mk-soft
Sun Sep 05, 2021 9:32 am
Forum: Bugs - Mac OSX
Topic: [5.73] FileRequester bug if not in .app
Replies: 5
Views: 631

Re: [5.73] FileRequester bug if not in .app

The same with Big Sur.

But I think that has always been the case. The user interface is only opened with OpenConsole. We can thank Fred that the graphic user interface is also provided in console mode. (InitWindow, InitCocoa)
by mk-soft
Sat Aug 28, 2021 1:00 pm
Forum: Coding Questions
Topic: New to PB - learning from Kale's book
Replies: 14
Views: 1306

Re: New to PB - learning from Kale's book

Yes,

But see if a LONG is explicitly required somewhere. For example as a filter or conversion, and special structures ...
by mk-soft
Sat Aug 28, 2021 10:18 am
Forum: Coding Questions
Topic: New to PB - learning from Kale's book
Replies: 14
Views: 1306

Re: New to PB - learning from Kale's book

Some of the 'gotchas' I learned early on is that PB's default data type is no longer the 'long'(.l) but the 'integer'(.i) I've always wondered why this is a "gotcha". I never changed my variables and my apps don't run any different? Is it because I'm using the 32-bit version? Yes, that wi...