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
 InputBox location/Placement
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

UKrieger

Switzerland
16 Posts

Posted - 11/25/2008 :  06:17:30 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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


Iris_Bai

China
Posts

Posted - 11/25/2008 :  8:42:58 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

UKrieger

Switzerland
16 Posts

Posted - 11/26/2008 :  05:27:40 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you Iris,

your suggestion works as intended,

Uli
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