Saturday, December 16, 2017

#1 2009-09-20 12:14:28 pm

Richard
Member
From:: Herefordshire, UK
Registered: 2009-09-09
Posts: 529
Website

Replacing dialogs with windows

How do I open/close windows and also stop a window opening when I start. I basically want a similar to AS text entry dialog with a bigger text field.

Thanks smile

Offline

 

#2 2009-09-20 05:32:26 pm

Craig Williams
Administrator
From:: Ft. Smith, AR
Registered: 2006-12-07
Posts: 888

Re: Replacing dialogs with windows

I am not sure what you are wanting to accomplish here. It sounds like you want to have your application behave as a script so you can get the larger text field for a user to type into. If this is the case.

Applescript:


set largerInputBox to return & return & return & return & return
display dialog "Enter text" default answer largerInputBox

If you just want your main window not visible at launch, click on the window and uncheck "Visible at Launch" in the attributes of the Inspector window. You will have to add a menu item or something else to open the window back up when you need it.

Offline

 

#3 2009-09-20 05:45:03 pm

Richard
Member
From:: Herefordshire, UK
Registered: 2009-09-09
Posts: 529
Website

Re: Replacing dialogs with windows

My English went down the crapper, sorry dreadfully written, I wanted to know how to open (or make visible as the inspector puts it) and then close it with a button click, obviously after read/write tasks of my own.

smile

Offline

 

#4 2009-09-20 05:56:26 pm

Craig Williams
Administrator
From:: Ft. Smith, AR
Registered: 2006-12-07
Posts: 888

Re: Replacing dialogs with windows

If you close the window do you want to leave the application running?
If so, control drag from your button to the window and choose "performClose:"

If you want a way to get back to your window, add another item to your menu
and control drag from the menu item to the window and choose "makeKeyAndOrderFront:"

Offline

 

#5 2009-09-20 06:56:56 pm

Richard
Member
From:: Herefordshire, UK
Registered: 2009-09-09
Posts: 529
Website

Re: Replacing dialogs with windows

I want the button to perform my write actions and then close it.

Last edited by Richard (2009-09-20 06:57:36 pm)

Offline

 

#6 2009-09-22 08:26:59 am

Richard
Member
From:: Herefordshire, UK
Registered: 2009-09-09
Posts: 529
Website

Re: Replacing dialogs with windows

bump

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)