Page 1 of 1

[Resolved] #PB_Event_MaximizeWindow

Posted: Thu Nov 29, 2012 10:11 pm
by IdeasVacuum
I have a loop where WaitWindowEvent() never fires #PB_Event_MaximizeWindow or #PB_Event_RestoreWindow.

#PB_Event_CloseWindow, #PB_Event_Gadget are working fine. As does #WM_SIZE and #WM_EXITSIZEMOVE.

Question - what are the Win API equivalents of the #PB_Event_MaximizeWindow and #PB_Event_RestoreWindow events?

Re: #PB_Event_MaximizeWindow

Posted: Thu Nov 29, 2012 11:04 pm
by Kiffi
IdeasVacuum wrote:I have a loop where WaitWindowEvent() never fires #PB_Event_MaximizeWindow or #PB_Event_RestoreWindow.
works fine here:

Code: Select all

OpenWindow(0, 0, 0, 230, 90, "", #PB_Window_SystemMenu | #PB_Window_ScreenCentered | #PB_Window_MaximizeGadget)

Repeat
	Select WaitWindowEvent()
		Case #PB_Event_MaximizeWindow
			Debug "#PB_Event_MaximizeWindow"
		Case #PB_Event_RestoreWindow
			Debug "#PB_Event_RestoreWindow"
		Case #PB_Event_CloseWindow
			Break	
	EndSelect
ForEver
Greetings ... Kiffi

[Resolved] Re: #PB_Event_MaximizeWindow

Posted: Thu Nov 29, 2012 11:55 pm
by IdeasVacuum
yup, I did exactly that to check my code before posting!

I have discovered the issue was caused by the CallBack of a separate (inactive whilst hidden) Window. Now, that's not been an issue before but at least I know and it's easy to fix.