cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
%3CLINGO-SUB%20id%3D%22lingo-sub-801318%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3EEmp%C3%AAcher%20la%20maximisation%2Fle%20redimensionnement%20de%20la%20nouvelle%20fen%C3%AAtre%26nbsp%3B%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-801318%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3E%3CP%3E%3CSPAN%3EBonjour%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%3CSPAN%3EJe%20souhaite%20emp%C3%AAcher%20que%20la%20nouvelle%20fen%C3%AAtre%20soit%20agrandie%2Fredimensionn%C3%A9e.%20Je%20connais%20la%20fen%C3%AAtre%20%C2%AB%20%3CSTRONG%3E%26lt%3B%26lt%3B%20%3CEM%3EModal%3C%2FEM%3E%3C%2FSTRONG%3E%20%C2%BB%2C%20mais%20existe-t-il%20un%20autre%20moyen%20%3F%3CBR%20%2F%3E%3CBR%20%2F%3E%20J'ai%20trouv%C3%A9%20cette%20menace%20mais%20elle%20ex%C3%A9cute%20un%20planificateur%20en%20arri%C3%A8re-plan%20que%20je%20n'aime%20pas%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2FDiscussions%2FHow-to-stop-users-from-resizing-windows-in-JSL%2Ftd-p%2F15168%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fcommunity.jmp.com%2Ft5%2FDiscussions%2FHow-to-stop-users-from-resizing-windows-in-JSL%2Ftd-p%2F15168%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Jackie__0-1727098266586.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Jackie__0-1727098266586.png%22%20style%3D%22width%3A%20198px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Jackie__0-1727098266586.png%22%20style%3D%22width%3A%20198px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Jackie__0-1727098266586.png%22%20style%3D%22width%3A%20198px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Jackie__0-1727098266586.png%22%20style%3D%22width%3A%20198px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Jackie__0-1727098266586.png%22%20style%3D%22width%3A%20198px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Jackie__0-1727098266586.png%22%20style%3D%22width%3A%20198px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F68534i81DADF8B3EAD97DF%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Jackie__0-1727098266586.png%22%20alt%3D%22Jackie__0-1727098266586.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%3CSPAN%3E%20%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-801318%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3E%3CLINGO-LABEL%3EAutomatisation%20et%20scripts%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-801339%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%26nbsp%3B%3A%20Emp%C3%AAcher%20la%20maximisation%2Fle%20redimensionnement%20de%20la%20nouvelle%20fen%C3%AAtre%26nbsp%3B%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-801339%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ERecherchez%20la%20taille%20de%20la%20fen%C3%AAtre%20dans%20l'index%20des%20scripts%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Ew%20%3D%20new%20window(%22test%22)%3B%0Aw%20%26lt%3B%26lt%3B%20Set%20Window%20Size(%20800%2C%201200%20)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-801341%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%26nbsp%3B%3A%20Emp%C3%AAcher%20la%20maximisation%2Fle%20redimensionnement%20de%20la%20nouvelle%20fen%C3%AAtre%26nbsp%3B%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-801341%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%C3%80%20ma%20connaissance%2C%20ce%20n'est%20pas%20facile%20%C3%A0%20faire%2C%20mais%20quelques%20questions%20%3A%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3ELa%20question%20la%20plus%20importante%20%3A%20pourquoi%20voudriez-vous%20emp%C3%AAcher%20l'utilisateur%20de%20redimensionner%20une%20fen%C3%AAtre%20(cela%20ne%20correspond%20pas%20vraiment%20au%20sentiment%20de%20JMP%20de%20ne%20pas%20pouvoir%20redimensionner%20une%20fen%C3%AAtre).%3CBR%20%2F%3E%3COL%3E%3CLI%3E%20Une%20fen%C3%AAtre%20dans%20JMP%20qui%20vous%20emp%C3%AAche%20de%20la%20maximiser%20et%20c'est%20la%20fen%C3%AAtre%20L%C3%A9gende%20mais%20vous%20pouvez%20toujours%20la%20redimensionner%20donc%20il%20existe%20peut-%C3%AAtre%20un%20moyen%20de%20d%C3%A9sactiver%20la%20maximisation%3C%2FLI%3E%3CLI%3E%20L'autre%20est%20Caption()%20mais%20c'est%20son%20propre%20truc%3C%2FLI%3E%3C%2FOL%3E%3C%2FLI%3E%0A%3CLI%3ESi%20vous%20souhaitez%20emp%C3%AAcher%20le%20redimensionnement%2C%20pourquoi%20ne%20pas%20utiliser%20la%20fen%C3%AAtre%20modale%20%3F%3C%2FLI%3E%0A%3CLI%3EExiste-t-il%20un%20probl%C3%A8me%20sp%C3%A9cifique%20dans%20l%E2%80%99utilisation%20du%20planificateur%20%3F%3C%2FLI%3E%0A%3CLI%3ECe%20fil%20a%20la%20r%C3%A9ponse%20la%20plus%20probable%20%3A%20vous%20devrez%20peut-%C3%AAtre%20sortir%20du%20langage%20%3CSTRONG%3Ede%20script%3C%2FSTRONG%3E%20et%20le%20faire%20%C3%A0%20partir%20du%20syst%C3%A8me%20d'exploitation%3C%2FLI%3E%0A%3C%2FOL%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-801345%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%26nbsp%3B%3A%20Emp%C3%AAcher%20la%20maximisation%2Fle%20redimensionnement%20de%20la%20nouvelle%20fen%C3%AAtre%26nbsp%3B%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-801345%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F14366%22%20target%3D%22_blank%22%3E%40jthi%3C%2FA%3E%20%3C%2FP%3E%3COL%3E%3CLI%3EUne%20fen%C3%AAtre%20dans%20JMP%20qui%20vous%20emp%C3%AAche%20de%20la%20maximiser%20et%20c'est%20la%20fen%C3%AAtre%20L%C3%A9gende%20mais%20vous%20pouvez%20toujours%20la%20redimensionner%2C%20donc%20peut-%C3%AAtre%20qu'il%20existe%20un%20moyen%20de%20d%C3%A9sactiver%20la%20maximisation%20-%20%3CSTRONG%3Eje%20n'ai%20jamais%20rencontr%C3%A9%20cela%2C%20pouvez-vous%20partager%20un%20exemple%20de%20code%20%3F%3C%2FSTRONG%3E%3C%2FLI%3E%3C%2FOL%3E%3COL%3E%3CLI%3ESi%20vous%20souhaitez%20emp%C3%AAcher%20le%20redimensionnement%2C%20pourquoi%20ne%20pas%20utiliser%20une%20fen%C3%AAtre%20modale%20%3F%20-%20%3CSTRONG%3EBcos%20La%20fen%C3%AAtre%20modale%20emp%C3%AAche%20l'acc%C3%A8s%20%C3%A0%20d'autres%20fichiers%2Ftables%3C%2FSTRONG%3E%3C%2FLI%3E%3CLI%3EExiste-t-il%20un%20probl%C3%A8me%20sp%C3%A9cifique%20li%C3%A9%20%C3%A0%20l'utilisation%20du%20planificateur%20%3F%20%3CSTRONG%3ELe%20probl%C3%A8me%20est%20qu'il%20ralentit%20la%20boucle%3C%2FSTRONG%3E%3C%2FLI%3E%3C%2FOL%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-801347%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%26nbsp%3B%3A%20Emp%C3%AAcher%20la%20maximisation%2Fle%20redimensionnement%20de%20la%20nouvelle%20fen%C3%AAtre%26nbsp%3B%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-801347%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EJe%20n'ai%20aucune%20id%C3%A9e%20de%20comment%20cela%20pourrait%20%C3%AAtre%20fait.%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3EMais%20si%20vous%20souhaitez%20fournir%20une%20exp%C3%A9rience%20utilisateur%20tr%C3%A8s%20ennuyeuse%2C%20vous%20pouvez%20utiliser%20des%20scripts%20graphiques%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20To%20Here(1)%3B%0A%0Anw%20%3D%20New%20Window(%22Example%22%2C%20%26lt%3B%3CSIZE%3E%3C%2FSIZE%3E%3C%2FCODE%3E%3C%2FPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3E%0A%3CP%3E%20%3C%2FP%3E%3C%2FCODE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-801350%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%26nbsp%3B%3A%20Emp%C3%AAcher%20la%20maximisation%2Fle%20redimensionnement%20de%20la%20nouvelle%20fen%C3%AAtre%26nbsp%3B%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-801350%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EC'est%20un%20bon%20hack.%20Merci%20Jarmo%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
Jackie_
Level VI

Preventing New Window from being maximized/resized?

Hello,

 

I want to prevent the new window from being maximized/resized. I am aware of the "<<Modal" window, but is there an alternate way? 

Found this threat but it runs a scheduler in the background which I don't prefer

https://community.jmp.com/t5/Discussions/How-to-stop-users-from-resizing-windows-in-JSL/td-p/15168

Jackie__0-1727098266586.png

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: Preventing New Window from being maximized/resized?

No idea how that could be done.

 

But if you wish to provide very annoying user experience you can use graphic scripts

Names Default To Here(1);

nw = New Window("Example", <<size(200, 200),
	gb = Graph Box(
		Frame Size(1, 1)
	),
	box = V Splitter Box(
		Size(640, 480),
		H Splitter Box(
			Spacer Box(
				<<Set Fill(1);
				<<Color(RGB Color(9, 112, 84));
			),
			Spacer Box(
				<<Set Fill(1);
				<<Color(RGB Color(255, 222, 0));
			)
		),
		H Splitter Box(
			Spacer Box(
				<<Set Fill(1);
				<<Color(RGB Color(101, 153, 255));
			),
			Spacer Box(
				<<Set Fill(1);
				<<Color(RGB Color(255, 153, 0));
			)
		)
	)
);

(gb << Xpath("//AxisBox")) << visibility("Collapse");

Eval(EvalExpr(
	gb[FrameBox(1)] << Add Graphics Script(
		Expr(nw) << Zoom Window;
	);	
));

 

-Jarmo

View solution in original post

5 REPLIES 5
txnelson
Super User

Re: Preventing New Window from being maximized/resized?

Look in the Scripting Index for Window Size

w = new window("test");
w << Set Window Size( 800, 1200 );
Jim
jthi
Super User

Re: Preventing New Window from being maximized/resized?

To my knowledge you cannot easily do this, but few questions:

  1. The most important question: why would you want to prevent user from resizing a window (doesn't really fit the feeling of JMP to not be able to resize a window).
    1. One window in JMP which prevents you from maximizing it and it is Legend window but you can still resize it so maybe there is a way to disable maximizing
    2. Other is Caption() but it is it's own thing
  2. If you wish to prevent resizing, why not use modal window?
  3. Is there a specific issue in using scheduler?
  4. That thread has the most probable answer: you might have to go outside the scripting language and do it from the operating system
-Jarmo
Jackie_
Level VI

Re: Preventing New Window from being maximized/resized?

@jthi 

  1. One window in JMP which prevents you from maximizing it and it is Legend window but you can still resize it so maybe there is a way to disable maximizing - I have never came across this, can you share an example code?
  1. If you wish to prevent resizing, why not use a modal window? - Bcos Modal window prevents accessing other files/tables 
  2. Is there a specific issue in using scheduler? The issue is it slows down the loop
jthi
Super User

Re: Preventing New Window from being maximized/resized?

No idea how that could be done.

 

But if you wish to provide very annoying user experience you can use graphic scripts

Names Default To Here(1);

nw = New Window("Example", <<size(200, 200),
	gb = Graph Box(
		Frame Size(1, 1)
	),
	box = V Splitter Box(
		Size(640, 480),
		H Splitter Box(
			Spacer Box(
				<<Set Fill(1);
				<<Color(RGB Color(9, 112, 84));
			),
			Spacer Box(
				<<Set Fill(1);
				<<Color(RGB Color(255, 222, 0));
			)
		),
		H Splitter Box(
			Spacer Box(
				<<Set Fill(1);
				<<Color(RGB Color(101, 153, 255));
			),
			Spacer Box(
				<<Set Fill(1);
				<<Color(RGB Color(255, 153, 0));
			)
		)
	)
);

(gb << Xpath("//AxisBox")) << visibility("Collapse");

Eval(EvalExpr(
	gb[FrameBox(1)] << Add Graphics Script(
		Expr(nw) << Zoom Window;
	);	
));

 

-Jarmo
Jackie_
Level VI

Re: Preventing New Window from being maximized/resized?

This is a nice hack. Thanks Jarmo