Search found 13 matches

by Torf
Thu Oct 12, 2023 8:42 am
Forum: Feature Requests and Wishlists
Topic: Dark mode for .html help pages
Replies: 3
Views: 773

Dark mode for .html help pages

I like to work in PB with the tool 'help' into de IDE, but this does not support the dark mode (and I like to work using dark mode, too :))

Would be a problem include an 'auto mode' in html pages of the 'help tool'?

An example in css:

/* Dark-mode */
body {
background-color: black;
color ...
by Torf
Thu Oct 12, 2023 8:32 am
Forum: Mac OSX
Topic: Change the app's icon in real-time
Replies: 4
Views: 1470

Re: Change the app's icon in real-time


The applicationIconImage property of NSApplication does what you want, e.g.:


; Get application instance.
Define app = CocoaMessage(#Null, #Null, "NSApplication sharedApplication")
; Create a solid black image.
Define img = CreateImage(#PB_Any, 256, 256, 32)
; Replace the application's icon with ...
by Torf
Mon Oct 09, 2023 2:37 pm
Forum: Mac OSX
Topic: Change the app's icon in real-time
Replies: 4
Views: 1470

Change the app's icon in real-time

Hello.

Please, is it possible to change the icon of my app in real-time?

I supose that Cocoa would to have a method for do this, but I can not find it.

Thanks you in advance!
by Torf
Tue Jul 25, 2023 11:16 am
Forum: Coding Questions
Topic: Ucase() fails with UTF
Replies: 23
Views: 2625

Re: Ucase() fails with UTF

idle wrote: Sat Jul 22, 2023 10:55 am Think you should try to update to pb 6.02 lts or 6.03. Something isn't right
https://ibb.co/yqGqTxW
by Torf
Sat Jul 22, 2023 10:40 am
Forum: Coding Questions
Topic: Ucase() fails with UTF
Replies: 23
Views: 2625

Re: Ucase() fails with UTF


@Torf

What are the outputs for the following code?
Debug Asc("ñ")
Debug Asc(UCase("ñ"))

https://ibb.co/1QWK07K

; Download from https://dnscope.io/idlefiles/UTF16.pb
IncludeFile "UTF16.pb"
Define text$ = "ñ"
UTF16::StrUCase(text$)
Debug text$

https://ibb.co/Lv5Wp9q


I paste screenshots ...
by Torf
Sat Jul 22, 2023 10:25 am
Forum: Coding Questions
Topic: C Backend in PureBasic MacOS
Replies: 9
Views: 1526

Re: C Backend in PureBasic MacOS


I get an error with the include line, but none when removing it (W10 64bit PB6.02 C compiler). It displays the text in the console, but the console also has to be opened (long enough) to see it:


OpenConsole()

! printf("Hola, esto es C con PureBasic\n");

Input() : CloseConsole()



Sure,as I ...
by Torf
Fri Jul 21, 2023 10:44 am
Forum: Coding Questions
Topic: Ucase() fails with UTF
Replies: 23
Views: 2625

Re: Ucase() fails with UTF

idle wrote: Fri Jul 21, 2023 10:11 am
Torf wrote: Wed Jul 19, 2023 10:48 am I attach a screenshot:

https://ibb.co/yfSJTL3
Sorry for delay in reply, that does look odd. What is your OS version?
I'm using a macbook with chip Intel and macOS Monterey, v.12.6.3

In Windows 10 and Windows XP it runs ok, the problem I only see with macOS (I didn't test it with Linux)
by Torf
Wed Jul 19, 2023 10:48 am
Forum: Coding Questions
Topic: Ucase() fails with UTF
Replies: 23
Views: 2625

Re: Ucase() fails with UTF

I attach a screenshot:

https://ibb.co/yfSJTL3
by Torf
Wed Jul 19, 2023 10:36 am
Forum: Coding Questions
Topic: C Backend in PureBasic MacOS
Replies: 9
Views: 1526

Re: C Backend in PureBasic MacOS

Fred wrote: Sun Jul 16, 2023 8:45 am Do you mean you add a printf() as inlined assembly ? Please always post a small code source showing the problem or we can't help.
The code is:

Code: Select all

! #include <stdio.h>
! printf("Hola, esto es C con PureBasic\n");
by Torf
Sun Jul 16, 2023 8:32 am
Forum: Coding Questions
Topic: C Backend in PureBasic MacOS
Replies: 9
Views: 1526

Re: C Backend in PureBasic MacOS


Which version do you use on OSX ? What is not working ?


If I compile without #include <stdio.h> at top (but using PB in Windows this include is not needed and it compiles and runs OK) I get this error:

error: implicitly declaring library function 'printf' with type 'int (const char ...
by Torf
Sun Jul 16, 2023 8:24 am
Forum: Coding Questions
Topic: Ucase() fails with UTF
Replies: 23
Views: 2625

Re: Ucase() fails with UTF

I tested again, this time in several platforms, and I'm sure that in Windows it runs ok, but in MacOS with chip Intel, it fails.
by Torf
Fri Jul 14, 2023 8:39 am
Forum: Coding Questions
Topic: C Backend in PureBasic MacOS
Replies: 9
Views: 1526

C Backend in PureBasic MacOS

Hello.

I don't know if this issue was commented in past... This is first time for me that I trie to compile PB and C code with pbcompilec and I'm surprised of it, it's a very very good tool can compile pb and c at the same time..Congratulations!!

What is the problem? Backend C only works in ...
by Torf
Thu Jul 13, 2023 9:31 pm
Forum: Coding Questions
Topic: Ucase() fails with UTF
Replies: 23
Views: 2625

Ucase() fails with UTF

Hi.
Perhaps it's a fault of me.. when I try convert a string with upper case, Ucase(), it does not work with 'ñ' letter.