Make a flag called #PB_Requester_WindowCentered or something
Requester positioning
- Joakim Christiansen
- Addict

- Posts: 2452
- Joined: Wed Dec 22, 2004 4:12 pm
- Location: Norway
- Contact:
Requester positioning
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
Make a flag called #PB_Requester_WindowCentered or something
I like logic, hence I dislike humans but love computers.
- Joakim Christiansen
- Addict

- Posts: 2452
- Joined: Wed Dec 22, 2004 4:12 pm
- Location: Norway
- Contact:
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:
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
Last edited by Joakim Christiansen on Wed Jun 21, 2006 8:26 pm, edited 1 time in total.
I like logic, hence I dislike humans but love computers.
- Joakim Christiansen
- Addict

- Posts: 2452
- Joined: Wed Dec 22, 2004 4:12 pm
- Location: Norway
- Contact:
Thank you!fsw wrote:Use #MB_TOPMOST = $40000 as flag.Joakim Christiansen wrote:And btw, is it possible to force the requester to be on top?
And I actually think it should be default for all of them...
EDIT: Damn, the input requester don't have a flag parameter.
I like logic, hence I dislike humans but love computers.
