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
 Window activation
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Mike Buess

USA
3037 Posts

Posted - 04/12/2003 :  10:54:31 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
How do you activate a window in Origin C? I'm looking for an Origin C equivalent to "win -a WinName".

Mike Buess
Origin WebRing Member

cpyang

USA
1406 Posts

Posted - 04/13/2003 :  12:25:41 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Mike, try this,

 

Page pg("data1");
pg.SetShow();



CP


Go to Top of Page

schalkbe

Germany
9 Posts

Posted - 04/14/2003 :  08:24:15 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I am also interested in a solution to this, but if I try cpyang's code, I get an error in CodeBuilder:
"Error, Member function Page::SetShow not defined or does not have matching prototype."

I am using OriginPro 7 SR 3.

Bernhard
Go to Top of Page

cpyang

USA
1406 Posts

Posted - 04/14/2003 :  10:03:49 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Sorry, it looks like it didn't get into SR3, my apology.

SR4 should be coming out any day now, so should be in SR4.

CP


Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 04/14/2003 :  10:15:25 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks for the update CP.

Mike Buess
Origin WebRing Member
Go to Top of Page

cpyang

USA
1406 Posts

Posted - 04/17/2003 :  10:02:57 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I am sorry to report that SetShow still does not work too well in SR4. It works if the window was hidden, or if you use it to make it hidden, or to minimize/maximize a window, but it does not work if the window was behind another and you need to bring it to the front, as with "win -a" in labtalk. We have since fixed this problem but that was too late for SR4.

CP


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