Taskbar help

Just starting out? Need help? Post your questions and find answers here.
Large
User
User
Posts: 56
Joined: Tue Apr 29, 2003 8:24 pm

Taskbar help

Post by Large »

Hi Guys and Gals,

Just a quick one, What do I need to add to the code below to stop the application from showing on the taskbar ?

I have searched the forum first but I could not make the examples work !

Code: Select all

win = OpenWindow(0, ScreenWidth()-250, ScreenHeight()-170, 220, 86, #PB_Window_BorderLess, "Database Test") 

CreateGadgetList(win) 
WebGadget(0,0,0,220,100,"http://server/intranet/check/check.php")

Repeat 
Select WaitWindowEvent()
Case #PB_EventGadget; check for a pushed button
Case 1 ; #PB_EventCloseWindow
Quit = 1
EndSelect   
Until Quit = 1
Thanks in advance.

Andy ( aka Large )
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Taskbar help

Post by PB »

Did you try the example shown in the FAQ? Take a look:

viewtopic.php?t=4876

I don't think you did, because your code example doesn't
contain any of the code from the FAQ's example... :wink:
Large
User
User
Posts: 56
Joined: Tue Apr 29, 2003 8:24 pm

Re: Taskbar help

Post by Large »

I have searched the forum first but I could not make the examples work !
I have tried the example just like I said, their is no example code in my code because I was asking for help in adjusting my original code.

Can you help or not ?

Perhaps one of you kind PB people could adjust my code for me.

Kind regards

Andy ( aka Large )
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Taskbar help

Post by PB »

> Can you help or not ?

Yep. I already did, by pointing out how to do it as the FAQ says.

> Perhaps one of you kind PB people could adjust my code for me.

I'm just as kind as anyone else. Here's your amended code, changed
as per the FAQ's instructions. It does exactly what you want -- no button
in the Taskbar for your window.

Code: Select all

win = OpenWindow(0, ScreenWidth()-250, ScreenHeight()-170, 219, 85, #PB_Window_Invisible|#PB_Window_BorderLess, "Database Test") 
SetWindowLong_(WindowID(),#GWL_EXSTYLE,#WS_EX_TOOLWINDOW)
ResizeWindow(220,86) : ShowWindow_(WindowID(),#SW_SHOW)

CreateGadgetList(win) 
WebGadget(0,0,0,220,100,"http://server/intranet/check/check.php") 

Repeat 
  Select WaitWindowEvent() 
    Case #PB_EventGadget; check for a pushed button 
    Case 1 ; #PB_EventCloseWindow 
    Quit = 1 
  EndSelect    
Until Quit = 1
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

viewtopic.php?t=4865

Look right there, the 2 lines after openwindow() looks like what you need.
-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
Large
User
User
Posts: 56
Joined: Tue Apr 29, 2003 8:24 pm

Post by Large »

Thanks PB,

Sorry if my last post sounded rude, its just sometimes people point back to exactly where you have already looked, I had tried the examples as I said in my first post and could not get them to work.

I'm a novice at PB, now if it were PHP or MySQL, there would be no problem because I know those languages back to front, well almost, LOL !

Your second post was just what I wanted, very kind indeed !

Thank you so much ! :D

Kind regards

Andy ( aka Large )
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

> Sorry if my last post sounded rude

It's okay. :)

> Your second post was just what I wanted, very kind indeed !

No problem.
Post Reply