Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Showstopper: XAML rendering changed with XTP17
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Showstopper: XAML rendering changed with XTP17

 Post Reply Post Reply
Author
Message
BeeJay View Drop Down
Groupie
Groupie
Avatar

Joined: 12 March 2013
Status: Offline
Points: 43
Post Options Post Options   Thanks (0) Thanks(0)   Quote BeeJay Quote  Post ReplyReply Direct Link To This Post Topic: Showstopper: XAML rendering changed with XTP17
    Posted: 09 October 2015 at 5:12am
XTP17 Beta-3 renders differently than XTP 16.4:



(it seems to use another font than the control's UI font)

here is the markup code
uploads/7972/Markup.zip
Back to Top
BeeJay View Drop Down
Groupie
Groupie
Avatar

Joined: 12 March 2013
Status: Offline
Points: 43
Post Options Post Options   Thanks (0) Thanks(0)   Quote BeeJay Quote  Post ReplyReply Direct Link To This Post Posted: 09 October 2015 at 5:56am
Usage of res://#<IconNumber> throws exception in XTP17 (XTP16.4 it works well)

<Image Grid.Column='1' Margin='6, 6, 6, 6' Source='res://#123'/>")

(the resource icon with ID 123 does exist in our .exe, of course)

MarkupPad 17 Beta3 crashes.

Reason:

BOOL CXTPMarkupGdiPlusImage::LoadIcon(const XTP_URI& uri, int nWidth)
{
[...]
    if( lpszResource[0] == _T('#'))
[...]

crashes in this case when lpszResource is not a real LPCTSTR but contains a MAKEINTRESOURCE value (see by ParseResUri).

The code must be fixed as follows:

   if (!IS_INTRESOURCE(lpszResource) && lpszResource[0] == _T('#'))


Back to Top
astoyan View Drop Down
Admin Group
Admin Group
Avatar

Joined: 24 August 2013
Status: Offline
Points: 304
Post Options Post Options   Thanks (0) Thanks(0)   Quote astoyan Quote  Post ReplyReply Direct Link To This Post Posted: 12 October 2015 at 2:45pm
Thank you for reporting this. Both problems have been addressed and fixed.
Regards,
  Alexander Stoyan
Back to Top
adrien View Drop Down
Senior Member
Senior Member


Joined: 30 April 2007
Location: New Zealand
Status: Offline
Points: 449
Post Options Post Options   Thanks (0) Thanks(0)   Quote adrien Quote  Post ReplyReply Direct Link To This Post Posted: 26 October 2015 at 9:53pm
Hi

this bug is blocking all kinds of things here, can you post a fix please so we can patch our XTP, or let us know when we can expect a fixed release?
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.250 seconds.