Search found 9 matches

by Josemar
Sun Mar 19, 2023 11:55 pm
Forum: Coding Questions
Topic: How do I detect removable device events
Replies: 15
Views: 6052

Re: How do I detect removable device events

Hi

Please, is possible do this in MacOS?
I get an error because "#PB_ProcessPureBasicEvents" is not recognized.

Thanks in advance.
by Josemar
Fri Mar 17, 2023 1:56 pm
Forum: Mac OSX
Topic: Shows 'CapsLock' in status bar.
Replies: 5
Views: 947

Re: Shows 'CapsLock' in status bar.

Thank you both :)
by Josemar
Wed Mar 15, 2023 4:20 pm
Forum: Mac OSX
Topic: Shows 'CapsLock' in status bar.
Replies: 5
Views: 947

Re: Shows 'CapsLock' in status bar.

Hi deseven ,thanks a lot!
This is a solution for use the "About of" menu :)

It's a pity that is not possible shows this menu "About" in other idioms, only English.
by Josemar
Wed Mar 15, 2023 1:48 pm
Forum: Mac OSX
Topic: Shows 'CapsLock' in status bar.
Replies: 5
Views: 947

Shows 'CapsLock' in status bar.

Hi all.

(Excuse for my English)

I'm still learning about PureBasic (which I'm liking more and more) and I'm trying to develop small utilities that integrate with the MacOS desktop.

In this code I want to have a chivato that notifies me when 'Caps. Lock' is on. In the original Mac keyboard this is ...
by Josemar
Mon Mar 13, 2023 5:54 pm
Forum: Mac OSX
Topic: Error converting string to int
Replies: 4
Views: 1070

Re: Error converting string to int

mk-soft wrote: Mon Mar 13, 2023 4:45 pm You can set which format the debug output should have.
Certainly set in Preferences
Thanks mk-soft . Just this was my problem, I was set preferences for debugger in Hex (I didn't remember this)

Solve, thanks a lot and sorry for my mistake
by Josemar
Mon Mar 13, 2023 5:51 pm
Forum: Mac OSX
Topic: Error converting string to int
Replies: 4
Views: 1070

Re: Error converting string to int


The value of num.q is correct - no bug I think. 12663CA0EAF6 is hex and = 20230313143030.

To ensure the output number format from Debug use either Str() or Hex().



Thanks, but I have doubts... Is correct that Val() returns an hexadecimal instead a integer value?
Executing that in Windows, it ...
by Josemar
Mon Mar 13, 2023 3:17 pm
Forum: Mac OSX
Topic: Error converting string to int
Replies: 4
Views: 1070

Error converting string to int

Hello.

When I try to convert a string that contains a date and time:

Define txt$ = "20230313143030"
Define num.q = Val(txt$)
Debug num


I see that it runs fine in Windows 10 64 bits... and in Widows XP 32 bits, it runs too, I'm surprised :D
The problem is compiling in MacOS (chip intel, OS ...
by Josemar
Tue Jul 26, 2022 9:07 am
Forum: General Discussion
Topic: Date - Problem with year 2038
Replies: 5
Views: 1047

Date - Problem with year 2038

Hi all

Please, is it a estimation of solving this problem in PureBasic?

https://www.purebasic.com/documentation/date/index.html

Regards
by Josemar
Sat Apr 02, 2022 6:40 pm
Forum: Bugs - IDE
Topic: Problems with font size and multi-row in IDE
Replies: 0
Views: 743

Problems with font size and multi-row in IDE

Hi

I'm using PureBasic in Windows and MacOs, and I see that IDE works better in Windows, in MacOS I see these errors or problems:

- The option "multi-row" does't not work in MacOS.

- In Windows I can change the font size with Control+MouseWheel, and I remember that version for MacOS let this ...