0

Windows 8 has a new message window that displays in the top right side of the screen. Does Delphi XE4 have any API to access this new feature?

4
  • That's only for Modern-Style Windows Store Apps (Metro) Commented Aug 18, 2013 at 15:15
  • Are you sure this is true? I ask this because the window also appears on the desktop. If it is only for Metro, is there a Metro API for its use? Commented Aug 18, 2013 at 15:16
  • 2
    If this feature is accessible from a native Win32 application (using the Windows API, for instance), then you can use it in any version of Delphi. Commented Aug 18, 2013 at 15:30
  • First of all you need to find out what this feature is called. Then you'll be able to find the developer docs. And so on. Commented Aug 18, 2013 at 16:04

2 Answers 2

2

This kind of dialog is part of the Windows.UI.Notifications namespace which belongs to the WinRT, and unfortunately you cannot access the WinRT from Delphi directly. but maybe you can try this article to check a sample with experimental access to the WinRT from Delphi, Writing Hello World for WinRT in Delphi

Sign up to request clarification or add additional context in comments.

3 Comments

I am running Windows 8 not RT. Are you saying Windows 8 is calling WinRT methods?
I'm saying that Windows 8 introduces a new API called WinRT (and also maintains the WinAPIO) which is not accessible from Delphi directly. and the dialog which you want to invoke resides inside of the WinRT.
@RRUZ No viable way to target WinRT from Delphi. The article you link to was for dev preview. Since then WinRT has been locked down. Needs to use a .net language, or MS C++.
1

This is Notifications or Toasts, you can find a C++ and C# example here - http://code.msdn.microsoft.com/windowsdesktop/Sending-toast-notifications-71e230a2

I've yet to see a direct Delphi implementation of this which is why I can only suggest the C++/C# version.

6 Comments

Thanks for your answer. Hopefully one of the C guys can develop an example for Delphi... looking forward to that....
Why don't you do that? If you want to develop on Windows you need to learn how to read its native language.
@David. I have been developing with Pascal for over 30 years... I am an old timer not eager to learn C... that is the only reason. I have developed thousands of apps over the years without it. I know a little, but not enough to convert it.
You're never too old to learn. I think it's a shame that you cut yourself off from new skills.
Does C cost very much?
|

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.