Page 1 of 1

How to ignore "Minimize all" (in Taskbar)

Posted: Tue Jul 21, 2009 7:21 am
by Phantomas
Hello, how my window to ignore "Minimize all" (Windows Explorer Command)?
StickyWindow() — does not suit.

Image

Is it possible? Thanks...

Re: How to ignore "Minimize all" (in Taskbar)

Posted: Tue Jul 21, 2009 11:45 am
by PB
I don't know if you can, by design. When Windows is instructed to minimize
all, then that's what it does. I don't think individual apps have any say in it.
What you can do is note when your app gets minimized, and just restore it.

Posted: Tue Jul 21, 2009 4:25 pm
by Rook Zimbabwe
There is a way to turn off the minimize button in the window creatiuon... I am at work a\or I would tag that line...

Posted: Tue Jul 21, 2009 4:37 pm
by Rook Zimbabwe
In your program you can control this somewhat:

Code: Select all

; PureBasic Visual Designer v3.95 build 1485 (PB4Code)


;- Window Constants
;
Enumeration
  #Window_0
EndEnumeration

;- Gadget Constants
;
Enumeration
  #Button_0
  #String_0
  #Tree_0
EndEnumeration


Procedure Open_Window_0()
  If OpenWindow(#Window_0, 216, 0, 259, 300, "New window ( 0 )",  #PB_Window_SystemMenu | #PB_Window_TitleBar | #PB_Window_ScreenCentered )
    If CreateGadgetList(WindowID(#Window_0))
      ButtonGadget(#Button_0, 20, 40, 190, 30, "")
      StringGadget(#String_0, 20, 80, 190, 20, "")
      TreeGadget(#Tree_0, 20, 120, 190, 140)
      
    EndIf
  EndIf
EndProcedure



Open_Window_0()

Repeat ; Start of the event loop
  
  Event = WaitWindowEvent() ; This line waits until an event is received from Windows
  
  WindowID = EventWindow() ; The Window where the event is generated, can be used in the gadget procedures
  
  GadgetID = EventGadget() ; Is it a gadget event?
  
  EventType = EventType() ; The event type
  
  ;You can place code here, and use the result as parameters for the procedures
  
  If Event = #PB_Event_Gadget
  
    
  EndIf
  
Until Event = #PB_Event_CloseWindow ; End of the event loop

End