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 for Programming
 Forum for Origin C
 InputBox location/Placement

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
UKrieger Posted - 11/25/2008 : 06:17:30 AM
Origin 7.5

Hi,

I use an InputBox for user feedback while the user has to see a graph updated with every step of a loop. The graph window is maximized, because the user has to judge a peak finding result.

The InputBox appears right in the center of the window, which is often hiding some features. Does somebody know how to programmatically place the InputBox not in the center but somewhere to the side?

Uli


2   L A T E S T    R E P L I E S    (Newest First)
UKrieger Posted - 11/26/2008 : 05:27:40 AM
Thank you Iris,

your suggestion works as intended,

Uli
Iris_Bai Posted - 11/25/2008 : 8:42:58 PM
Hi,

InputBox cannot remember last posotion, but GetNBox can. Could you try to use GetN to replace InputBox. The following is a sample on how to use GetN:

#include <GetNBox.h>
void sample_GetN()
{
	GETN_TREE(testTree)
	
	GETN_STR(InputStr,"Please input string", "OK") 
	
	GETN_NUM(InputNum, "Please input numeric", 0.5) 	
	
	if( GetNBox(testTree,"This is a sample!", "Test(can be empty)") )
	{
		out_str(testTree.InputStr.strVal);
		out_double("", testTree.InputNum.dVal);
	}
}


Iris

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