maybe somebody could help me.
I have a transparent window with a timer that periodically scan what is the
layer where the mouse is with WhichLayer.
If transparency level > 17, the layer is well detected. both on gadget or in
backgound of the window (spacer areas or transparent buttons area).
If transparency <=17 the layer is well detected over the gadgets BUT not
detected on the background of the window.
In this last case, the detected layer is the one from window behind my window (other window or Workbench
screen)
Is somebody know if it's normal ?
I create my window with
Code: Select all
SetRast(&alphaRP, TRANSPARENT_LEVEL); // TRANSPARENT_LEVEL is from 0 (transparent) to 255 (opaque)
Code: Select all
LockLayerInfo(&screen->LayerInfo);
myLayer = WhichLayer(&(screen->LayerInfo),x,y);
UnlockLayerInfo(&screen->LayerInfo);
Thank you by advance
Guillaume