1. malka tzarfati
  2. PowerBuilder
  3. Tuesday, 9 April 2024 05:50 AM UTC
Hi ,I have user object with picturebuttons . when i clicked at the picturebutton (that on the user object)  there is a script with picturebutton.displayname property 
.at pb 2022 r3 the picture that on the button Disappeared after the clicked and the picture is not display
. at pb 2019 it doesnt heppanded.
someone know what can i do to solve it ?



Attachments (1)
malka tzarfati Accepted Answer Pending Moderation
  1. Thursday, 11 April 2024 08:12 AM UTC
  2. PowerBuilder
  3. # 1

I just realize that the problem happened when  the picture button is disable :

in this code :

           current_pb.enabled = false

           current_pb.disabledname = "hello.bmp"

the picturebutton will not display the picture .

 

and at this code:

            current_pb.enabled = true

            current_pb.disabledname = "hello.bmp"

            current_pb.enabled = false 

it will be ok.

at pb 2019 there was no problem with the code above...

there are a lot of pictures in the application

and i can't change them all 

any suggestions?

 

Best regards, 

Comment
  1. Andreas Mykonios
  2. Thursday, 11 April 2024 08:29 AM UTC
This seems to be easy reproduceable. Open a support case with a simple test case where the issue is demonstrated (https://www.appeon.com/standardsupport/newbug).

Andreas.
  1. Helpful
There are no comments made yet.
malka tzarfati Accepted Answer Pending Moderation
  1. Tuesday, 9 April 2024 06:51 AM UTC
  2. PowerBuilder
  3. # 2

Hi , 

Thank you for your response :)

this is  happned just at runtime after the script :

current_pb.DisabledName = "E:\repha-el\medmaster\pictures\Res1440\upper30p"
Comment
  1. Chris Pollach @Appeon
  2. Tuesday, 9 April 2024 11:44 AM UTC
Hi Malka;

FWIW: all your App images should be linked into either a PBD / DLL and your app should not be using paths to the picture images. That way, the entire app is self contained and your app is not dependent on drive / network issues (then no image appears if there is a problem). Food for thought.

Regards ... Chris
  1. Helpful 1
There are no comments made yet.
Andreas Mykonios Accepted Answer Pending Moderation
  1. Tuesday, 9 April 2024 06:21 AM UTC
  2. PowerBuilder
  3. # 3

Hi.

Are you facing that issue when running your application from the IDE or in runtime?

Andreas.

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.