TAdvOfficePager with Frame in every Tab

delphibeginner
delphibeginner used Ask the Experts™
on
I am creating a program with tabsheets (TMS Advofficepager not the standard tabsheet), now I want to when I press the new button to add multiple components (grid, listbox, richedit, labels, buttons) on every page that is created.

With the frame (added every component on it), this way it a little easier.

I tried the with the parent of frame (advofficepager). But then the buttons (speedbuttons) are not displayed correct.

Is there a example on how to do this?

Thanks.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
developmentguruPresident

Commented:
I believe you are closer than you think.  If you use the parent of the frame then some components will show and others will not.  You could try using other buttons or switch to using the frame instead of it's parent.  Another approach would be to place a TScrollBox in the frame and add your components to it (even a client aligned panel would do).

Let me know if you need more.

Author

Commented:
Thanks for your reply. I will think about it.

I tried something else. The buttons on the frame where displayed in a wrong way, but when I anchors the button to; left, top, bottom, right, the button is displayed correct, but then when I maximise the form, the buttons are stretched as well (I know that is because the anchors).

Is there an other way, or should I use the way you suggested.

btw: here is a pic of how button looks like without the anchors (right, bottom), left and top are true.

Thanks
button-without-right-and-bottom-.PNG
button-with-right-and-bottom-anc.PNG
President
Commented:
Can you post your DFM file?  In case you do not know how, right click on the form and choose "view as text" - copy all of it and paste it in code on the site here.  This will allow me to reproduce your form so I can see the issue.

If you are not willing to do that, I suspect that the drawing of the button is being done on bad coordinates based on it's parent.  As an experiment you could try placing a panel where you want the button to be, then place the button on the panel (making the button the same size as the panel).

Let me know.
Learn SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

Author

Commented:
Thanks for the reply.

I tried to place a panel and then place the button inside the panel, but same result.

My guess is that there is a bug in the button.
developmentguruPresident

Commented:
Back to my last question, can you post the DFM for me?

Author

Commented:
Sorry about my late reply, I have solved the problem, the buttons do have a skindata, and I had the wrong skindata selected.

I will split the point, because I find it right to give you some points for the effort.

Thanks for your help.

Author

Commented:
none

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial