Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Icon Not Visible On Button in Datawindow

51 views
Skip to first unread message

Pallav

unread,
Jan 22, 2010, 5:24:08 AM1/22/10
to
Hi,
I am facing a problem in powerbuilder application. An attachment icon
(it's simply a icon) when I am putting on the button in the
datawindow
it's not displaying i.e. is not visible. On the attachment icon in
its
visible properties the following expression I have put(if
(attach_count

> 0,1,0)) where attach_count value it's fetching from the database.


When the window opens and when the attach_count > 0 then the
attachment icon is visble when it's put by side of the button, when
it's put on the button the icon is not visible. I have tried for the
property 'Bring to Front' but it did n't help. Then I have coded in
the window like:
IF dw_comment.getitemnumber(1,'attach_count') = 0 THEN
dw_comment.object.p_attachment.visible = 0
ELSE
dw_comment.object.p_attachment.visible = 1
END IF
where p_attachment is the icon name.

But it did not help as still the icon remains invisible even if the
attach count value is 1.

Please reply for the above.

Thanks,
Pallav


Dr. S B Gogia

unread,
Jan 23, 2010, 6:05:35 AM1/23/10
to
A button normally remains on top so even if the icon is visible it would
remain below the button (ie hidden). This may be the reason for your problem

Are you changing the icon to display a change in the buttonclicked! event
functionality. If so better to change the picture on the button dynamically
through If( attach_count = 0, "[default picture]", "[icon filename]"
HTH
S B Gogia
"Pallav" <palla...@gmail.com> wrote in message
news:35bf8217-b670-4a42...@n7g2000yqb.googlegroups.com...

0 new messages