Search found 32 matches

by BlindMan
Thu Jul 09, 2020 3:04 pm
Forum: Announcement
Topic: PentaGrid for Mac and PC.
Replies: 7
Views: 4928

Re: PentaGrid for 64bit Linux.

PentaGrid V1.4.0.3 now available for 64bit Linux.

Compiled on Ubuntu 18.04.

Tested on Ubuntu 16.04 and 18.04.

Download from http://01400.co.uk/ubuntu.html

After downloading PentaGrid file, chmod 755, Run.
by BlindMan
Sat Jul 04, 2020 12:50 pm
Forum: Linux
Topic: Linux Help
Replies: 13
Views: 6621

Re: Linux Help RunProgram("chmod", "777 /tmp/test.sh", ""

Works as expected using PB 572 x64 on Ubuntu 18.04 x64



If CreateFile(0, "/tmp/test.sh")
WriteStringN(0, "#!/bin/bash")
WriteStringN(0, "ls -lA > /tmp/test.txt")
CloseFile(0)
Else
MessageRequester("Error", "Unable to create script")
EndIf

RunProgram("chmod", "777 /tmp/test.sh ...
by BlindMan
Wed Jul 01, 2020 10:30 am
Forum: Linux
Topic: SetWindowColor() Using PB 572 x64 on Ubuntu 18.04 x64
Replies: 3
Views: 2061

Re: SetWindowColor() Using PB 572 x64 on Ubuntu 18.04 x64

Thank you Shardik. Sorry code was incomplete but I presumed this would be a known issue.

Both of the SetWindowBackColor() examples work as does (Menu > Compiler > Compiler Options... > Library Subsystem: gtk2)
by BlindMan
Tue Jun 30, 2020 12:07 pm
Forum: Linux
Topic: SetWindowColor() Using PB 572 x64 on Ubuntu 18.04 x64
Replies: 3
Views: 2061

SetWindowColor() Using PB 572 x64 on Ubuntu 18.04 x64

Hi

SetWindowColor() doesn't appear to be working.
Window background colour is always white regardless of RGB() value.


OpenWindow(0, 0, 0, 800, 600, "")
OpenWindowedScreen(WindowID(0), 100, 100, 600, 400, 0, 0, 0)
SetWindowColor(0, RGB(255,0,0))





Are the errors displayed by ./launch.sh ...
by BlindMan
Sat Apr 18, 2020 8:54 am
Forum: Announcement
Topic: PentaGrid for Mac and PC.
Replies: 7
Views: 4928

Re: PentaGrid for Mac and PC.

ColBoy wrote:Just wondering how did you create your installer for the Mac.
I used https://www.araelium.com/dmgcanvas to create PentaGrid.dmg

For Windows installers, I used https://jrsoftware.org/isinfo.php
by BlindMan
Thu Apr 16, 2020 4:38 pm
Forum: Announcement
Topic: PentaGrid for Mac and PC.
Replies: 7
Views: 4928

Re: PentaGrid for Mac and PC.


The only point is that the Application menu --> Quit doesn't work (this menu is always created on an OSX application)
I guess you have not tested this in you program



Thanks for mentioning this Mindphazer.

I had not even noticed that the macOS Application menu was there for my app.


About ...
by BlindMan
Thu Apr 16, 2020 12:07 pm
Forum: Announcement
Topic: PentaGrid for Mac and PC.
Replies: 7
Views: 4928

PentaGrid for Mac and PC.

PentaGrid. A PureBasic strategy game for Mac and PC.

Download from http://01400.co.uk/

Hope you like it.
by BlindMan
Sun Apr 12, 2020 10:28 am
Forum: Mac OSX
Topic: DisableGadget() ImageGadget()
Replies: 3
Views: 3769

DisableGadget() ImageGadget()

Hi

This code works as expected on Windows 10 but not on Catalina.

On macOS Catalina 10.15.4 using PB572, left and right mouse clicks are sometimes detected on a disabled image gadget. No mouse clicks detected on Windows 10.




OpenWindow(0, 0, 0, 200, 120, "", #PB_Window_SystemMenu | #PB_Window ...
by BlindMan
Sat Apr 11, 2020 12:55 pm
Forum: Mac OSX
Topic: #PB_Directory_AllUserData
Replies: 1
Views: 3067

#PB_Directory_AllUserData

ProgDataDir$ = GetUserDirectory(#PB_Directory_AllUserData)
Debug(ProgDataDir$) displays /Library/Application Support/

CreateDirectory(ProgDataDir$ + "MyApp") result is 0 which I suspect is due to permissions as permission is denied when I use mkdir in Terminal app without sudo.

How can PB app ...
by BlindMan
Fri Mar 20, 2020 7:57 pm
Forum: Mac OSX
Topic: Installing my PB app on another Mac.
Replies: 1
Views: 1883

Installing my PB app on another Mac.

Hi

Looking for advice on best way to package my PB app so that it can be easily installed on another Mac.
by BlindMan
Thu Mar 19, 2020 4:27 pm
Forum: Mac OSX
Topic: app icon file
Replies: 3
Views: 2126

Re: app icon file

Used sips to convert 256x256 ico file to ICNS file.

Had to send apps executable directory from desktop to bin before recompiling as just recompiling did not update desktop icon.

I'm a bit out of date with Apple. Prior to yesterday, last Apple I used was an Apple II in 1979.
I had a spare HDMI ...
by BlindMan
Thu Mar 19, 2020 2:33 pm
Forum: Mac OSX
Topic: app icon file
Replies: 3
Views: 2126

app icon file

Hi

I've just compiled a PB program developed on Windows on Mac OSX.
App works as expected (which is quite incredible).

PB compilation saves app to Desktop but correct icon doesn't display on desktop.
The .ico file is in the apps Resources directory.

Will a Windows ico file work on OSX?
Does the ...
by BlindMan
Wed Mar 11, 2020 2:24 pm
Forum: Coding Questions
Topic: SetFileAttributes() for folder/directory
Replies: 1
Views: 1284

SetFileAttributes() for folder/directory

SetFileAttributes() for a folder/directory doesn't appear to be working for +s or +h.
Passing full pathname of folder to SetFileAttributes().
Working as expected on files.
Using Win10x64 PB5.72x64 B2

Sorry. Working ok now. Not sure why. Computer has been switched off and on since last tested but ...
by BlindMan
Tue Mar 03, 2020 12:59 pm
Forum: Coding Questions
Topic: Why does this program stop responding after CtrlAltDel ?
Replies: 9
Views: 2142

Re: Why does this program stop responding after CtrlAltDel ?

On Win10x64, revised code did not work until recompiled with PB 5.72x64 b1 instead of 5.71x64.
by BlindMan
Mon Mar 02, 2020 10:34 pm
Forum: Coding Questions
Topic: Why does this program stop responding after CtrlAltDel ?
Replies: 9
Views: 2142

Re: Why does this program stop responding after CtrlAltDel ?

Thanks Fred.

This is probably a common coding issue because programmers like myself do not fully understand why this is necessary.

Please can someone explain why adding

Repeat
Until WindowEvent() = 0

fixes the code. Would WaitWindowEvent(100) also fix the issue?

Does this fix need PB 5.72 b1?