PFC Resize without PFC

More
3 years 5 months ago #310 by Kevin Ridley
Kevin Ridley created the code: PFC Resize without PFC
Code for my 2020 Elevate Session Using the PFC Resize service without the PFC. I have broken out 2 objects from the PFC that can now be used without any other PFC objects. I've also supplied a base window to use as a guide for your ancestor window and a descendant window that shows some different resize options. Also included are 2 objects for the datawindow resize service also broken out of the pfc that you can use. Note - this target is PB2019 R2. Happy resizing!

This message has an attachment file.
Please log in or register to see it.

Please Log in or Create an account to join the conversation.

More
2 years 1 month ago - 2 years 1 month ago #412 by Ramón San Félix Ramón
Ramón San Félix Ramón replied the code: PFC Resize without PFC
I have the answer to resize datawindows....

I leave the result here, where you can see how the desc column is resized in the lower datawindows.

(Example build in PowerBuilder 2019 R3 2728)

This message has an attachment file.
Please log in or register to see it.

Last Edit: 2 years 1 month ago by Ramón San Félix Ramón.

Please Log in or Create an account to join the conversation.

More
2 years 1 month ago #410 by Ramón San Félix Ramón
Ramón San Félix Ramón replied the code: PFC Resize without PFC
Ok thanks Kevin for your example, I'll turn it into a question for the community, to see if someone can help me solve it....

Greetings

community.appeon.com/index.php/qna/q-a/p...w-resize-without-pfc

Please Log in or Create an account to join the conversation.

More
2 years 1 month ago #409 by Kevin Ridley
Kevin Ridley replied the code: PFC Resize without PFC
I guess I should've been more specific in the description of what I posted. The Elevate session and code were for the windows resize service for windows controls. The dw resize objects were included as a bonus to allow you to code your own for resizing datawindow columns etc. That's why there's no code in the u_dw. All I did was break the objects out of the pfc, the rest is up to you. Sorry but I just don't have time to look at this right now. I'd suggest trying to find some pfc documentation and examples on using it in the pfc and figure out what needs to go in your code.

Kevin

Please Log in or Create an account to join the conversation.

More
2 years 1 month ago #408 by Ramón San Félix Ramón
Ramón San Félix Ramón replied the code: PFC Resize without PFC
I've tried the example and it works fine for window controls, but I've tried to get resizing to work on datawindows and I can't get it to work.

It seems that when activating the service the call to the of_setrequestor() function to reference the datawindow in the instance variable is missing.

There is also nothing in the resize event of u_dw, the service should be called there...

With this I have activated the service in the open event of w_test.
I have tested it on dw_lower in the desc column.
I have tried to scale to the right without success. You have to enlarge the window a lot for the column to start scaling.
I don't know if I called the service wrong or if it works well.

I upload the example with what I have modified.

Can someone help me?

Please Log in or Create an account to join the conversation.

More
2 years 4 months ago #394 by Kevin Ridley
Kevin Ridley replied the code: PFC Resize without PFC
Great to hear! Enjoy!

Please Log in or Create an account to join the conversation.

More
2 years 4 months ago #393 by Andrew Davis
Andrew Davis replied the code: PFC Resize without PFC
Kevin

Thanks for this info, I combined the code you put in the RFC resize without the PFC and the Roland Smith / Chris Pollach code you mention to set the response resizable and it all now works.

thanks all

regards

Andrew

Please Log in or Create an account to join the conversation.

More
2 years 4 months ago #392 by Kevin Ridley
Kevin Ridley replied the code: PFC Resize without PFC
Response windows are not resizable by default. Roland Smith and Chris Pollach both have code that can be used to make response windows resize. Here's a link to Roland's code:
www.topwizprogramming.com/freecode_resize_response.html

Please Log in or Create an account to join the conversation.

More
2 years 4 months ago #391 by Andrew Davis
Andrew Davis replied the code: PFC Resize without PFC
Hi,

Thanks for this it is really really useful.

One thing i tried to use it on a response window, and it does not seem to allow it to resize - is it possible to resize response windows.

regards

Andrew

Please Log in or Create an account to join the conversation.

More
2 years 4 months ago #390 by Andrew Davis
Andrew Davis replied the code: PFC Resize without PFC
Hi,

Thanks for this it is really really useful.

One thing i tried to use it on a response window, and it does not seem to allow it to resize - is it possible to resize response windows.

regards

Andrew

Please Log in or Create an account to join the conversation.

Moderators: Appeon Administrator