Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Follow up to panel move question



Permlink Replies: 3 - Last Post: Oct 20, 2017 4:26 AM Last Post By: Roy Lambert
Lawson Lutchman

Posts: 31
Registered: 8/12/05
Follow up to panel move question
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 20, 2017 12:51 AM
Hi Group,

I have a panel which does an OnClick event from a button at runtime

panel1.left:=panel.left +168;

The trouble is if the button is clicked again the panel will move again.

How do I ensure that the panel will not move past 168 without disabling the button control.

Thanks and regards,
Lajos Juhasz

Posts: 801
Registered: 3/14/14
Re: Follow up to panel move question
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 20, 2017 2:37 AM   in response to: Lawson Lutchman in response to: Lawson Lutchman
Lawson Lutchman wrote:

Hi Group,

I have a panel which does an OnClick event from a button at runtime

panel1.left:=panel.left +168;

The trouble is if the button is clicked again the panel will move
again.

How do I ensure that the panel will not move past 168 without
disabling the button control.

Are you joking?

{code}
if panel.left<168 then
panel1.left:=panel.left +168;
{code]
Lawson Lutchman

Posts: 31
Registered: 8/12/05
Re: Follow up to panel move question
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 20, 2017 3:08 AM   in response to: Lajos Juhasz in response to: Lajos Juhasz
Thanks...sometime the simple things...>
Lajos Juhasz wrote:
Lawson Lutchman wrote:

Hi Group,

I have a panel which does an OnClick event from a button at runtime

panel1.left:=panel.left +168;

The trouble is if the button is clicked again the panel will move
again.

How do I ensure that the panel will not move past 168 without
disabling the button control.

Are you joking?

{code}
if panel.left<168 then
panel1.left:=panel.left +168;
{code]
Roy Lambert

Posts: 1,063
Registered: 8/7/01
Re: Follow up to panel move question
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 20, 2017 4:26 AM   in response to: Lajos Juhasz in response to: Lajos Juhasz
Lajos

Are you joking?

{code}
if panel.left<168 then
panel1.left:=panel.left +168;
{code]

Your code will break this requirement

How do I ensure that the panel will not move past 168 without
disabling the button control.

but I think we should leave it to Lawson to figure it out <g>

Roy
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02