Search found 56 matches

by HarrysLad
Thu Apr 04, 2024 5:06 pm
Forum: Mac OSX
Topic: 6.10b8 ListView line height is much larger
Replies: 8
Views: 3598

Re: 6.10b8 ListView line height is much larger

OK, thanks for that WilliamL. I saw the workaround earlier and it seems to work well enough.
It's still a bug though.
Maybe (hopefully) it'll get fixed in the next PB iteration.

Cheers
Dave
by HarrysLad
Thu Apr 04, 2024 3:00 pm
Forum: Mac OSX
Topic: 6.10b8 ListView line height is much larger
Replies: 8
Views: 3598

Re: 6.10b8 ListView line height is much larger

I'm using the latest PB release (6.10) and the large vertical spacing in the ListViewGadget is still evident.
Is anyone else seeing this? Or am I missing something?

ATB
Dave
by HarrysLad
Wed Oct 25, 2023 1:06 pm
Forum: Coding Questions
Topic: Adding item in SubMenu closed [Resolved]
Replies: 13
Views: 1992

Re: Adding item in SubMenu closed [Resolved]

Normeus :
Thanks for that. Everything I needed and now, after a bit of fiddling, it's working fine. :D
I don't often use these API functions - and I hate to include code that I don't understand - so, for reference, could you explain the constant terms in your solution and/or tell me where such ...
by HarrysLad
Tue Oct 24, 2023 7:29 pm
Forum: Coding Questions
Topic: Adding item in SubMenu closed [Resolved]
Replies: 13
Views: 1992

Re: Adding item in SubMenu closed [Resolved]

AZJIO:

You can attach one menu to another and only update one attached menu.

Thanks for the response but it doesn't seem to help much. My understanding of the way Windows does things is practically negative.

What I'm trying to do is insert a variable number (1 to 20) of items dynamically into a ...
by HarrysLad
Tue Oct 24, 2023 2:38 pm
Forum: Coding Questions
Topic: Adding item in SubMenu closed [Resolved]
Replies: 13
Views: 1992

Re: Adding item in SubMenu closed [Resolved]

RASHAD:

Your code shown earlier has helped a lot with my latest Windows-based problems. I can now insert and remove submenu items successfully but a problem remains...

Given the line (say) "InsertMenu_(hSubmenu_2,5,#MF_BYPOSITION|#MF_POPUP,hSubmenu,"Title_2")"

How do I find the associated ID of ...
by HarrysLad
Sat Sep 23, 2023 9:33 am
Forum: Linux
Topic: ImageResize()
Replies: 5
Views: 2624

Re: ImageResize()


You are using a canvas to show the image ?

Draw the Image directly on it....

If there is a bug in ResizeImage... you can try : DrawImage(ImageID, x, y, w, h) to resize it on the Canvas direct....


Cheers Bisonte, that's exactly the workaround that I needed.
For reference, this works on all ...
by HarrysLad
Fri Sep 22, 2023 8:34 pm
Forum: Linux
Topic: ImageResize()
Replies: 5
Views: 2624

Re: ImageResize()

I've just noticed that ResizeImage() doesn't work although it was reported as a possible bug way back in 2004. ResizeImage() works as expected on both MacOS and Windows.

I'm using PB 6.01 on Ubuntu 20.04

Is there any chance of a fix or could someone suggest a workaround?
If OpenWindow(0, 0, 0 ...
by HarrysLad
Tue Mar 14, 2023 8:28 am
Forum: Mac OSX
Topic: Is it possible to prevent ListViewGadget Scrolling?
Replies: 2
Views: 682

Re: Is it possible to prevent ListViewGadget Scrolling?

Many thanks wombats. That works for me. :D

Dave
by HarrysLad
Sun Mar 12, 2023 1:59 pm
Forum: Mac OSX
Topic: Is it possible to prevent ListViewGadget Scrolling?
Replies: 2
Views: 682

Is it possible to prevent ListViewGadget Scrolling?

With the ListViewGadget, is it possible to prevent horizontal scrolling?
I know how to hide the scrollbar but it's all too easy to inadvertently scroll sideways with a trackpad or Magic Mouse and this gives me problems when displaying a table.

Dave
by HarrysLad
Sun Feb 05, 2023 7:13 pm
Forum: Coding Questions
Topic: Colouring the static-field in an un-editable ComboBox
Replies: 13
Views: 6014

Re: Colouring the static-field in an un-editable ComboBox

An old thread but ...
Is it possible to set the foreground and/or background colours of a ComboBoxGadget?
This is not usually a problem but on one of my apps (and in Dark-Mode) I get a white foreground on a white background!

{edit:] this is on macOS. I should have mentioned that. :oops:

Dave
by HarrysLad
Sun Dec 18, 2022 4:41 pm
Forum: Linux
Topic: Ignoring Dark Mode
Replies: 8
Views: 1465

Re: Ignoring Dark Mode

Thanks for that mk-soft but it doesn't seem to be working on my Ubuntu 20.04 setup.
If the system dark-mode is off the the buttons toggle the app's mode between dark and light as expected.
However, if the system's dark-mode is on then the buttons do nothing (i.e., the dark-mode remains on).
Any ideas?
by HarrysLad
Thu Nov 17, 2022 11:12 pm
Forum: Linux
Topic: Ignoring Dark Mode
Replies: 8
Views: 1465

Re: Ignoring Dark Mode

Nice. Very nice. :D
Thanks for that.
by HarrysLad
Thu Nov 17, 2022 10:27 pm
Forum: Linux
Topic: Ignoring Dark Mode
Replies: 8
Views: 1465

Re: Ignoring Dark Mode

mk-soft,

Thanks for the swift response.
You may have misread my first post. I'm not trying to apply Dark Mode globally, I'm trying to ignore Dark Mode locally!

I just removed the "Debug" reference and changed the
"*Theme = UTF8(ThemeName + "-dark ")" line
to
"*Theme = UTF8(ThemeName + " -light ...
by HarrysLad
Thu Nov 17, 2022 7:21 pm
Forum: Linux
Topic: Ignoring Dark Mode
Replies: 8
Views: 1465

Ignoring Dark Mode

I have an app that runs on Windows, macOS and Linux.
Unfortunately, neither the macOS nor the Linux versions play well with Dark Mode. :x
I've found out how to disable/ignore Dark Mode in macOS but does anyone know of a solution for Linux (Ubuntu)?
by HarrysLad
Mon Aug 13, 2018 10:25 am
Forum: Linux
Topic: Transparent window in linux
Replies: 21
Views: 9663

Re: Transparent window in linux

Unfortunately the situation is complicated regarding the many different Linux distributions and desktop environments. I have tested my last example on 12 different Linux distributions:

Distribution Desktop GTK2 GTK3
Bodhi Linux 4.5.0 Moksha - -
Fedora 27 x86 Gnome 3 Error -


Yeah, I appreciate ...