Normal Topic Position of Slate (Read 3192 times)
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Position of Slate
Jul 22nd, 2008 at 8:24pm
Print Post Print Post  
PopUpSelectPostion ( ) does not seem to work with Slate. Is there a way to dictate as to where the slate should open? Thanks.

Bharat
  
Back to top
 
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Position of Slate
Reply #1 - Jul 22nd, 2008 at 8:32pm
Print Post Print Post  
As with most fully qualified windows (those with a frame provided by the desktop), no. Some desktops provide a means to arrange the position of fully qualified windows, such as cascade (the default on MS), tile, place via the mouse, etc... It is considered inappropriate for an application to ignore these user settings.
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Re: Position of Slate
Reply #2 - Jul 22nd, 2008 at 8:41pm
Print Post Print Post  
Mark, thanks for explanation. I want the slate to automatically close using CloseSlate ( ) after placing a value in an Element but the slate seem to cover that element. Other alternative is to move the element but that changes the whole landscape!!!
  
Back to top
 
IP Logged
 
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Re: Position of Slate
Reply #3 - Jul 23rd, 2008 at 1:39am
Print Post Print Post  
I may be able to create a utility to solve this. 
I am thinking of the position and the size being defined.

I will try to get to it this weekend. 

  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged
 
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Re: Position of Slate
Reply #4 - Jul 23rd, 2008 at 4:29am
Print Post Print Post  
Thanks Bob. I am looking forward to the solution.
  
Back to top
 
IP Logged
 
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Re: Position of Slate
Reply #5 - Jul 28th, 2008 at 7:14pm
Print Post Print Post  
Hello Bharat....

I did get a chance to work on rhis over the weekend.  I have sent you an email with an attached utility file that you can try.

Instructions are included in the email.  Let me know how this works for you.

Instructions for use:
Make a directory for SensibleSolutions under C:\Sesame2\Utilities\ folder.
Copy the SlateSpot.exe utility file into C:\Sesame2\Utilities\SensibleSolutions\ folder.
There are two ways to make this run, hard coded or using variables:

1.  With hard coded values
After a WriteLn command, insert the next line in your program, replacing the numbers with the values that you want.
Code
Select All
CreateAProcess("C:\Sesame2\Utilities\SensibleSolutions\SlateSpot.exe  /TopLeftX=300 /TopLeftY=500 /Width=600 /Height=200") 



When this utility runs, there is a slight delay for Sesame to create the original Sesame Slate.  It is not possible to resize/move the Slate until that is completed.  It may be best to use the CreateAProcess command after the first WriteLn command.  All subsequent WriteLns will go to the new position.

Any feedback will be great.
  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged
 
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Re: Position of Slate
Reply #6 - Jul 29th, 2008 at 4:00pm
Print Post Print Post  
Thanks Bob. It works Great!!!
  
Back to top
 
IP Logged
 
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Re: Position of Slate
Reply #7 - Jul 30th, 2008 at 4:19am
Print Post Print Post  
Glad to hear that.

I am curious, did you use the simple hard coded version or the more complex one with variables?
If you use variables, then you can make that into a Global function and just pass in the variables when you call the function after any WriteLn command in any module.
  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged
 
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Re: Position of Slate
Reply #8 - Jul 31st, 2008 at 10:03pm
Print Post Print Post  
I used the simple hard coded version. Thanks.
  
Back to top
 
IP Logged
 
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Re: Position of Slate
Reply #9 - Mar 12th, 2018 at 4:39am
Print Post Print Post  
It has been a while (over 10 years) since i provided this utility to position the Slate window.  After some recent installs using this tool, I realized that the values I provided here are not the ones that I seem to use the most often.  So, here is the command line again, with the more useful position values:
Code
Select All
OpenSlate()
CreateAProcess("C:\Sesame2\Utilities\SensibleSolutions\SlateSpot.exe  /TopLeftX=30 /TopLeftY=50 /Width=600 /Height=400")  


So, just insert these lines before your WriteLn lines.  As long the Slate is opened, it will stay in the same position unless you manually move it.  I found that inserting OpenSlate() before the CreatAProcess command made the positioning work faster. 

Good luck.
  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged