How to ignore "Minimize all" (in Taskbar)

Just starting out? Need help? Post your questions and find answers here.
Phantomas
User
User
Posts: 96
Joined: Wed Jul 01, 2009 12:59 pm

How to ignore "Minimize all" (in Taskbar)

Post by Phantomas »

Hello, how my window to ignore "Minimize all" (Windows Explorer Command)?
StickyWindow() — does not suit.

Image

Is it possible? Thanks...
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

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

Post 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.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Post 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...
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Post 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
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
Post Reply