Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Feb 19th, 2005, 6:05 PM   #1
gj15987
Programmer
 
Join Date: Feb 2005
Posts: 45
Rep Power: 0 gj15987 is on a distinguished road
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.
gj15987 is offline   Reply With Quote
Old Feb 19th, 2005, 7:13 PM   #2
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
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.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Feb 20th, 2005, 5:28 AM   #3
gj15987
Programmer
 
Join Date: Feb 2005
Posts: 45
Rep Power: 0 gj15987 is on a distinguished road
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.
gj15987 is offline   Reply With Quote
Old Feb 20th, 2005, 9:42 AM   #4
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Glad to hear it works.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:01 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC