CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   Computer Programming (http://www.codingforums.com/forumdisplay.php?f=21)
-   -   Taskbar toolbar with popup window C++ (http://www.codingforums.com/showthread.php?t=252941)

Artyboy2011 02-29-2012 03:46 PM

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).

crank01 02-29-2012 08:21 PM

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.

Artyboy2011 03-01-2012 05:02 PM

i found a picture of almost exactly what i want. http://www.codeproject.com/KB/shell/...r/Calendar.png.

any ideas?
Thanks

crank01 03-01-2012 06:11 PM

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


All times are GMT +1. The time now is 06:15 PM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.