[Resolved] #PB_Event_MaximizeWindow

Windows specific forum
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

[Resolved] #PB_Event_MaximizeWindow

Post 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?
Last edited by IdeasVacuum on Fri Nov 30, 2012 12:13 am, edited 1 time in total.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
User avatar
Kiffi
Addict
Addict
Posts: 1510
Joined: Tue Mar 02, 2004 1:20 pm
Location: Amphibios 9

Re: #PB_Event_MaximizeWindow

Post 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
Hygge
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

[Resolved] Re: #PB_Event_MaximizeWindow

Post 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.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
Post Reply