Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Automate object movement on a layout

Featured Replies

This may be a simple question... Is it possible script the movement of an object on a layout?

I'm looking for something like this:

Move/Resize Object [Object Name: <name of object>;

Height: <n>; Width: <n>; Top: <n>; Left: <n>]

Thanks for any insight,

Jeff

Nope.

Sounds like you need an animation program, not a database.

I don't know of a way to do *that* -- but if there's a small number of possibilities among which you wish to choose (small & large, or right and left versions of the same field, say), you can probably simulate the same effect by having multiple versions of the object of which only one is visible at any time. Conditional self-joins would be one way to accomplish it.

To do a conditional self-join, have a constant field (auto-enter 1 in every record), and use two (or more) fields which can take a Boolean flag (1) depending on some condition or according to some scripted set-field operation. Then (in FM7) just set up a relation between any record and any other record that BOTH shares the same recordID AND Flag on left =Constant on right.

Now, a related field placed directly on the layout via this relation will show *this very record's* field data *only if* the appropriate flag is positive (1).

Does this sound workable for your situation, or do you really need a flexible move? (And, whatever for?)

  • Author

I'd like to create a Scheduler program that has the GUI similar to MS Outlook. In this way each appointment is drawn on an underlying grid of "time of day". Also if an appointment is 60 minutes long it will be drawn twice as tall as a 30 minute appointment... hence the need to be able to move/resize a button or field or container.

Attached is a screen shot of what I created in MS Access.

Sample Schedule Dimmed.JPG

Nice GUI, Rockman!

Surely others will know the bottom line. I think FM can color-code background of time blocks pretty accurately, but not neat text-flow with scroll-bars for variable height text-fields... Seems ripe for a plug-in!

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.