![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
Join Date: Feb 2005
Posts: 45
Rep Power: 0
![]() |
Frames[SOLVED]
Hi. Can someone tell me if it is possible to create the same effect as an iFrame in html in delphi. eg www.travisonline.com.
I have a main form and have a title image on it and a menu and i want to be able to click a button on the menu and for it to open a form, but i want the form to be embedded in the current main form. I hope that makes sense. Basically, i dont want a seperate form to open in a new window when i put form_name.show; on the on click property of a button. I want it embedded in the curent form. Hope someone can help. Thanks in advance. Last edited by gj15987; Feb 20th, 2005 at 5:29 AM. |
|
|
|
|
|
#2 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
That reminds me - need Travis concert tickets. Anyone know if they're playing in London anytime soon?
Anyhoo, onto the problem. I don't know how you would do it in Delphi, but in Visual Basic, you can do this by drawing a PictureBox, and putting another one inside it. A PictureBox is usually used to show a picture, but can be used to hold other controls as well. Make it look however you want, draw some controls in, set the Visible property to False, and instead of using Form_Name.Show, use Picture_Name.Visible := True. |
|
|
|
|
|
#3 |
|
Programmer
Join Date: Feb 2005
Posts: 45
Rep Power: 0
![]() |
Thank you so much. I used frames and just took your advice and layered them ontop of each other so then when i clikc a button, the one i need will become visible.
Thanks again. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|