DisableGadget not worked

Linux specific forum
User avatar
rndrei
Enthusiast
Enthusiast
Posts: 154
Joined: Thu Dec 28, 2023 9:04 pm

DisableGadget not worked

Post by rndrei »

It doesn't work! Ubuntu 24.04

Code: Select all

 If OpenWindow(0, 0, 0, 250, 105, "Disable/enable buttons...", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
    ButtonGadget(0, 10, 15, 230, 30, "Disabled Button") : DisableGadget(0, #True)
    ButtonGadget(1, 10, 60, 230, 30, "Enabled Button") : DisableGadget(1, #False)
    Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
  EndIf

// Moved from "Bugs - Linux" to "OS Specific/Linux" (Kiffi)
User avatar
moulder61
Enthusiast
Enthusiast
Posts: 193
Joined: Sun Sep 19, 2021 6:16 pm
Location: U.K.

Re: DisableGadget not worked

Post by moulder61 »

It seems to work OK for me in Void Linux. I'm using PB 6.11 LTS Beta 2 at the moment.
Just tried it in 6.20 and that seems to work OK too.

Moulder.
Last edited by moulder61 on Fri Mar 14, 2025 6:26 pm, edited 1 time in total.
"If it ain't broke, fix it until it is!

This message is brought to you thanks to SenselessComments.com

My PB stuff for Linux: "https://u.pcloud.link/publink/show?code ... z3MR0T3jyV
Fred
Administrator
Administrator
Posts: 18220
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: DisableGadget not worked

Post by Fred »

It works on Ubuntu 24.04, can anybody else confirm ?
User avatar
NicTheQuick
Addict
Addict
Posts: 1519
Joined: Sun Jun 22, 2003 7:43 pm
Location: Germany, Saarbrücken
Contact:

Re: DisableGadget not worked

Post by NicTheQuick »

Works with Purebasic 6.12 on Ubuntu 24.04 LTS.
The english grammar is freeware, you can use it freely - But it's not Open Source, i.e. you can not change it or publish it in altered way.
ColeopterusMaximus
User
User
Posts: 66
Joined: Fri Oct 29, 2010 11:29 am

Re: DisableGadget not worked

Post by ColeopterusMaximus »

Works fine on Arch Linux PB 6.20
User avatar
Mijikai
Addict
Addict
Posts: 1520
Joined: Sun Sep 11, 2016 2:17 pm

Re: DisableGadget not worked

Post by Mijikai »

Works on Linux Debian 12 (PB 6.20)
User avatar
mk-soft
Always Here
Always Here
Posts: 6246
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: DisableGadget not worked

Post by mk-soft »

Works here ...

Mint Linux LMDE6, Ubuntu 24.04
PB v6.12, v6.20

I no longer use Ubuntu 24.04, as it no longer runs as stable as the previous versions as a VM.
GUI problems and performance has deteriorated.
I only rarely use it to test things here.
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
User avatar
rndrei
Enthusiast
Enthusiast
Posts: 154
Joined: Thu Dec 28, 2023 9:04 pm

Re: DisableGadget not worked

Post by rndrei »

Yes, I tried it on another machine, everything works! It's something with my operating system!
User avatar
rndrei
Enthusiast
Enthusiast
Posts: 154
Joined: Thu Dec 28, 2023 9:04 pm

Re: DisableGadget not worked

Post by rndrei »

I figured it out, the post can be deleted!
User avatar
NicTheQuick
Addict
Addict
Posts: 1519
Joined: Sun Jun 22, 2003 7:43 pm
Location: Germany, Saarbrücken
Contact:

Re: DisableGadget not worked

Post by NicTheQuick »

rndrei wrote: Sun Mar 16, 2025 11:49 am I figured it out, the post can be deleted!
Just explain what you did wrong, so others can learn from it.
The english grammar is freeware, you can use it freely - But it's not Open Source, i.e. you can not change it or publish it in altered way.
User avatar
rndrei
Enthusiast
Enthusiast
Posts: 154
Joined: Thu Dec 28, 2023 9:04 pm

Re: DisableGadget not worked

Post by rndrei »

For some reason I thought that when I press the disable button, the enable button will become active! :oops:
Post Reply