Page 1 of 1

Set Requester Position

Posted: Wed Jun 25, 2003 9:30 pm
by eddy
Example :

Code: Select all

   GetCursorPos_(@pt.POINT)
   SetRequesterPosition(pt\X,pt\Y)
   c = ColorRequester()
Procedure :

Code: Select all

#WINDOW_Requester=255

; /////////////////////
; Set position
; /////////////////////

Procedure SetRequesterPosition(x,y)
   ;create the invisible window which defines the position of requester
   If WindowID(#WINDOW_Requester)=0       
      OpenWindow(#WINDOW_Requester,x,y,0,0,#PB_Window_BorderLess|#PB_Window_Invisible,"Temp Hidden Window",WindowID())
   EndIf 

   If WindowID(#WINDOW_Requester)        
      UseWindow(#WINDOW_Requester)
      MoveWindow(x,y)   
   EndIf 
EndProcedure 
other solutions :
- viewtopic.php?t=6680
- viewtopic.php?t=6278

Re: Set Requester Position

Posted: Thu Jun 26, 2003 7:40 am
by PB
Nice tip, Eddy. :D Works well with all requesters.