How to make progress bar move?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2020-08-05
08:31 AM
- last edited on
‎2021-09-15
09:54 AM
by
Noemi Balogh
I am trying to use DG::ProgressBar but I don't know how to make the bar move. It just stays still. Should I rewrite some functions?
Solved! Go to Solution.
- Labels:
-
Add-On (C++)
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2020-08-13 05:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2020-08-05 09:43 AM
Central Innovation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2020-08-05 10:11 AM
Ralph wrote:Thank you. But I was wondering if the dialog can keep showing while the program call SetValue? I can only make the dialog show itself by calling "dialog.Invoke()". But the dialog shown by Invoke() seems to be a still one and the progress bar of it doesn't move.
I haven't used that specific control, but I assumeProgressBar::SetValuewould do it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2020-08-05 11:24 AM
scandi wrote:What is the context? Are you displaying something like a progress window while a process is running? If so, you probably want a palette rather than a modeless dialog. You might need to call a redraw method on a progress bar if the value is changed too.
I was wondering if the dialog can keep showing while the program call SetValue? I can only make the dialog show itself by calling "dialog.Invoke()". But the dialog shown by Invoke() seems to be a still one and the progress bar of it doesn't move.
Also, if this is a progress window, you might want to use Archicad's standard process feedback UI. Take a look at the documentation for
Central Innovation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2020-08-05 11:46 AM
Ralph wrote:Thank you. I will try the palette. Is there any sample for that?
scandi wrote:What is the context? Are you displaying something like a progress window while a process is running? If so, you probably want a palette rather than a modeless dialog. You might need to call a redraw method on a progress bar if the value is changed too.
I was wondering if the dialog can keep showing while the program call SetValue? I can only make the dialog show itself by calling "dialog.Invoke()". But the dialog shown by Invoke() seems to be a still one and the progress bar of it doesn't move.
Also, if this is a progress window, you might want to use Archicad's standard process feedback UI. Take a look at the documentation forAPIIo_InitProcessWindowID- it provides a code sample. There's probably a C++ wrapper for that too if you hunt around - the documentation for this is mostly absent though.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2020-08-05 01:41 PM
scandi wrote:Take a look at
I will try the palette. Is there any sample for that?
Central Innovation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2020-08-06 04:41 AM
Ralph wrote:Thanks a lot!
scandi wrote:Take a look at
I will try the palette. Is there any sample for that?OwnerDrawnListBoxPalettein DG_Test or BrowserPalettein BrowserControl.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2020-08-13 05:23 AM