cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The Discovery Summit 2025 Call for Content is open! Submit an abstract today to present at our premier analytics conference.
See how to use to use Text Explorer to glean valuable information from text data at April 25 webinar.
Choose Language Hide Translation Bar
View Original Published Thread

Window/text box size

JulieSAppel
Level IV

Hi,

 

A very simple question that is still causing me some trouble. How do I change the size of the window so that it displays the full text (Input dosing date and time) when running the below script?

 

 

defdosingday = Today();

New Window( "Input dosing date and time",
	<<Modal,
	<<return result,
	V List Box(
		Text Box( "Date & time" ),
		str1 = Number Edit Box( defdosingday, 10, <<SetFunction( Function( {that}, dosingday = str1 << get ) ) ), 

		str1 << set format( Format( "ddMonyyyy h:m" ) ),

	),
	H List Box( Button Box( "OK" ), Button Box( "Cancel" ) ), 
);

 

I´ve tried different approaches but nothing works.

 

Br Julie

4 REPLIES 4


Re: Window/text box size

Try this example.

 

Names Default To Here( 1 );

defdosingday = Today();

New Window( "Input dosing date and time",
	<<Modal,
	<<Return Result,
	V List Box(
		Text Box( "Date & time" ),
		str1 = Number Edit Box( defdosingday, 10, << Set Format( Format( "ddMonyyyy h:m" ) ) )
	),
	H List Box( Button Box( "OK" ), Button Box( "Cancel" ) )
);
JulieSAppel
Level IV


Re: Window/text box size

Thanks @Mark_Bailey but that unfortunately doesn´t change anything. The text "Input dosing date & time" is still cropped.

 

Shouldn´t the script contain some information on the intended size of the window or box?


Re: Window/text box size

I added enough spaces at the end of the text in the text box to force the window wider and display the entire window title.


Re: Window/text box size

In your script, the "10" is a field width for the Number Edit Box that will determine its width.  However, the subsequent <<SetFormat call will reset the width, using a default width for the given format unless a specific width is given.  The default for the format that you have is 19 characters, so try something like this to make the box wider:

 

		str1 << set format( Format( "ddMonyyyy h:m", 22 ) ),