Choose Language Hide Translation Bar
Highlighted
JulieSAppel
Level IV

Window/text box size

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
Highlighted

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" ) )
);
Learn it once, use it forever!
Highlighted
JulieSAppel
Level IV

Re: Window/text box size

Thanks @markbailey 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?

Highlighted

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.

Learn it once, use it forever!
Highlighted

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 ) ),

 

Article Labels

    There are no labels assigned to this post.