Einzelnen Beitrag anzeigen

marabu

Registriert seit: 6. Apr 2005
10.109 Beiträge
 
#3

Re: New TabSheet with TWebbrowser and TToolBar

  Alt 5. Jan 2006, 16:06
While ToolBar2.Create() effectively reinitializes the ToolBar you already employ on your first tabsheet, ToolBar2 := TToolBar.Create() overwrites the global variable ToolBar2 you might use elsewhere to refer to the prevous instance. Think twice - normally only one toolbar is assigned to a form with a pagecontrol. Position is preferably on top of the form, right below the menu. If the user changes the active tabsheet, you query the state of the command buttons from the then active browser control.

marabu
  Mit Zitat antworten Zitat