1. Daniel Seguin
  2. PowerBuilder
  3. Wednesday, 28 August 2024 20:51 PM UTC

Hello,

 

I have created this user object inherited from u_base in pfemail.pbl

which contains a user object that does my toolbar

and it contains a rich text control 

 

Here is the user object that does the toolbar

 

When I use the user object that contains the toolbar and the rich text control on the window

 

My purpose is to remove the legacy edit box (old) and replace with my new  object.

The new  object is making the window crash even when I give it a name that no objects are looking for and also the new object is not visible.

 

My alternative solution was to make the user object that contains the buttons and rich text edit box not use a sub user object for the toolbar

 

That Works!

Any ideas why my first idea did not work?

 

 

Daniel Seguin Accepted Answer Pending Moderation
  1. Saturday, 31 August 2024 21:29 PM UTC
  2. PowerBuilder
  3. # 1

Hello,

here is the example of custom user object that contains a toolbar (child user object) and a rich text control which is on a user object which is sitting on a window object. 

 

 

Comment
There are no comments made yet.
Daniel Seguin Accepted Answer Pending Moderation
  1. Saturday, 31 August 2024 21:22 PM UTC
  2. PowerBuilder
  3. # 2

Hello,

Here is an example of user object that contains a toolbar (child user object) along with a rich text control

sitting on a window of an application.

 

When launching the app, going to the user screen...

Comment
There are no comments made yet.
David Peace (Powersoft) Accepted Answer Pending Moderation
  1. Thursday, 29 August 2024 15:58 PM UTC
  2. PowerBuilder
  3. # 3

Hi Daniel

So if I'm correct you have a window the has a Richtext editor on it and yo are looking to replace the by overlaying your new control on the top. The simple solution is to make the old control invisible and the new one visible. Then you need to start changing the references to the old object in the code for the Window to reference the new control with any refactoring that is required.

If that is not your problem, then can you give some more information, like what is erroring etc

Thanks

David

 

Comment
  1. Daniel Seguin
  2. Friday, 30 August 2024 02:46 AM UTC
Hello David,



Not quite.

I have a legacy html editor that I am replacing by a custom object that includes a toolbar with buttons and rich text control



Yes, I had backup the old control and made it invisible in order to help during the refactoring to the new custom object.



The issue I had with the new object was the fact I made the toolbar as one object, so on my new custom object I had a custom toolbar object and the rich text control.

The toolbar object contained some buttons to do actions on the text within the rich edit text box.



It appeared that having a child custom object on a custom object was causing an issue



So my alternative solution was to create the custom object that contained a rectangle with buttons to do actions on the text

within the rich text editor.

This was the boolbar was not a sub custom object.

That the did the trick

I will try to figure out later why the sub object within an object was causing the issue



Hopefully I was clearer.



I will to reproduce the issue on my workstation because maybe it was something within the client's framework.



To be continued....





  1. Helpful
  1. David Peace (Powersoft)
  2. Friday, 30 August 2024 07:46 AM UTC
Hi Daniel

Sorry I misunderstood, I cannot see why you cannot have a custom object on another custom object, I'm sure that we have done that many times. Let me know how you get on and if I can help I'll try.



Cheers

David
  1. Helpful 1
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.