Code: Select all
Global wnd,ctrl
wnd=OpenWindow(#PB_Any,0,0,400,300,"Window",#PB_Window_ScreenCentered)
ctrl=TextGadget(#PB_Any,0,0,400,300,"")
Debug ctrl
Debug GadgetID(ctrl)
Debug GetDlgCtrlID_(GadgetID(ctrl))
Tested on Windows 10 x64, PB x64 6.00 Alpha 5 ASM.
Edit: Works with 32 Bit Compiler, so maybe a problem with return value (.l instead of .i)?