View previous topic :: View next topic |
Author |
Message |
evelix
Joined: 11 Jul 2014 Posts: 5
|
Posted: Fri Jul 11, 2014 7:59 pm Post subject: License Dialog not in center of screen/owner |
|
|
Hi when the license dialog is shown, it is neither in center of the screen, nor in the center of the owning form.
I checked and the startup position is CenterOwner, but sure doesn't display that way.
Is this a known issue?
Regards
Joerg |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Sat Jul 12, 2014 1:07 am Post subject: |
|
|
Is this behaviour evident in the sample projects? If so which one - WPF, Windows forms, Simple License or Authenticated License? Is it the License install dialog or the Evaluation Dialog? _________________ Infralution Support |
|
Back to top |
|
|
evelix
Joined: 11 Jul 2014 Posts: 5
|
Posted: Sun Jul 13, 2014 10:21 am Post subject: |
|
|
Yes this is also evident in the samples authenticated WPF project. (Sorry that I forgot to mention that I mean WPF.)
The Win forms sample project is correctly showing up in the middle.
Also the WPF evaluation dialog does not wrap the text, as the Win Form does, which results in a quite wide dialog.
The install license dialog then show up correctly in the center, however some of the computer id textbox is cut off.
Below you find the screen-shots
The WPF evaluation dialog.
[img]http://screencast.com/t/Zaxq8H9S5t[/img]
The WPF license dialog
[img]http://screencast.com/t/NnyOGOfu[/img]
The Win Forms evaluation dialog
[img]http://screencast.com/t/hQKgugSdaB[/img]
The Win Forms license dialog
[img]http://screencast.com/t/3vaFMGGr[/img] |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Sun Jul 13, 2014 11:34 pm Post subject: |
|
|
The first issue with the EvaluationDialog is due to a bug in the AutoSize property. This can be fixed by setting AutoSize to false before showing the dialog eg
Code: | EvaluationDialog evaluationDialog = new EvaluationDialog();
evaluationDialog.AutoSize = false;
EvaluationDialogResult dialogResult = evaluationDialog.ShowDialog(evaluationMonitor);
|
The second issue with the bottom of the Computer ID being cut off looks like it is only occurring in German (where the text is significantly longer).
We will fix both of these issues in the next minor release. If you have purchase ILS then you have the source code for these dialogs and could resolve them before if required. _________________ Infralution Support |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Mon Jul 14, 2014 12:27 am Post subject: |
|
|
The second issue can be resolved by setting the SizeToContent property before displaying the license form eg
Code: | AuthenticatedLicenseInstallForm licenseForm = new AuthenticatedLicenseInstallForm();
licenseForm.SizeToContent = SizeToContent.Height;
_license = licenseForm.ShowDialog(_licenseProvider, _license); |
_________________ Infralution Support |
|
Back to top |
|
|
evelix
Joined: 11 Jul 2014 Posts: 5
|
Posted: Mon Jul 14, 2014 9:09 pm Post subject: |
|
|
Thank you for the aswers. This will help for the moment.
Personally I don't like to change your code, as this only leads to problems later. However I looked at the XAML and I would suggest:
- In both forms make the Grids containing the textboxes/labes to adjust in height automatically (e.g. height=Auto and Alignment=Stretch) and not centered. This should help, that the form will adjust in height automatically.
- Set a maxWidth on the EvaluationDialog message text, to prevent to become overly lengthy.
Joerg
[/list] |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Sat Jul 26, 2014 5:35 am Post subject: |
|
|
Version 5.11.2 has now been released and fixes this issue. _________________ Infralution Support |
|
Back to top |
|
|
|