Invisible controls

Everything else that doesn't fall into one of the other PB categories.
Edwin Knoppert
Addict
Addict
Posts: 1073
Joined: Fri Apr 25, 2003 11:13 pm
Location: Netherlands
Contact:

Invisible controls

Post by Edwin Knoppert »

This doesn't work:

Code: Select all


If OpenWindow(0, 0, 0, 220, 200, #PB_Window_SystemMenu|#PB_Window_Screencentered,"CalendarGadget()") 
    If CreateGadgetList(WindowID()) 
      CalendarGadget(0, 10, 10, 200, 180, 0, #PB_WindowInvisible) 
      Repeat: Until WaitWindowEvent() = #PB_Event_CloseWindow 
    EndIf 
  EndIf

Wanted to create an invisible control.
Currently using:

Code: Select all

Global id.l


If OpenWindow(0, 0, 0, 220, 200, #PB_Window_SystemMenu|#PB_Window_Screencentered,"CalendarGadget()") 
    If CreateGadgetList(WindowID()) 

      id = CalendarGadget(#PB_ANY, 10, 10, 200, 180) 
      ShowWindow_( GetDlgItem_( WindowID(), id ), #SW_HIDE )
      
      Repeat: Until WaitWindowEvent() = #PB_Event_CloseWindow 
    EndIf 
  EndIf


ebs
Enthusiast
Enthusiast
Posts: 561
Joined: Fri Apr 25, 2003 11:08 pm

Post by ebs »

Edwin,

Doesn't HideGadget() work with the Calendar Gadget?

Eric
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

HideGadget() does work, I use it all over several programs.
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
Edwin Knoppert
Addict
Addict
Posts: 1073
Joined: Fri Apr 25, 2003 11:13 pm
Location: Netherlands
Contact:

Post by Edwin Knoppert »

O ok, was actually looking for a flag :)
But this will do.

Thanks,
Fred
Administrator
Administrator
Posts: 18350
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

Just a side note, only #PB_Gadget_xxx flags are valid for gadgets flags.
Post Reply