Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

License Dialog not in center of screen/owner

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Licensing Support
View previous topic :: View next topic  
Author Message
evelix



Joined: 11 Jul 2014
Posts: 5

PostPosted: Fri Jul 11, 2014 7:59 pm    Post subject: License Dialog not in center of screen/owner Reply with quote

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
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Sat Jul 12, 2014 1:07 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
evelix



Joined: 11 Jul 2014
Posts: 5

PostPosted: Sun Jul 13, 2014 10:21 am    Post subject: Reply with quote

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
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Sun Jul 13, 2014 11:34 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Mon Jul 14, 2014 12:27 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
evelix



Joined: 11 Jul 2014
Posts: 5

PostPosted: Mon Jul 14, 2014 9:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Sat Jul 26, 2014 5:35 am    Post subject: Reply with quote

Version 5.11.2 has now been released and fixes this issue.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Licensing Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group