4 Replies - 2549 Views - Last Post: 12 March 2013 - 05:04 AM Rate Topic: -----

#1 salviador   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 15-February 11

get coordinate of notifyIcon1

Posted 11 March 2013 - 09:07 AM

Hi,
When I put the application in tray task, How to get coordinate of notifyIcon1?
Is This A Good Question/Topic? 0
  • +

Replies To: get coordinate of notifyIcon1

#2 tlhIn`toq   User is offline

  • Xamarin Cert. Dev.
  • member icon

Reputation: 6537
  • View blog
  • Posts: 14,450
  • Joined: 02-June 10

Re: get coordinate of notifyIcon1

Posted 11 March 2013 - 10:45 AM

That is a REALLY weird request. The location can change depending on the loading of other tasktry icons, the height of the start bar and so on.

So let's approach this from the opposite perspective...
What is it you are trying to accomplish? Why would you need the location?
Was This Post Helpful? 0
  • +
  • -

#3 salviador   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 15-February 11

Re: get coordinate of notifyIcon1

Posted 12 March 2013 - 01:52 AM

View PosttlhIn`toq, on 11 March 2013 - 10:45 AM, said:

That is a REALLY weird request. The location can change depending on the loading of other tasktry icons, the height of the start bar and so on.

So let's approach this from the opposite perspective...
What is it you are trying to accomplish? Why would you need the location?


Hi, when I press a combination of keys (ctrl+a), appears a form in a small window (with controls input and output) near the notifyIcon1 (type Balloon but different, with button , textbox, listbox ecc)
Was This Post Helpful? 0
  • +
  • -

#4 Skydiver   User is offline

  • Code herder
  • member icon

Reputation: 7445
  • View blog
  • Posts: 25,081
  • Joined: 05-May 12

Re: get coordinate of notifyIcon1

Posted 12 March 2013 - 04:58 AM

Yup. Toast. :)
Was This Post Helpful? 0
  • +
  • -

#5 Skydiver   User is offline

  • Code herder
  • member icon

Reputation: 7445
  • View blog
  • Posts: 25,081
  • Joined: 05-May 12

Re: get coordinate of notifyIcon1

Posted 12 March 2013 - 05:04 AM

Hmmm... Strange... My other reply yesterday about toast disappeared. What I posted yesterday was that it's not the notify icon location that is significant, but rather the location of the taskbar. A short summary: If taskbar at bottom, place grow toast from the bottom positioned at bottom right. If taskbar at top, grow toast from the top, positioned at the upper right. (I think that right and left need to be swapped if the UI is set for a right to left language.) If the taskbar is at the left, grow to the right at the bottom left. If the taskbar is at the right, grow to the left from the bottom right.
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1