Search found 630 matches

by Lebostein
Tue Mar 19, 2024 8:55 am
Forum: Bugs - Mac OSX
Topic: "nil NSFont"-Error in EditorGadget() if SetGadgetFont() before
Replies: 2
Views: 227

Re: "nil NSFont"-Error in EditorGadget() if SetGadgetFont() before

Hey, nice to know that ".AppleSystemUIFont" or an empty string "" as font name loads the system default font. This question is very often asked here, how to get the name of the system font, for example, to provide some labels with a larger font. Could almost be included in the do...
by Lebostein
Sun Mar 17, 2024 9:07 am
Forum: Bugs - Mac OSX
Topic: "nil NSFont"-Error in EditorGadget() if SetGadgetFont() before
Replies: 2
Views: 227

"nil NSFont"-Error in EditorGadget() if SetGadgetFont() before

If you change the font size to 12 or 14, it works. But with 13 the program crashes with this strange error message... the return of LoadFont() is OK in all cases. result = LoadFont(0, "San Francisco", 13) SetGadgetFont(#PB_Default , FontID(0)) Debug result ; seems OK and loaded OpenWindow(...
by Lebostein
Sat Mar 16, 2024 1:58 pm
Forum: Bugs - Mac OSX
Topic: [Done] ListView/Editor/Text: SetGadgetFont(Gadget, #PB_Default) don't reset the line height / font size
Replies: 7
Views: 337

Re: [Done] ListView/Editor/Text: SetGadgetFont(Gadget, #PB_Default) don't reset the line height / font size

mk-soft wrote: Fri Mar 15, 2024 7:08 pm I don't want to be petty ;)
After set gadget font default the height is not 24.0 but 25.0 (internal rounding error ?)
Yes, this is what I have noted in this thread:
https://www.purebasic.fr/english/viewtopic.php?t=83816
by Lebostein
Sat Mar 16, 2024 8:08 am
Forum: Mac OSX
Topic: 6.10b8 ListView line height is much larger
Replies: 5
Views: 212

Re: 6.10b8 ListView line height is much larger

It seems it is a hard thing to get back to the default (maybe it is impossible to get all information about the default setup?). Even with the fix on beta 8, you can still see differences between the original state and the reset font. -------------------- Other strange thing (or is that how Apple sp...
by Lebostein
Fri Mar 15, 2024 7:08 pm
Forum: Announcement
Topic: PureBasic 6.10 beta 9 is out !
Replies: 269
Views: 35321

Re: PureBasic 6.10 beta 8 is out !

jacdelad wrote: Fri Mar 15, 2024 2:05 pm Why not buy a licence and donate it to some young folk to get in touch with PureBasic?
Hey, nice thought. Maybe I can think of someone in my family... :wink:
by Lebostein
Fri Mar 15, 2024 3:57 pm
Forum: Mac OSX
Topic: 6.10b8 ListView line height is much larger
Replies: 5
Views: 212

Re: 6.10b8 ListView line height is much larger

Does it appear that line height in the ListViewGadget is much larger than in 6.10b7? The example in Help seems to be ok but I'm going to have a lot of editing to get the new size to work and I'd really like the lines not be so tall. In one of my programs in beta 7 I get 70 lines showing and in beta...
by Lebostein
Fri Mar 15, 2024 10:52 am
Forum: Announcement
Topic: PureBasic 6.10 beta 9 is out !
Replies: 269
Views: 35321

Re: PureBasic 6.10 beta 8 is out !

:D Is there a way to support the project financially independently of buying a license? I purchased my PB license 21 years ago. I'm starting to feel guilty about having paid for it just this once... PS: Who can do a current interview with the makers of PB? What is the current situation? Who is invol...
by Lebostein
Tue Mar 05, 2024 8:16 pm
Forum: Bugs - Mac OSX
Topic: [Done] ListView/Editor/Text: SetGadgetFont(Gadget, #PB_Default) don't reset the line height / font size
Replies: 7
Views: 337

Re: ListView/Editor/Text: SetGadgetFont(Gadget, #PB_Default) don't reset the line height / font size

mk-soft wrote: Tue Mar 05, 2024 7:56 pm The required letter height would have to be calculated differently.
OK, but it should consistant in PB.
by Lebostein
Tue Mar 05, 2024 5:59 pm
Forum: Bugs - Mac OSX
Topic: [Done] ListView/Editor/Text: SetGadgetFont(Gadget, #PB_Default) don't reset the line height / font size
Replies: 7
Views: 337

Re: ListView/Editor/Text: SetGadgetFont(Gadget, #PB_Default) don't reset the line height / font size

ListIconGadget() is also affected, and I suspect other gadgets as well. Seems to be a fundamental problem...
by Lebostein
Tue Mar 05, 2024 1:44 pm
Forum: Bugs - Mac OSX
Topic: [Done] ListView/Editor/Text: SetGadgetFont(Gadget, #PB_Default) don't reset the line height / font size
Replies: 7
Views: 337

Re: ListView/Editor: SetGadgetFont(Gadget, #PB_Default) don't reset the line height (margin)

Similar problem with EditorGadget() and TextGadget(). But here seems the initial font wrong (to small). After Reset with #PB_Default the font looks better: LoadFont(0, "Menlo", 16) OpenWindow(0, 0, 0, 270*2, 190, "ListViewGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered...
by Lebostein
Tue Mar 05, 2024 7:08 am
Forum: Bugs - Mac OSX
Topic: [Done] ListView/Editor/Text: SetGadgetFont(Gadget, #PB_Default) don't reset the line height / font size
Replies: 7
Views: 337

[Done] ListView/Editor/Text: SetGadgetFont(Gadget, #PB_Default) don't reset the line height / font size

OpenWindow(0, 0, 0, 270*2, 190, "ListViewGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) ListViewGadget(0, 10, 10, 250, 120) For a = 1 To 12 AddGadgetItem (0, -1, "Item yyy " + Str(a) + " of the Listview") ; definieren des Listview-Inhalts Next SetGadgetSta...
by Lebostein
Mon Mar 04, 2024 10:45 am
Forum: Mac OSX
Topic: SetGadgetFont leads to narrow line spacing in ListViewGadget
Replies: 1
Views: 108

SetGadgetFont leads to narrow line spacing in ListViewGadget

Is this only depending on the font? But this line spacing I see seems to small (the line height ends exactly with the tail of the "y"). However, the line spacing is much larger in the default state... if OpenWindow(0, 0, 0, 270*2, 140, "ListViewGadget", #PB_Window_SystemMenu | #P...
by Lebostein
Mon Mar 04, 2024 7:18 am
Forum: Bugs - Mac OSX
Topic: [Done] Example "WindowedScreen.pb" shows a black window only
Replies: 6
Views: 419

Re: [Done] Example "WindowedScreen.pb" shows a black window only

Seems it is not fixed for the 3D engine. If you run this example:
https://www.purebasic.fr/english/viewtopic.php?p=616982
you get the same lower left 1/4 screen...
by Lebostein
Mon Mar 04, 2024 7:17 am
Forum: 3D Programming
Topic: Demo 3D - Repulsion
Replies: 9
Views: 1625

Re: Demo 3D - Repulsion

With Mac OS this looks completely different and faulty. The stars are simply white dots and the screen section is also limited to 1/4....