Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Delphi 10 Seattle Styles Problem With Windows Security Warning


This question is not answered. Helpful answers available: 1. Correct answers available: 1.


Permlink Replies: 2 - Last Post: May 9, 2017 12:17 AM Last Post By: Gav Parkes
Gav Parkes

Posts: 2
Registered: 5/19/10
Delphi 10 Seattle Styles Problem With Windows Security Warning  
Click to report abuse...   Click to reply to this thread Reply
  Posted: May 8, 2017 8:46 AM
Hi,

I have an issue when using Styles in Delphi 10 Seattle. Because of restrictions imposed on us by group policy, when I attempt to launch an external program using ShellExecute I get the following windows security warning "We can't verify who created this file, Are you sure you want to run this file?" and have 'Run' and 'Cancel' options. The issue that I have is that when I select 'Run' the button visually clicks but does not execute, if I exclude shDialogs from TSyleManager.SystemHooks then everything works as expected but obviously any system dialogs are not painted with the selected style. Has anybody else had issues when using system dialogs and styles? is there any fix other than excluding system dialogs from the TStyleManager?

I can also replicate this issue in 10.1 Berlin

Cheers,
Gav.
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: Delphi 10 Seattle Styles Problem With Windows Security Warning
Helpful
Click to report abuse...   Click to reply to this thread Reply
  Posted: May 8, 2017 1:17 PM   in response to: Gav Parkes in response to: Gav Parkes
Gav wrote:

The issue that I have is that when I select 'Run' the button visually
clicks but does not execute, if I exclude shDialogs from
TSyleManager.SystemHooks then everything works as expected but
obviously any system dialogs are not painted with the selected style.

There are quite a number of known bugs related to styling of system dialogs.
Best to avoid it altogether.

--
Remy Lebeau (TeamB)
Gav Parkes

Posts: 2
Registered: 5/19/10
Re: Delphi 10 Seattle Styles Problem With Windows Security Warning  
Click to report abuse...   Click to reply to this thread Reply
  Posted: May 9, 2017 12:17 AM   in response to: Remy Lebeau (Te... in response to: Remy Lebeau (Te...
Thank you Remy,

Is it sufficient to just exclude shDialogs from the TStyleManager.SystemHooks or is there anything else that needs to be done.

Cheers,
Gav.
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02