The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Redrawing entire window
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

jguenrdc

USA
Posts

Posted - 05/24/2006 :  6:23:00 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version: OriginPro 7.5 SR6 v7.5885(B885)
Operating System: Windows XP Pro SP2

Is there a way to have Origin C code redraw the entire Origin workspace? When I create worksheets, just the "frame" of their windows displays, and when I destroy them, the "frame" stays on the scrren until the code finishes executing. Various other parts of the Origin window, sometimes including the toolbars and menus, are also held in an incompletely drawn state until the code finishes.

Jay

easwar

USA
1965 Posts

Posted - 05/25/2006 :  3:29:06 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Jay,

If you are just creating a temporary worksheet that you delete later, you can just create it hidden and so it does not have to be shown/drawn....

Otherwise you could issue a small delay between creating and before computing so the page gets drawn and the computation then starts, such as in this example:

Easwar
OriginLab


void test_painting(int iloop=50000)
{
// Make a new page and point to worksheet
WorksheetPage wpg;
wpg.Create("Origin");
Worksheet wks = wpg.Layers(0);
// Issue small delay so worksheet gets drawn
LT_execute("sec -p 0.1;");
// Proceed with time consuming stuff
for(int i = 0; i < iloop; i++)
{
Dataset ds(wks,0);
ds.Data(1,10,0.1)
}
}




Edited by - easwar on 05/25/2006 3:30:54 PM
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000