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
 All Forums
 Origin Forum
 Origin Forum
 System-modal dialog box possible?

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
marko Posted - 02/03/2005 : 12:01:10 PM
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

4   L A T E S T    R E P L I E S    (Newest First)
marko Posted - 02/04/2005 : 03:05:47 AM
Hi Mike,

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

Marko

Mike Buess Posted - 02/03/2005 : 1:59:10 PM
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
marko Posted - 02/03/2005 : 1:38:25 PM
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

cpyang Posted - 02/03/2005 : 12:52:59 PM
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);
}






The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000