Normal Topic Positioning @FormAsDialog (Read 2449 times)
obfusc88
Full Member
***
Offline


No personal text

Posts: 194
Joined: Dec 17th, 2005
Positioning @FormAsDialog
Nov 7th, 2018 at 9:48pm
Print Post Print Post  
I tried using @FormAsDialog() to have an image poppup.  But I cannot control its size or positon.  Is there a way to do this with @OpenWindow or @PopUpSelectPosition, or some other method?

The image is a JPG in a form named  FRACTIONS_DECIMALS in a different database named MENU.  The only element on the form, type is Static Picture.

The code is very simple, and works:
Code
Select All
var vResult as string
vResult = @FormAsDialog("FRACTIONS_DECIMALS")
 



This OpenForm also prevents any data entry until the Image is closed.  Can it be made to stay open for reference, until closed after more data is entered?
  
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: Positioning @FormAsDialog
Reply #1 - Nov 7th, 2018 at 10:19pm
Print Post Print Post  
Does this really need to be a popup?

I had a similar issue and just added a Tab Page. On the TabPage, I just added a single StaticPicture element with the path in the label.  Now people can be on TabPage 1 and do data entry, then switch back and forth between the "StaticPictureTab" and TabPage 1 or x, to see the reference info.  That solves positioning, so it does not cover any entry elements, and I don't need to close it to keep working. 

And since there is no bound field, the size of the database does not increase, it's not like I am storing the same picture in every record.

The only problem is they cannot Copy/Paste from the reference chart to another element, but you have the same problem if you use a pop up window.

Hope this helps.
  



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


No personal text

Posts: 194
Joined: Dec 17th, 2005
Re: Positioning @FormAsDialog
Reply #2 - Nov 10th, 2018 at 11:34pm
Print Post Print Post  
Thanks for a temp fix,  Bob.   That can work short term.   But I really would like to position a chart image so it is visible while doing data entry.   

So, still want to know how to position FormAsDialog?
  
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: Positioning @FormAsDialog
Reply #3 - Nov 16th, 2018 at 8:10pm
Print Post Print Post  
Hi Obfusc88,

You currently can't position the FormAsDialog(), Nor can a user continue entering data while it is open as that window is modal and must return a value to the programming before Sesame can continue. If they are running Sesame full screen, you can use the StaticDraw family of commands to draw the chart in a place where it is useful and not impeding data entry. If you need a window with the image in it, you'll likely need to use @ASynchShell() to open the image in an image viewer.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
obfusc88
Full Member
***
Offline


No personal text

Posts: 194
Joined: Dec 17th, 2005
Re: Positioning @FormAsDialog
Reply #4 - Nov 19th, 2018 at 4:44am
Print Post Print Post  
OK Ray.

That makes sense even if not the answer I hoped for.   Guess I will use Bob's temp solution until I come up with something different.

Thanks, have Happy Thanksgiving
  
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: Positioning @FormAsDialog
Reply #5 - Nov 19th, 2018 at 2:22pm
Print Post Print Post  
I wish you a Happy Thanksgiving as well!

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged