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
 Progress bar and status bar via Origin C
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

peter.cook

UK
356 Posts

Posted - 11/20/2003 :  07:48:07 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi,

Can I display a progress bar linked to origin C ie updated per iteration?

Also, can the status bar be controlled via Origin C?

Cheers,

Pete

Mike Buess

USA
3037 Posts

Posted - 11/20/2003 :  08:36:33 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Pete,

1. OC's progress bar is called ProgressBox. In the O7.5 programming guide it's found under Classes > User Interface Controls.

2. I think the status bar can only be controlled indirectly using the LT type command and object. Examples...

LabTalk.type.showstatus(0 or 1); //hide or show status bar

string sCmd = "status bar message";
sCmd.Format("ty -q %s;",sCmd); // format LT command
LT_exectue(sCmd); // change status bar message

Mike Buess
Origin WebRing Member
Go to Top of Page

cpyang

USA
1406 Posts

Posted - 11/20/2003 :  08:40:47 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
hi Mike,

string Write and WriteLine can go more places,

WRITE_SCRIPT_WINDOW, WRITE_STATUS_BAR, WRITE_OUTPUT_LOG, WRITE_MESSAGE_BOX, WRITE_COMPILER_OUTPUT

CP


Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 11/20/2003 :  08:52:54 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks CP,

So Pete could change the status bar message like this..

string sMsg = "status bar message";
sMsg.Write(WRITE_STATUS_BAR);

But he'll still need LT_execute("ty -q[p|s] 0;") to ensure his message stays on the status bar.

Mike Buess
Origin WebRing Member
Go to Top of Page

peter.cook

UK
356 Posts

Posted - 11/21/2003 :  10:05:47 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Mike, CP,

Thanks for this (progress bar and staus bar) - looks nice and simple to use too!

I suppose an obvious (minor) request is to allow / disallow change of status bar via Origin C then.

Cheers,

pete



Edited by - peter.cook on 11/21/2003 10:10:51 AM
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