IPAddressGadget Bug

Windows specific forum
User avatar
manu
User
User
Posts: 33
Joined: Tue May 13, 2003 12:40 pm
Location: Germany
Contact:

IPAddressGadget Bug

Post by manu »

Hi!

I compiled an old program of mine with PB 6.21 x64.
The IPAddressGadget does not work as expected any more. You can only enter 2-digit IPs, not 3-digit,
when you try to enter a third digit like in 127, you just get a "bing".
I then found out that it depends on the width of the gadget. If it is too narrow, the bug happens.
It worked before with the same widget size, but it was some 5.x version of PB.

This is straight from the IPAddressGadget help, I just changed the width to the 110 pixels (in my old program is was even 100 pixels).

Code: Select all

If OpenWindow(0, 0, 0, 180, 50, "IPAddressGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
    IPAddressGadget(0, 10, 15, 110, 20)
    SetGadgetState(0, MakeIPAddress(127, 0, 0, 1))
    Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
When you remove the 7 from 127, you cannot re-enter it.
User avatar
NicTheQuick
Addict
Addict
Posts: 1536
Joined: Sun Jun 22, 2003 7:43 pm
Location: Germany, Saarbrücken
Contact:

Re: IPAddressGadget Bug

Post by NicTheQuick »

Hm, on Linux it works but it also seems just to be simple StringGadget with only numbers and dots allowed. You can type anything into 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
mk-soft
Always Here
Always Here
Posts: 6390
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: IPAddressGadget Bug

Post by mk-soft »

It's probably been like this for a long time.
Even not PB v5.73 it does not work if the gadget is too narrow.
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
Fred
Administrator
Administrator
Posts: 18383
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: IPAddressGadget Bug

Post by Fred »

It's a Windows issue as we use the standard IP control
User avatar
mk-soft
Always Here
Always Here
Posts: 6390
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: IPAddressGadget Bug

Post by mk-soft »

Windows works perfect :mrgreen:
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
Mindphazer
Enthusiast
Enthusiast
Posts: 506
Joined: Mon Sep 10, 2012 10:41 am
Location: Savoie

Re: IPAddressGadget Bug

Post by Mindphazer »

Indeed :lol:
MacBook Pro 16" M4 Pro - 24 Gb - MacOS 26.1 - Iphone 17 Pro Max - iPad at home
...and unfortunately... Windows at work...
Post Reply