Page 1 of 1
Requester positioning
Posted: Wed Jun 21, 2006 7:06 pm
by Joakim Christiansen
I want to be able to select where the requester box will be positioned, for example in the center of my window...
Make a flag called #PB_Requester_WindowCentered or something

Posted: Wed Jun 21, 2006 7:27 pm
by Joakim Christiansen
And btw, is it possible to force the requester to be on top?
Run this code and you'll never see it (which I think could be a bug?), have debugger enabled so you can kill it:
Code: Select all
OpenWindow(0,#False,#False,200,200,"1",#PB_Window_SystemMenu)
OpenWindow(1,#False,#False,400,200,"2",#PB_Window_SystemMenu|#PB_Window_ScreenCentered)
StickyWindow(1,1)
CreateGadgetList(WindowID(0))
ButtonGadget(0,20,20,100,20,"Press me")
Repeat
Select WaitWindowEvent()
Case #PB_Event_Gadget
If EventGadget() = 0
;StickyWindow(1,0) This will fix it
;SetActiveWindow(1) And this will fix it
MessageRequester("You can't see me!",":(")
EndIf
Case #PB_Event_CloseWindow
Break
EndSelect
ForEver
Posted: Wed Jun 21, 2006 7:50 pm
by Trond
That's a bug.
Posted: Thu Jun 22, 2006 5:19 am
by fsw
Joakim Christiansen wrote:And btw, is it possible to force the requester to be on top?
Use #MB_TOPMOST = $40000 as flag.
Posted: Thu Jun 22, 2006 9:31 pm
by Joakim Christiansen
fsw wrote:Joakim Christiansen wrote:And btw, is it possible to force the requester to be on top?
Use #MB_TOPMOST = $40000 as flag.
Thank you!

And I actually think it should be default for all of them...
EDIT: Damn, the input requester don't have a flag parameter.