| View previous topic :: View next topic |
| Author |
Message |
Kevin Grandmaster Cheater Supreme
Reputation: 0
Joined: 07 Mar 2007 Posts: 1139 Location: Spiderman-World
|
Posted: Wed Jul 04, 2007 8:03 am Post subject: TabbedNotebook in delphi |
|
|
Is it possible to make a button on your form which creates a new tab in tabbednotebook ?
im making a webbrowser. i wanna add a feature like firefox has. Then when you click the button it opens a new tab with a webbrowser in.
is it possible?
|
|
| Back to top |
|
 |
assaf84 Expert Cheater
Reputation: 0
Joined: 03 Oct 2006 Posts: 238
|
Posted: Wed Jul 04, 2007 10:47 am Post subject: |
|
|
| I'm sure there is an "Add" method of the tabbednotebook... you can check..
|
|
| Back to top |
|
 |
BoRed Grandmaster Cheater Supreme
Reputation: 0
Joined: 24 Apr 2007 Posts: 1176 Location: ╞|ous█
|
Posted: Wed Jul 04, 2007 2:54 pm Post subject: |
|
|
I think you can last i checked
_________________
I got my old name back.......=)
Working on making website for stealth trainers (almonst done just having technical troubles)
Stealth forums will be down for 8 days or more starting august 2 saturday. |
|
| Back to top |
|
 |
Kevin Grandmaster Cheater Supreme
Reputation: 0
Joined: 07 Mar 2007 Posts: 1139 Location: Spiderman-World
|
Posted: Thu Jul 05, 2007 6:48 am Post subject: |
|
|
i know.
but i want to be able to make so you can do like in Firefox...
when you click a button a new tab becomes visible and with a webbrowser on (possible you should make the tabs first)
but the problem is i cant make 1 tab invisible, and another visible.
|
|
| Back to top |
|
 |
DevilGilad Grandmaster Cheater
Reputation: 0
Joined: 10 May 2007 Posts: 624 Location: Delete C:\WINDOWS folder and you'll be able to see me.
|
Posted: Thu Jul 05, 2007 6:58 am Post subject: |
|
|
I'm sure you can edit it with 'Add'...
_________________
|
|
| Back to top |
|
 |
Kevin Grandmaster Cheater Supreme
Reputation: 0
Joined: 07 Mar 2007 Posts: 1139 Location: Spiderman-World
|
Posted: Thu Jul 05, 2007 7:01 am Post subject: |
|
|
i want to be able to create new tabs using a button
so when the program is running, i can make new tabs.
|
|
| Back to top |
|
 |
MadDoom Cheater
Reputation: 0
Joined: 27 Dec 2006 Posts: 38
|
Posted: Thu Jul 05, 2007 7:19 am Post subject: |
|
|
Here:
TabbedNotebook1.Pages.Insert(0,'New Tab');
|
|
| Back to top |
|
 |
Kevin Grandmaster Cheater Supreme
Reputation: 0
Joined: 07 Mar 2007 Posts: 1139 Location: Spiderman-World
|
Posted: Thu Jul 05, 2007 7:45 am Post subject: |
|
|
| it worked, now, can i do so it automaticly sets a webbrowser component on the tab `?
|
|
| Back to top |
|
 |
assaf84 Expert Cheater
Reputation: 0
Joined: 03 Oct 2006 Posts: 238
|
Posted: Thu Jul 05, 2007 10:40 am Post subject: |
|
|
Kevin, It's more logically to add tabs in runtime than making some tabs invisible, because you can't know how many tabs the user want to add, and it's also saves some memory.
To set a TWebBrowser component you should make an array of TWebBrowsers, and every time you add a tab, just create another TWebBrowser. Remember to put the parent of it as the tab it'll be in, and align it so it will look normal.
|
|
| Back to top |
|
 |
DeletedUser14087 I post too much
Reputation: 2
Joined: 21 Jun 2006 Posts: 3069
|
Posted: Thu Jul 05, 2007 11:14 am Post subject: |
|
|
Button1.Click(Tsedner:Object)
Begin
{If this button is clicked this will happen)
tabbednotebook.AddTab;
End;
Try it.
|
|
| Back to top |
|
 |
Kevin Grandmaster Cheater Supreme
Reputation: 0
Joined: 07 Mar 2007 Posts: 1139 Location: Spiderman-World
|
Posted: Thu Jul 05, 2007 1:29 pm Post subject: |
|
|
| wont work,maddooms work.
|
|
| Back to top |
|
 |
|