Search found 191 matches

by Oma
Sat May 30, 2020 5:48 am
Forum: Linux
Topic: microsoft ttf fonts can not be used in the Linux
Replies: 11
Views: 8219

Re: microsoft ttf fonts can not be used in the Linux

For better fault isolation it should be mentioned that
FontName$ = "TimesNewRoman" or
FontName$ = "Times"
can be found better.
However,
FontName$ = "Source Code Pro" as .ttf
(with spaces in the name) is set correctly.
by Oma
Sun May 24, 2020 7:10 am
Forum: Linux
Topic: Can be used microsoft ttf in the Linux?
Replies: 10
Views: 3094

Re: Can be used microsoft ttf in the Linux?

Today I can confirm this behaviour. Got the same problem now. Apparently the shortened expression "Times" instead of "Times New Roman" is better recognized in Linux (or PB?). ps: Maybe a problem with spaces, because "TimesNewRoman" also works better than "Times New...
by Oma
Fri May 22, 2020 5:55 pm
Forum: Linux
Topic: Can be used microsoft ttf in the Linux?
Replies: 10
Views: 3094

Re: Can be used microsoft ttf in the Linux?

Works perfectly here with the fonts from fonts-liberation package.
But your call is not correct.
Try it like this (and read the help please ;-)) ...

Code: Select all

SetGadgetFont(#Gadget_MainWindow_UTC_Time, FontId(LoadFont(#PB_Any, "Times New Roman", 18)))
Regards, Charly
by Oma
Sun May 17, 2020 5:09 pm
Forum: Bugs - IDE
Topic: The IDE crashes when I change my theme on Linux
Replies: 1
Views: 1760

Re: The IDE crashes when I change my theme on Linux

Hi stevie, it has to do with the TabBarGadget. https://www.purebasic.fr/english/viewtopic.php?f=23&t=51611 I tried a hardcore fix in the published 5.70 IDE sources. The survival time now is much better but the font in the Tabs is locked now and will not be updated when the setting is changed, so...
by Oma
Sat Oct 05, 2019 4:42 pm
Forum: Linux
Topic: PB5.7x qt: More Window incompatibilities (minimize, Focus)
Replies: 1
Views: 4035

PB5.7x qt: More Window incompatibilities (minimize, Focus)

Some further incompatibilities of the subsystem qt compared to Gtk2, Gtk3 and Windows . On my main system (Xubuntu 18.04, x64), the command GetActiveWindow() will always return -1, even if I use SetActiveWindow(#Window) . If I use SetActiveWindow(#Window) before, minimizing the window with SetWindow...
by Oma
Thu Aug 15, 2019 6:27 am
Forum: Tricks 'n' Tips
Topic: Linux - Fixed Width Combobox
Replies: 4
Views: 2357

Re: Linux - Fixed Width Combobox

Thank you Justin,

also an unconventional solution, but seems to be working.

Charly
by Oma
Sat Aug 10, 2019 5:27 pm
Forum: Linux
Topic: Frustrated With Linux
Replies: 6
Views: 3915

Re: Frustrated With Linux

Attention: Not very well tested. This means that the method is not bulletproof. The ComboBox is unfortunately the worst gadget in Gtk3. The only method I found to eliminate the dynamic width is to set the editable flag and block the effect of this flag via API. My Linux-Api-Lib code for the issue c...
by Oma
Fri Jun 21, 2019 7:46 am
Forum: Linux
Topic: QT: Different behaviour with ListIcon line breaks
Replies: 0
Views: 1765

QT: Different behaviour with ListIcon line breaks

Hi! Concerning all PB-Versions with qt-Subsystem ... I know it's not a documented behavior and a general incompatibility with Windows (but a good thing for Linux :wink: ). But since the behavior within qt commands, and also to the gtk differs I would like to mention it here ... In Linux you always h...
by Oma
Thu Jun 13, 2019 5:25 am
Forum: Feature Requests and Wishlists
Topic: [Duplicate]
Replies: 2
Views: 1253

Re: GetGadgetItemImage()

And here viewtopic.php?f=3&t=54573

It is the only gap that prevents e.g. the complete sortability of a ListIconGadget!
by Oma
Sat Mar 09, 2019 3:32 pm
Forum: Coding Questions
Topic: Toolbar once more ...
Replies: 8
Views: 2335

Re: Toolbar once more ...

Thanks all.
Under Linux it should work even from Gtk2.18.
I just tested it on Gtk2.24.32.
by Oma
Fri Feb 08, 2019 6:33 am
Forum: Coding Questions
Topic: Right align text in a column of listicon
Replies: 2
Views: 1000

Re: Right align text in a column of listicon

Hi!
The headline is a bit misleading, but you can find some frequently used cross-platform routines here ... viewtopic.php?f=19&t=43583&start=11
Especially Set column justification
by Oma
Sun Jan 27, 2019 3:43 pm
Forum: Coding Questions
Topic: IsRegExp command
Replies: 32
Views: 4412

Re: IsRegExp command

Does b$="[^aeio][aeiou]r$" do what you want?
by Oma
Sun Jan 27, 2019 7:21 am
Forum: Coding Questions
Topic: IsRegExp command
Replies: 32
Views: 4412

Re: IsRegExp command

marcoagpinto wrote:but why does this produce #True?:
because [^aeio] also matches c,
because [aeiou] matches o,
because r matches r,
And where is the string 'cor' contained :?:
:idea: :wink:
by Oma
Sat Dec 29, 2018 8:33 am
Forum: Linux
Topic: GTK3 SetGadgetColor Workaround (Teamwork / Release)
Replies: 28
Views: 16268

Re: GTK3 SetGadgetColor Workaround (Teamwork)

Thanks so far. Yesterday I played with the ComboBoxGadget. I haven't made a breakthrough yet. Above all, I didn't get access to the text color in the ComboBox yet. However, PB's SetGadgetColor() for the ComboBoxGadget is not defined at the moment! If I get the aggressiveness again, I'll try again :t...
by Oma
Thu Dec 27, 2018 7:21 pm
Forum: Linux
Topic: GTK3 SetGadgetColor Workaround (Teamwork / Release)
Replies: 28
Views: 16268

Re: GTK3 SetGadgetColor Workaround (Teamwork)

The ComboBoxGadget can be a complicated construction. I'll try my luck with it the next few days.
Shardik has already done some things with CSS. Maybe he'd like to join in.