Posted: Tue Jan 04, 2005 8:50 am
Library update
- new function PureRESIZE_SetWindowMaximumSize()
- new function PureRESIZE_SetWindowMaximumSize()
http://www.purebasic.com
https://www.purebasic.fr/english/
Here is some infos to help youPureRESIZE_SetWindowMonitoring( WindowNumber, #PureRESIZE_Monitoring_DontDrawContent )
Code: Select all
;*******************************************
; READ ME
;uncomment this line if you dont want to force the Full-Drawing mode :
;*******************************************
;SystemParametersInfo_( #SPI_SETDRAGFULLWINDOWS, 1, 0, #SPIF_SENDWININICHANGE)
;
;Get state of Full-Drawing mode
Global CurrentDrawMode
Global DrawLocked
SystemParametersInfo_( #SPI_GETDRAGFULLWINDOWS, 0, @CurrentDrawMode, 0) ;-> CurrentDrawMode=1
#WM_CAPTURECHANGED=$215
Procedure CB(Window, Message, wParam, lParam)
Result = #PB_ProcessPureBasicEvents
If Window=WindowID(0)
Select Message
Case #WM_NCLBUTTONDOWN
If DrawLocked=0
;disable full-drawing mode
SystemParametersInfo_( #SPI_SETDRAGFULLWINDOWS, 0, 0, #SPIF_SENDWININICHANGE)
Debug "disable"
DrawLocked=1
EndIf
Case #WM_CAPTURECHANGED
Debug "capture changed"
If DrawLocked And lParam<>Window
;restore full-drawing mode
SystemParametersInfo_( #SPI_SETDRAGFULLWINDOWS, CurrentDrawMode, 0, #SPIF_SENDWININICHANGE )
Debug "enable"
DrawLocked=0
EndIf
EndSelect
EndIf
ProcedureReturn Result
EndProcedure
If OpenWindow(0,100,100,200,200,#PB_Window_SystemMenu|#PB_Window_SizeGadget,"No Drawing") And CreateGadgetList(WindowID(0))
OpenWindow(1,400,100,200,200,#PB_Window_SystemMenu|#PB_Window_SizeGadget,"Full Drawing") And CreateGadgetList(WindowID(0))
SetWindowCallback(@CB())
Repeat : Until WaitWindowEvent()=#PB_Event_CloseWindow
EndIf
Ok, I will see what I can do ; I am not sure it is compatible with the actual library code.eddy wrote:My purpose is to remove a flickering source.
I need a flag #PureRESIZE_Monitoring_DontDrawContent for this command:PureRESIZE_SetWindowMonitoring( WindowNumber, #PureRESIZE_Monitoring_DontDrawContent )
It's true, this code should be in PureRESIZE_CallBack.gnozal wrote:Ok, I will see what I can do ; I am not sure it is compatible with the actual library code.
Code: Select all
PureRESIZE_HideWindowResizing(WindowNumber.l, flag.l
- #TRUE
- #FALSE
)
Thankssrod wrote:You should make some of your work 'donation-ware' you know, considering how many of us are using your excellent tools.
Either way, happy xmas.
Yes. Like in the two other libs (PureCOLOR and PureLVSORT), I did a lot of subclassing. I just hope it works as beforesrod wrote:{How'd you remove the callback by the way? I presume you're linking your own callback in somewhere along the line! -Just being nosey!}
Great! gnozal, i love you!gnozal wrote:No more Callback needed
ThanksKiffi wrote:Great! gnozal, i love you!
No, I don't. I don't need to make money with programming, I am not a professional programmer, it's more a hobby.Kiffi wrote:Do you have a paypal-Account?Greetings ... Kiffi