Page 1 of 1
Taskbar help
Posted: Thu Jun 26, 2003 12:02 pm
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 )
Re: Taskbar help
Posted: Thu Jun 26, 2003 2:14 pm
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...

Re: Taskbar help
Posted: Thu Jun 26, 2003 3:00 pm
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 )
Re: Taskbar help
Posted: Thu Jun 26, 2003 3:13 pm
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
Posted: Thu Jun 26, 2003 3:36 pm
by Karbon
viewtopic.php?t=4865
Look right there, the 2 lines after openwindow() looks like what you need.
Posted: Thu Jun 26, 2003 4:25 pm
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 !
Kind regards
Andy ( aka Large )
Posted: Thu Jun 26, 2003 11:38 pm
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.