Problem with blank images in markup text |
Post Reply |
Author | |
maxxan
Groupie Joined: 15 July 2009 Status: Offline Points: 49 |
Post Options
Thanks(0)
Posted: 10 October 2017 at 9:10am |
Im using a CXTPMarkupStatic and setting an ImageManager to that one and the markup text. The problem is that when rendered, the space where the image shoud be have the correct size, but it's only blank, no image. I look in the code and it goes to render it as an icon.
I load the image with (png-file): CXTPImageManagerIconHandle oIconHandle; oIconHandle.Attach(CXTPImageManagerIcon::LoadBitmapFromResource(ghInstance, MAKEINTRESOURCE(IDB_IMAGE1), &bAlpha), FALSE); // I've also tried with Share handle = TRUE pImageManager->SetIcon(oIconHandle, 1); // Set image with ID 1 mMarkupControl.GetMarkupContext()->SetImageManager(pImageManager); The markup looks something like and all the text is visible and spacing between is of the size of the image: <StackPanel> <TextBlock>Some text that I can see</TextBlock> <Image Source='1'/> <TextBlock>Some more text</TextBlock> </StackPanel> What could the problem be? Using version 18.0.1. Thanks! |
|
Fredrik
Senior Member Joined: 22 June 2005 Status: Offline Points: 235 |
Post Options
Thanks(0)
|
The problem seems to be that you need a transparent pixel in bottom left corner...
|
|
Windows 10, Visual Studio 20157, Toolkit Pro 18.3.0
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |