Go Back   CodingForums.com > :: Computing & Sciences > Computer Programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-29-2012, 03:46 PM   PM User | #1
Artyboy2011
New Coder

 
Join Date: Nov 2011
Location: London
Posts: 31
Thanks: 5
Thanked 1 Time in 1 Post
Artyboy2011 is an unknown quantity at this point
Taskbar toolbar with popup window C++

How can i make a taskbar toolbar that has a popup window when clicked? Sort of like apples itunes toolbar (seen here... http://gilsmethod.wpengine.netdna-cd...ws-taskbar.png).
Artyboy2011 is offline   Reply With Quote
Old 02-29-2012, 08:21 PM   PM User | #2
crank01
New Coder

 
crank01's Avatar
 
Join Date: Jan 2011
Posts: 96
Thanks: 10
Thanked 2 Times in 2 Posts
crank01 is an unknown quantity at this point
hey artyboy2011, I believe you could make what apple's itunes have made by hiding the icon, in Visual Studio its simple; ShowIcon False under form properties.

Then set the windows form to be completely transparent like so:
Code:
public:
   void MakeSeeThru()
   {
      frmTransparentForm->Opacity = 1;
   }
Then you can adjust where you would like the form's start position to be, and since you would like it always on the taskbar you can try this(fiddle around with the location tho:
Code:
Form1->Location = Point(900, 900);
To make your form appear over the taskbar you'll need to set the TopMost property to True. In VS its easy, but u can do:
Code:
Form->TopMost = true;
I hope I helped you I should try writing something like this in C#, I think it'll be interesting to make my own toolbar.
__________________
.............-#-----....../|\......----'-'---.......-#-----.
......___ /_______\...//|\\.../_________\.../_______\
...../___\.|[]._.[]|....//|\\....|.A./^\.A.|.....|[] _ []|...._.O,_
.....|"#"|.|..|*|..|...///|\\\...|....|"|....|.....|..|*|..|.....(^).... crank01
crank01 is offline   Reply With Quote
Users who have thanked crank01 for this post:
Artyboy2011 (03-01-2012)
Old 03-01-2012, 05:02 PM   PM User | #3
Artyboy2011
New Coder

 
Join Date: Nov 2011
Location: London
Posts: 31
Thanks: 5
Thanked 1 Time in 1 Post
Artyboy2011 is an unknown quantity at this point
i found a picture of almost exactly what i want. http://www.codeproject.com/KB/shell/...r/Calendar.png.

any ideas?
Thanks
Artyboy2011 is offline   Reply With Quote
Old 03-01-2012, 06:11 PM   PM User | #4
crank01
New Coder

 
crank01's Avatar
 
Join Date: Jan 2011
Posts: 96
Thanks: 10
Thanked 2 Times in 2 Posts
crank01 is an unknown quantity at this point
Ok then you'll want to add your application's icon to the system tray. There are plenty of tutorials online to do just that, which to my understanding are relatively simple.

To make your program start as a system tray icon, use the code below:
Code:
    #include <windows.h>
     
    int main()
    {
    HWND hWnd = GetConsoleWindow();
    ShowWindow(hWnd, SW_MINIMIZE);
    // rest of program goes here
Now if the above does not work, I've found some valuable links walking you through how to do this

http://forum.codecall.net/java-tutor...plication.html

http://www.codeproject.com/Articles/...m-in-the-Syste

Below is with the use of a VS addon called Qt, which I just found out is pretty interesting. With it you could make a system tray icon simply by using the tutorial below. I don't expect you to use it, but you may find it enticing to use one day:https://qt-project.org/doc/qt-4.8/desktop-systray.html
__________________
.............-#-----....../|\......----'-'---.......-#-----.
......___ /_______\...//|\\.../_________\.../_______\
...../___\.|[]._.[]|....//|\\....|.A./^\.A.|.....|[] _ []|...._.O,_
.....|"#"|.|..|*|..|...///|\\\...|....|"|....|.....|..|*|..|.....(^).... crank01
crank01 is offline   Reply With Quote
Reply

Bookmarks

Tags
application, c++, popup, taskbar, toolbar

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:13 PM.


Advertisement
Log in to turn off these ads.