Jump to content

Automate object movement on a layout


rockman
 Share

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

Recommended Posts

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

Link to comment
Share on other sites

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?)

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

This topic is 6436 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
 Share

×
×
  • Create New...

Important Information

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