Page 1 of 1

[Feature request] InLine-JS and #PB_Any

Posted: Sat Feb 15, 2025 5:10 pm
by Caronte3D
This works (without #PB_Any):

Code: Select all

Define buttonGadget = ButtonGadget(0, 10, 100, 100,100,"Click Me")
! $(v_buttonGadget.div).css("zIndex", 200);
This doesn't work: (with #PB_Any):

Code: Select all

Define buttonGadget = ButtonGadget(#PB_Any, 10, 100, 100,100,"Click Me")
! $(v_buttonGadget.div).css("zIndex", 200);

Re: [Feature request] InLine-JS and #PB_Any

Posted: Fri Oct 17, 2025 3:37 pm
by Fred
You can use GadgetID() to always get the internal PB object regardless of the used id mode.