I have a webBrowser gadget inside a Window gadget. I am trying to get the webBrowser child to resize when the Window parent is resized. I searched through the forums, but didn't find an answer to this.
Here's the setup:
global winInventory
global webInventory
winInventory=createWindow(screen width() - 311,screen height() - 321,300,310,"",WINDOW_NOBORDER + WINDOW_RESIZEABLE,0,0,0)
webInventory = createWebBrowser(0,0,gadgetWidth(winInventory)-20,gadgetHeight(winInventory)-20,winInventory)
Here's the event detection:
Edit: I know for sure the event is being detected properly, as I added a text message and a wait key in the resize function, so I know it gets called on a resize
function guiProcessEvents()
repeat
REM --------------------
REM START PROCESS EVENTS
REM --------------------
getEvent
handle = eventSource()
gadgetText$ = getGadgetText(handle)
evtType = eventType()
if evtType = GADGET_SIZE or evtType = GADGET_SIZING
guiResizeInventory()
endif
REM ------------------
REM END PROCESS EVENTS
REM ------------------
until eventType()=0
endfunction
...and here's the resize function:
function guiResizeInventory()
setGadget webInventory, 0, 0, gadgetClientWidth(winInventory)-20, gadgetClientHeight(winInventory)-20
endfunction
Attached is a screenshot of what happens - the webBrowser doesn't get resized


I'm using BlueGUI v2.054