Link to home
Start Free TrialLog in
Avatar of delphibeginner
delphibeginnerFlag for Netherlands

asked on

TAdvOfficePager with Frame in every Tab

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.
Avatar of developmentguru
developmentguru
Flag of United States of America image

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.
Avatar of delphibeginner

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of developmentguru
developmentguru
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
Back to my last question, can you post the DFM for me?
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.
none