Page 2 of 11

Posted: Tue Jan 04, 2005 8:50 am
by gnozal
Library update
- new function PureRESIZE_SetWindowMaximumSize()

Posted: Fri Feb 25, 2005 8:43 am
by gnozal
Library update
- fixed : in some cases, some gadgets didn't resize correctly, because some #WM_SIZE events were lost in the callback (bug ?). I have added a hack to correct this.
- new : PureRESIZE_SizeWindow() to manually resize a window.

To download, see first post of thread

Posted: Tue Aug 02, 2005 10:35 am
by gnozal
Library update

Changes :
- renamed SizeWindow() to ResizeWindowNow()
- new optional parameter ParentGadget for PureRESIZE_SetGadgetResize()
By default, the gadget is resized when his window is resized. If a parent gadget is specified, the gadget is resized when the parent gadget is resized.
This is very usefull when working with container and splitter gadgets (see example file 4).

Download :
http://people.freenet.de/gnozal/PureRESIZE.zip

A big Thanks

Posted: Sat Aug 06, 2005 12:53 am
by Ziltch
This lib is such a great time saver.

Thank you for making it and sharing it !!!

I am using it in a editor that I am writting for PB/B3D and BMax.

Keep up the wonderful work.

new request

Posted: Thu Sep 01, 2005 12:55 am
by eddy
My purpose is to remove a flickering source.
I need a flag #PureRESIZE_Monitoring_DontDrawContent for this command:
PureRESIZE_SetWindowMonitoring( WindowNumber, #PureRESIZE_Monitoring_DontDrawContent )
Here is some infos to help you

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



Thx in advance :wink: :wink: :wink:

Re: new request

Posted: Thu Sep 01, 2005 8:06 am
by gnozal
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 )
Ok, I will see what I can do ; I am not sure it is compatible with the actual library code.
About the flickering : I had to add some RedrawWindow_() and other dirty tricks in the code because in some situations the window wasn't redrawn and/or some gadgets weren't resized, at least with the older PB versions.

Re: new request

Posted: Fri Sep 02, 2005 2:59 am
by eddy
gnozal wrote:Ok, I will see what I can do ; I am not sure it is compatible with the actual library code.
It's true, this code should be in PureRESIZE_CallBack.
You could add a new command like this :

Code: Select all

PureRESIZE_HideWindowResizing(WindowNumber.l, flag.l
- #TRUE 
- #FALSE
)

Posted: Wed Sep 28, 2005 1:25 pm
by gnozal
Library update

Changes :
- fixed PureRESIZE_SetWindowMaximumSize(), wich was broken since a few updates ;
- changed resize code : removed some old useless (I hope !) code; less RedrawWindow_() calls, so hopefully less flicker.

Posted: Tue Dec 20, 2005 3:05 pm
by gnozal
Update

No more Callback needed

Posted: Tue Dec 20, 2005 4:09 pm
by srod
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.

{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! :D }

Posted: Tue Dec 20, 2005 6:03 pm
by gnozal
srod 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.
Thanks :D
srod 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! :D }
Yes. Like in the two other libs (PureCOLOR and PureLVSORT), I did a lot of subclassing. I just hope it works as before :?

Posted: Tue Dec 20, 2005 7:19 pm
by Kiffi
gnozal wrote:No more Callback needed
Great! gnozal, i love you! :D

Do you have a paypal-Account?

Greetings ... Kiffi

Posted: Tue Dec 20, 2005 7:30 pm
by rsts
Quiet - genious at work.

(Many thanks gnozal)

Posted: Wed Dec 21, 2005 8:48 am
by gnozal
Kiffi wrote:Great! gnozal, i love you! :D
Thanks :lol:
Kiffi wrote:Do you have a paypal-Account?Greetings ... Kiffi
No, I don't. I don't need to make money with programming, I am not a professional programmer, it's more a hobby.

Posted: Wed Dec 21, 2005 9:07 am
by Flype
like always, thanks a lot Gnozal for your work 8)