Schultz’s PowerBuilder Notes

Datawindow Button


Disabling a button on a datawindow

Datawindow buttons do not have a Disabled property. So showing them as “disabled” is not clear cut. Here is one way

In the datawindow painter, create a static text control of the same size as the button

  • Set the border to outline
  • Set its text to ”…”
  • Text should be bold and colored dark gray
  • Move it directly underneath the button

Now hide the button in script to disable it

dw_ff.Object.b_seeded.Visible = ab_switch

About these ads

May 22, 2008 - Posted by | Datawindow PowerScript | , , , ,

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: