Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Using empty web-viewer to capture button press out of fields


This topic is 5207 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hi all

I have used a technique that Mr.Vodka documents to capture mouse button presses outside of field boxes. I have used an empty web viewer to do this. The idea is to stop filemaker from auto-saving the field contents that have been modified. All works well to an extent.

I have anchored the web viewer so that it auto resizes when the window is resized. The problem I am having is that when a click is performed at the bottom of the screen when the window has been resized vertically larger than its default setting, the click is not captured by the web viewer and field contents are auto-saved. However this is not the case horizontally??

I have checked that the web-viewer is auto-resizing correctly by using a fill colour that differs from the background colour and everything seems to resize acordingly.

Does anyone have any ideas as to why this is happening?

Thanks in advance

Lee

Posted (edited)

Thanks

I should mention that this problem only occurs on the MAC. Windows does not allow me to stretch the window larger than the size it was developed.

Could I PM the file?

Lee

Edited by Guest
Posted

Ok I have took the bulk out of the database as the file is extremely large.

I have left functionality in adding, editing and viewing Artwork Types.

The web viewer has only been applied to add and edit.

One web viewer is filled red to make it visible.

The issue is that everything is scripted and adding or editing records needs to be submitted by pressing a submit button. One of the validation checks is to test for uniqueness using a count on a self-join. If the web viewer does not capture a mouse button press outside of fields or buttons, the record is auto-saved, hence, the uniqueness test fails.

When the window is stretched, the bottom of the web viewer does not capture the mouse click even though it is visibly auto-resizing. This only seems to be the case on the mac.

Thanks for your time

Lee

MayaGalleryFMForum.zip

Posted

To clarify: grouping the two web viewers places the entire grouped object in the header. "Hanging" objects from the header into other parts is an old trick, but it is not a supported feature and it has its quirks.

Posted

That's done the trick.

A little of topic but which key do I hold down to resize objects with the mouse one pixel at a time?

And how do I set header size in pixels without dragging the part tab.

Thanks again

Lee

Posted

On a Mac, it's the Command key. To set a part size, select it (by clicking on its tab), then enter some numbers into the Position tab of the Inspector.

Not sure why you need a header in a form layout, though.

This topic is 5207 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.