| View previous topic :: View next topic |
| Author |
Message |
Kevin Grandmaster Cheater Supreme
Reputation: 0
Joined: 07 Mar 2007 Posts: 1139 Location: Spiderman-World
|
Posted: Mon Jul 23, 2007 9:11 am Post subject: Creating a Webbrowser on a TabbedNotebook while in progress |
|
|
you all know IE7, FF, Avant Browser... they all got tabs.
How is it possible to do that?
I know a code which makes you able to create tabs in a notebook component while its in progress, but how do i at the same time add a webbrowser on the notebook tab?
hope you understand or i'll try explain deeper.
|
|
| Back to top |
|
 |
Trow Grandmaster Cheater
Reputation: 2
Joined: 17 Aug 2006 Posts: 957
|
Posted: Mon Jul 23, 2007 9:30 am Post subject: |
|
|
hmm i've made one of those before.
tabs are "arrays of references to the web browsers" which cannot be destroyed.
You assign a TAG index to each browser and alloc each of those TAG indices to the web controls you have on your form which have the same TAG index as your index, why TAG explained later.
on tab button click event, you zOrder the TAG index web browser 0.
then you get a web browser (you can figure out the new tab and close tab on your own, too lazy to type)
why TAG index: tab buttons' indices get shifted when buttons of index less than yours is removed, so the tab button index is relative not static. use TAG to make for yourself a static reference to the web controls.
_________________
Get kidnapped often. |
|
| Back to top |
|
 |
Kevin Grandmaster Cheater Supreme
Reputation: 0
Joined: 07 Mar 2007 Posts: 1139 Location: Spiderman-World
|
Posted: Mon Jul 23, 2007 9:43 am Post subject: |
|
|
actually i didnt understood much of that?
explain what TAG is?
|
|
| Back to top |
|
 |
assaf84 Expert Cheater
Reputation: 0
Joined: 03 Oct 2006 Posts: 238
|
Posted: Mon Jul 23, 2007 12:00 pm Post subject: |
|
|
| You can make an array of TWebBrowsers, and everytime you add a tab yo your tabbednotebook, just do add another TWebBrowser to the array, create it, set his Parent to the tab that u created, set his other properties (Height, Width, Left, Right, etc..), and don't forget to set his Visible property to True.
|
|
| Back to top |
|
 |
Trow Grandmaster Cheater
Reputation: 2
Joined: 17 Aug 2006 Posts: 957
|
Posted: Mon Jul 23, 2007 6:21 pm Post subject: |
|
|
Ah, the tag
| Description: |
|
| Filesize: |
12.6 KB |
| Viewed: |
3299 Time(s) |

|
_________________
Get kidnapped often. |
|
| Back to top |
|
 |
|