Search found 153 matches

by eck49
Sun Oct 09, 2022 11:07 pm
Forum: Coding Questions
Topic: [Solved] PB 6.00 in Ubuntu 22.04 SetWindowColor not working
Replies: 15
Views: 1871

Re: [Solved] PB 6.00 in Ubuntu 22.04 SetWindowColor not working

Another glitch - background colour for a container gadget. SetGadgetColor works for all the other gadgets I use (but there are a lot I do not use).

My workaround was to create a textbox gadget (T) within the container (C).
Create T within C as soon as C is created and as big as C before any other ...
by eck49
Wed Sep 28, 2022 3:52 pm
Forum: Linux
Topic: GTK3 SetGadgetColor Workaround (Teamwork / Release)
Replies: 28
Views: 20301

Re: GTK3 SetGadgetColor Workaround (Teamwork / Release)

A great piece of work and well out of my league to do.

Any chance of completing the ContainerGadget case soon?
by eck49
Fri Sep 09, 2022 5:27 pm
Forum: Coding Questions
Topic: [Solved] PB 6.00 in Ubuntu 22.04 SetWindowColor not working
Replies: 15
Views: 1871

Re: [Solved] PB 6.00 in Ubuntu 22.04 SetWindowColor not working

@Shardik

Thanks, that looks ideal. I haven't come across any other glitches as yet, just the Window Colour.
by eck49
Thu Sep 08, 2022 7:52 pm
Forum: Coding Questions
Topic: math - linear interpolation
Replies: 7
Views: 1123

Re: math - linear interpolation

I'd also recommend that you use float or double when working with a formula unless all the intermediate values are guaranteed to be integers. With integers only, there can be trouble with rounding which can be hard to track down and may not appear in testing. It also vastly increases the range of ...
by eck49
Thu Sep 08, 2022 7:11 pm
Forum: Coding Questions
Topic: [Solved] PB 6.00 in Ubuntu 22.04 SetWindowColor not working
Replies: 15
Views: 1871

[Solved]: PB 6.00 in Ubuntu 22.04 SetWindowColor not working

@mk-soft
Success!

The only additional code needed was
UseModule GtkGadgetColor

Modules, for all their merits, don't feature very much in my projects except (as here) where they have been imported from elsewhere. I had forgotten UseModule completely. :oops:

I appreciate your patience, thanks ...
by eck49
Thu Sep 08, 2022 6:44 pm
Forum: Coding Questions
Topic: [Solved] PB 6.00 in Ubuntu 22.04 SetWindowColor not working
Replies: 15
Views: 1871

Re: PB 6.00 in Ubuntu 22.04 SetWindowColor not working

@deeproot
Thanks for the support. I wondered about GTK2, but would very much prefer not to venture further away from Ubuntu Jammy out of the box than I have to.
by eck49
Thu Sep 08, 2022 5:30 pm
Forum: Coding Questions
Topic: [Solved] PB 6.00 in Ubuntu 22.04 SetWindowColor not working
Replies: 15
Views: 1871

Re: PB 6.00 in Ubuntu 22.04 SetWindowColor not working

@infratec

That's right, and I am really puzzled.

To start with, I rather lazily pasted the code from GtkGetGadgetColor.pbi into an existing project file just before the code which builds the window and called GtkGetWindowColor directly instead of PB's SetWindowColor. This executes but does not set ...
by eck49
Thu Sep 08, 2022 12:35 pm
Forum: Coding Questions
Topic: [Solved] PB 6.00 in Ubuntu 22.04 SetWindowColor not working
Replies: 15
Views: 1871

Re: PB 6.00 in Ubuntu 22.04 SetWindowColor not working

@mk-soft It is frustrating, but I can't find a bolt-on way forward on this. It would be a killer if I can't get a workaround to work. Is an integrated solution being worked on for PB?
by eck49
Wed Sep 07, 2022 11:37 am
Forum: Coding Questions
Topic: [Solved] PB 6.00 in Ubuntu 22.04 SetWindowColor not working
Replies: 15
Views: 1871

Re: PB 6.00 in Ubuntu 22.04 SetWindowColor not working

@mk-soft Thanks, this looks like a well-trodden path.

I have no problem with SetGadgetColor, it is only SetWindowColor.

I've tried adding the code from the first post in the linked thread to one of my projects and it makes no difference. Should I be changing the call to SetWindowColor in some way ...
by eck49
Tue Sep 06, 2022 10:07 pm
Forum: Coding Questions
Topic: [Solved] PB 6.00 in Ubuntu 22.04 SetWindowColor not working
Replies: 15
Views: 1871

[Solved] PB 6.00 in Ubuntu 22.04 SetWindowColor not working

I have now jumped from PB5.70 in Ubuntu 16.04 to PB6.00 in Ubuntu 22.04 (reassured after my earlier thread https://www.purebasic.fr/english/viewtopic.php?t=79746 )

I have only tried a few things so far, but the many projects I have at least start properly (ie run with F5 in the IDE) with no changes ...
by eck49
Thu Sep 01, 2022 5:25 pm
Forum: Coding Questions
Topic: PB 6.00 in Ubuntu 22.04 after PB 5.70 in Ubuntu 16.04
Replies: 7
Views: 921

Re: PB 6.00 in Ubuntu 22.04 after PB 5.70 in Ubuntu 16.04

@infratec, deeproot
Thanks. I am reassured and look forward to when I can get to grips with PB6, maybe next week.
@mk-soft
Thanks for the link. I'll dive into it when I can.. also next week I hope.
by eck49
Wed Aug 31, 2022 12:44 pm
Forum: Coding Questions
Topic: PB 6.00 in Ubuntu 22.04 after PB 5.70 in Ubuntu 16.04
Replies: 7
Views: 921

Re: PB 6.00 in Ubuntu 22.04 after PB 5.70 in Ubuntu 16.04

@infratec
Fair enough.
How would I know if I am using the asm backend? I have no embedded assembler code, for instance.

@mk-soft. I skipped 18.04 and 20.04 but with 16.04 beyond its support life, it was time. And PB has moved on, too. I understand from your reply that there's a boundary for PB ...
by eck49
Tue Aug 30, 2022 11:12 pm
Forum: Coding Questions
Topic: PB 6.00 in Ubuntu 22.04 after PB 5.70 in Ubuntu 16.04
Replies: 7
Views: 921

PB 6.00 in Ubuntu 22.04 after PB 5.70 in Ubuntu 16.04

I have just installed Ubuntu 22.04 Jammy Jellyfish, succeeding 16.04 Xenial.

I have a number of projects coded and built with PB 5.70 in Xenial.

If I download the latest PB 6.00 (for Ubuntu 20.04, as 22.04 is not yet available) is it reasonable to expect to import the old code to the new IDE ...
by eck49
Tue Mar 08, 2022 7:59 pm
Forum: Coding Questions
Topic: "Properise" text
Replies: 16
Views: 2575

Re: "Properise" text

Thanks, all.

@Nic
I only need unaccented Latin chars and (at least in the current project) have no TAB, CR or LF to handle, so my version is a bit shorter but the logic is essentially the same as your more general procedure. All characters can be treated identically by pretending there is a space ...
by eck49
Tue Mar 08, 2022 4:23 pm
Forum: Coding Questions
Topic: "Properise" text
Replies: 16
Views: 2575

"Properise" text

This would be simple to code if the answer is no, but is there a function which would take a string and "properise" it - ie turn the first letter of each word into upper case and leave the rest untouched?

For example

1234abc AbcD efg eNERgy
would become
1234abc AbcD Efg ENERgy