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
 Origin Forum
 System-modal dialog box possible?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

marko

Germany
112 Posts

Posted - 02/03/2005 :  12:01:10 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): O7.5P
Operating System: W2k

Hi,

is it possible to open from inside Origin a system modal dialog box?

The reason is: I need to be informed when Origin encounters a certain condition while reading data in the background. At first I wanted to use simply "type -b" without parameters which should produce a beep. But unfortunately my computer stays silent for some reason, perhaps the speaker is not working... So my idea was to let Origin popup a dialog box as the topmost window on the desktop in this case.

Is there a way to accomplish this? I am afraid that would only be possible with a selfmade DLL. But perhaps OriginC is capable of such a task?!

Marko

cpyang

USA
1406 Posts

Posted - 02/03/2005 :  12:52:59 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
what is wrong with just

type -b "something is happening"?


If you are talking about a box with system modal, then just

 
void sd()
{
MessageBox(GetWindow(), "Hello", "Test", MB_OK | MB_SYSTEMMODAL);
}





Go to Top of Page

marko

Germany
112 Posts

Posted - 02/03/2005 :  1:38:25 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks cpyang,

that solves it!

Well, I am working in foreground with other programs without seeing Origin at all. Silently the latter is reading and displaying data in background and I just want to be informed when a certain condition becomes true.

That's stg type couldn't do for me, but this tiny Origin C function could!

Great,
thanks!

Marko

Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 02/03/2005 :  1:59:10 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Marko,

You say Origin is in the background. Are you using the method I talk about in this topic?...

http://www.originlab.com/forum/topic.asp?TOPIC_ID=3671

I've never actually done anything with the program window hidden and am curious if you've encountered any pitfalls.

Mike Buess
Origin WebRing Member
Go to Top of Page

marko

Germany
112 Posts

Posted - 02/04/2005 :  03:05:47 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Mike,

no actually I meant with background only that Origin would be hidden behind all my other opened application windows! :)

Marko

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