如何实现的! thinkcat(思想猫):发给你了。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 yuanjujing(※挪威森林※):发了。 turbozzh(涡轮超人):发了。 zws():发了。wangxd1976(东东):给我你的地址我才能发呀。 我把代码贴出来了//unit1.pasunit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ComCtrls, StdCtrls, ExtCtrls, Tabs;type TForm1 = class(TForm) TabSet1: TTabSet; StatusBar1: TStatusBar; Notebook1: TNotebook; Memo1: TMemo; Memo2: TMemo; procedure FormCreate(Sender: TObject); procedure TabSet1Change(Sender: TObject; NewTab: Integer; var AllowChange: Boolean); private { Private declarations } public { Public declarations } end;var Form1: TForm1;implementation{$R *.dfm}procedure TForm1.FormCreate(Sender: TObject);begin Tabset1.Parent:=StatusBar1; Tabset1.Left:=1; Tabset1.Top:=1; Tabset1.Width:=198;end;procedure TForm1.TabSet1Change(Sender: TObject; NewTab: Integer; var AllowChange: Boolean);begin Notebook1.PageIndex:=NewTab;end;end.//unit1.dfmobject Form1: TForm1 Left = 144 Top = 87 Width = 544 Height = 375 Caption = 'Form1' Color = clBtnFace Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText Font.Height = -11 Font.Name = 'MS Sans Serif' Font.Style = [] OldCreateOrder = False OnCreate = FormCreate DesignSize = ( 536 348) PixelsPerInch = 96 TextHeight = 13 object Notebook1: TNotebook Left = 0 Top = 0 Width = 536 Height = 327 Align = alClient TabOrder = 2 object TPage Left = 0 Top = 0 Caption = 'Code' object Memo1: TMemo Left = 0 Top = 0 Width = 536 Height = 327 Align = alClient Lines.Strings = ( 'This page is Code') TabOrder = 0 end end object TPage Left = 0 Top = 0 Caption = 'Diagram' object Memo2: TMemo Left = 0 Top = 0 Width = 536 Height = 327 Align = alClient Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText Font.Height = -19 Font.Name = 'MS Sans Serif' Font.Style = [] Lines.Strings = ( 'This page is Diagram') ParentFont = False TabOrder = 0 end end end object TabSet1: TTabSet Left = 112 Top = 240 Width = 113 Height = 17 Anchors = [akLeft] DitherBackground = False Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText Font.Height = -11 Font.Name = 'MS Sans Serif' Font.Style = [] StartMargin = 0 Tabs.Strings = ( 'Code' 'Diagram') TabIndex = 0 OnChange = TabSet1Change end object StatusBar1: TStatusBar Left = 0 Top = 327 Width = 536 Height = 21 Panels = < item Width = 200 end item Text = 'And this is the Status' Width = 50 end> SimplePanel = False endend 该死的破网,昨天断网没上来,能给我发一份吗![email protected] to li_zhifu(东北人):我用你的方法试了,ok。但我如果想用一个新建按钮动态增加新也该如何如里! 就是新增的memo如何指定parent,有谁知道吗! 如何获取PopupMenu1是由哪个对象pop出来的? 使用DBLookupCombobox时的问题! database的创建问题 4 如何截获某一个端口的数据包?并加以分析? 快救我一命,先谢谢啦!我在设置Access数据库时遇到问题? 如何用table控件实现过滤和排序? 还是关于excel的. ADOConnection的问题??? about Delphi+Access? 有在线的Delphi高手吗? 我不得不骂人了!!!!这老师应该下岗
发了。
发了。
wangxd1976(东东):给我你的地址我才能发呀。
unit Unit1;interfaceuses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ComCtrls, StdCtrls, ExtCtrls, Tabs;
type
TForm1 = class(TForm)
TabSet1: TTabSet;
StatusBar1: TStatusBar;
Notebook1: TNotebook;
Memo1: TMemo;
Memo2: TMemo;
procedure FormCreate(Sender: TObject);
procedure TabSet1Change(Sender: TObject; NewTab: Integer;
var AllowChange: Boolean);
private
{ Private declarations }
public
{ Public declarations }
end;var
Form1: TForm1;implementation{$R *.dfm}procedure TForm1.FormCreate(Sender: TObject);
begin
Tabset1.Parent:=StatusBar1;
Tabset1.Left:=1;
Tabset1.Top:=1;
Tabset1.Width:=198;
end;procedure TForm1.TabSet1Change(Sender: TObject; NewTab: Integer;
var AllowChange: Boolean);
begin
Notebook1.PageIndex:=NewTab;
end;end.//unit1.dfm
object Form1: TForm1
Left = 144
Top = 87
Width = 544
Height = 375
Caption = 'Form1'
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
OldCreateOrder = False
OnCreate = FormCreate
DesignSize = (
536
348)
PixelsPerInch = 96
TextHeight = 13
object Notebook1: TNotebook
Left = 0
Top = 0
Width = 536
Height = 327
Align = alClient
TabOrder = 2
object TPage
Left = 0
Top = 0
Caption = 'Code'
object Memo1: TMemo
Left = 0
Top = 0
Width = 536
Height = 327
Align = alClient
Lines.Strings = (
'This page is Code')
TabOrder = 0
end
end
object TPage
Left = 0
Top = 0
Caption = 'Diagram'
object Memo2: TMemo
Left = 0
Top = 0
Width = 536
Height = 327
Align = alClient
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -19
Font.Name = 'MS Sans Serif'
Font.Style = []
Lines.Strings = (
'This page is Diagram')
ParentFont = False
TabOrder = 0
end
end
end
object TabSet1: TTabSet
Left = 112
Top = 240
Width = 113
Height = 17
Anchors = [akLeft]
DitherBackground = False
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
StartMargin = 0
Tabs.Strings = (
'Code'
'Diagram')
TabIndex = 0
OnChange = TabSet1Change
end
object StatusBar1: TStatusBar
Left = 0
Top = 327
Width = 536
Height = 21
Panels = <
item
Width = 200
end
item
Text = 'And this is the Status'
Width = 50
end>
SimplePanel = False
end
end
我用你的方法试了,ok。但我如果想用一个新建按钮动态增加新也该如何如里!