Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - How to create a progressbar in XAML markup?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to create a progressbar in XAML markup?

 Post Reply Post Reply
Author
Message
evoX View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25 July 2007
Status: Offline
Points: 207
Post Options Post Options   Thanks (0) Thanks(0)   Quote evoX Quote  Post ReplyReply Direct Link To This Post Topic: How to create a progressbar in XAML markup?
    Posted: 19 June 2015 at 9:04am
Is there a way to get the DC of a panel/grid or image markup and create a ProgressCtrl in that location? 
Product: Xtreme ToolkitPro 19.30
Platform: Windows 10 64bit
Language: Visual C++ (VS 2019)
Back to Top
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1354
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post Posted: 19 June 2015 at 2:34pm
How about doing the ProgressBar in XAML?

http://forum.codejock.com/forum_posts.asp?TID=11171
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6

Back to Top
evoX View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25 July 2007
Status: Offline
Points: 207
Post Options Post Options   Thanks (0) Thanks(0)   Quote evoX Quote  Post ReplyReply Direct Link To This Post Posted: 24 June 2015 at 6:19pm
Thanks! But you have to manually calculate the pixel positions and also update the xaml every time, which is not a very good solution.
Product: Xtreme ToolkitPro 19.30
Platform: Windows 10 64bit
Language: Visual C++ (VS 2019)
Back to Top
evoX View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25 July 2007
Status: Offline
Points: 207
Post Options Post Options   Thanks (0) Thanks(0)   Quote evoX Quote  Post ReplyReply Direct Link To This Post Posted: 29 August 2015 at 8:18pm
So, is there any way to get the DC of a StackPanel or other Markup element? so I can place a control inside.
Product: Xtreme ToolkitPro 19.30
Platform: Windows 10 64bit
Language: Visual C++ (VS 2019)
Back to Top
astoyan View Drop Down
Admin Group
Admin Group
Avatar

Joined: 24 August 2013
Status: Offline
Points: 284
Post Options Post Options   Thanks (0) Thanks(0)   Quote astoyan Quote  Post ReplyReply Direct Link To This Post Posted: 29 August 2015 at 10:38pm
It should be faily easy to achieve using markup scripting however it still requries some manual work to be done.
Starting from v17.0 beta 2 markup supports scripting, you can already try it out in the latest beta, but due to an issue with this release markup doesn't work in release mode, so you'll have to compile it in debug. There are several new XAML samles added that demonstrate scripting it using JavaScript, VBScript can be used as well.
Back to Top
markr View Drop Down
Senior Member
Senior Member


Joined: 01 August 2004
Status: Offline
Points: 441
Post Options Post Options   Thanks (0) Thanks(0)   Quote markr Quote  Post ReplyReply Direct Link To This Post Posted: 30 August 2015 at 6:36pm
Originally posted by astoyan astoyan wrote:

...but due to an issue with this release markup doesn't work in release mode, so you'll have to compile it in debug.

I'm using the MFC edition of XTP v17 beta 2, and markup is failing for me in debug mode as well as release mode.

- Mark R.
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.141 seconds.