Search found 45 matches

by pjsmith67
Mon Jun 09, 2025 3:32 pm
Forum: Bugs - Mac OSX
Topic: [PB 6.20] Canvas keydown returning wrong code for some keys
Replies: 2
Views: 1049

Re: Canvas keydown returning wrong code for some keys

Yes, input works. I switched to that. Probably should have been using that from the beginning.

It appears to be a MacOS bug as it works on my Windows 10 machine.

Phil
by pjsmith67
Mon Jun 09, 2025 12:41 am
Forum: Bugs - Mac OSX
Topic: [PB 6.20] Canvas keydown returning wrong code for some keys
Replies: 2
Views: 1049

[PB 6.20] Canvas keydown returning wrong code for some keys

The following code snippet returns the same key code for "," and "." on MacOS 14.5.7. It also appears to happen on 15.5

Original discussion: https://www.purebasic.fr/english/viewtopic.php?p=641913#p641913

Phil


OpenWindow(0,10,10,800,600,"")
CanvasGadget(1,0,0,800,600,#PB_Canvas_Keyboard)
While ...
by pjsmith67
Mon Jun 09, 2025 12:34 am
Forum: General Discussion
Topic: canvas keycode weirdness
Replies: 8
Views: 1132

Re: canvas keycode weirdness

Thank you for confirming I am not crazy! :-)

I will post a bug report on the Mac bug forum.

Thanks for the suggestion for using input. That works. Did not realize that input acts just like keydown.

Phil
by pjsmith67
Sun Jun 08, 2025 11:31 pm
Forum: General Discussion
Topic: canvas keycode weirdness
Replies: 8
Views: 1132

Re: canvas keycode weirdness

Yeah, I want to make sure its not my system that's the problem. This is on my laptop, so no keypad.

Verified language settings are English both on the system and in Purebasic.

Just tried it on my windows 10 box, works fine there.
by pjsmith67
Sun Jun 08, 2025 9:52 pm
Forum: General Discussion
Topic: canvas keycode weirdness
Replies: 8
Views: 1132

canvas keycode weirdness

Before I declare this a bug, can I get a few people to try this code snippet and see if you get the same result when you press "." and ","? On my system, MacOS 14.7.5, I get 44 for both of them which is ",".

Please tell me I'm not crazy. :-D

Phil


OpenWindow(0,10,10,800,600,"")
CanvasGadget(1,0 ...
by pjsmith67
Sun Feb 16, 2025 10:23 pm
Forum: General Discussion
Topic: standalone debugger keeps locking up
Replies: 0
Views: 704

standalone debugger keeps locking up

I've tried using the standalone debugger with several external editors (Sublime, CotEditor, BBEdit, my own editor, etc..) and I have the same problem... it locks up I'd say about 50% of the time. Just get the spinning wheel of death. I usually create a file with debugger options as described in the ...
by pjsmith67
Tue Sep 24, 2024 8:10 pm
Forum: Applications - Feedback and Discussion
Topic: [Module] [MacOS and now Windows] FormDesigner and property editor
Replies: 10
Views: 8637

Re: [Module] [MacOS and now Windows] FormDesigner and property editor

Finally have a new version ready. This one adds a textButtonItem which replaces how colors were chosen. Demo now has a font property using the new textButtonTiem and loading/saving forms is now supported. Next up is code generation so that this can, hopefully, be somewhat useful.

You now need to ...
by pjsmith67
Tue Sep 24, 2024 3:53 pm
Forum: Bugs - IDE
Topic: [PB 6.12] IDE locks up running console program
Replies: 6
Views: 4376

Re: [PB 6.12] IDE locks up running console program

well, crap... I dunno. It locks up on me every single time and I have verified the executable type is set to console.

Let me try "emergency repair procedure #1"... reboot.
by pjsmith67
Tue Sep 24, 2024 5:38 am
Forum: Bugs - IDE
Topic: [PB 6.12] IDE locks up running console program
Replies: 6
Views: 4376

Re: [PB 6.12] IDE locks up running console program

yes, I set the executable type to console before running that snippet.
by pjsmith67
Mon Sep 23, 2024 4:07 pm
Forum: Bugs - IDE
Topic: [PB 6.12] IDE locks up running console program
Replies: 6
Views: 4376

[PB 6.12] IDE locks up running console program

Running this code snippet as a console program causes the IDE to lock up every single time.

Program runs, does not display anything and then IDE locks up. Works fine if I compile it on the command line.
Using PB 6.12
MacOS: 13.6.9

Maybe I'm doing something wrong?

Procedure main()
OpenConsole ...
by pjsmith67
Tue Sep 03, 2024 3:17 pm
Forum: Applications - Feedback and Discussion
Topic: [Module] [MacOS and now Windows] FormDesigner and property editor
Replies: 10
Views: 8637

Re: [Module] [MacOS and now Windows!] FormDesigner and property editor

Just uploaded a new version. It should be working much better under Windows now, though not perfectly.

Please note: You only need to download filedesigner3.pb and property_editor.pb

https://filedn.com/lHJwd7m6TKKuPoeDaPqWKjJ

Thanks!

Phil
by pjsmith67
Fri Aug 30, 2024 4:25 pm
Forum: Coding Questions
Topic: Transparent canvas but no events on Windows
Replies: 2
Views: 915

Transparent canvas but no events on Windows

Bear with me... I develop on MacOS but trying to get one of my modules to work under Windows...

I have the following code to make a canvas transparent in Windows but after doing this, the canvas no longer receives any events.


Define hwCanvas = GadgetID(canvas)
Define transparentColor = RGB(255 ...
by pjsmith67
Thu Aug 29, 2024 10:19 pm
Forum: Applications - Feedback and Discussion
Topic: [Module] [MacOS and now Windows] FormDesigner and property editor
Replies: 10
Views: 8637

Re: [Module] FormDesigner and property editor

ok, serious problem with the Windows version, for some reason this code to make the canvas transparent, while it works, make the canvas not respond to events. So, until this is solved, unfortunately, this module will be MacOS only.


Define hwCanvas = GadgetID(canvas)
Define transparentColor ...
by pjsmith67
Thu Aug 29, 2024 8:17 pm
Forum: Applications - Feedback and Discussion
Topic: [Module] [MacOS and now Windows] FormDesigner and property editor
Replies: 10
Views: 8637

Re: [Module] FormDesigner and property editor

PBJim wrote: Thu Aug 29, 2024 7:42 pm Well done Phil, it looks good. Forgive me for asking, not having had chance to look properly myself, but is the output from the designer a set of parameters, or code? Jim
Thanks you.

At the moment it only outputs to json. Code generation is on my list of things to do.

Phil
by pjsmith67
Thu Aug 29, 2024 5:00 pm
Forum: Applications - Feedback and Discussion
Topic: [Module] [MacOS and now Windows] FormDesigner and property editor
Replies: 10
Views: 8637

Re: [Module] FormDesigner and property editor

Kiffi wrote: Thu Aug 29, 2024 2:24 pm A screenshot would be nice. Thanks in advance.
formdesginer.png