0
@@ -19,17 +19,12 @@ type
0
procedure FormShow(Sender: TObject);
0
procedure FormClose(Sender: TObject; var Action: TCloseAction);
0
- procedure FormCreate(Sender: TObject);
0
- procedure PageControl1Change(Sender: TObject);
0
- GeckoBrowser1: TGeckoBrowser;
0
- BrowserCreated: Boolean;
0
@@ -39,123 +34,95 @@ implementation
0
-procedure TAboutBagelForm.FormCreate(Sender: TObject);
0
- BrowserCreated := False;
0
- //ShowMessage(IntToStr(PageControl1.TabIndex));
0
- GeckoBrowser1 := TGeckoBrowser.Create(Self);
0
- GeckoBrowser1.Align := alClient;
0
- GeckoBrowser1.Enabled := False;
0
- GeckoBrowser1.Parent := TabSheet2;
0
- //ShowMessage(IntToStr(PageControl1.TabIndex));
0
procedure TAboutBagelForm.FormShow(Sender: TObject);
0
-//p:nsIProtocolHandler;
0
-http:nsIHttpProtocolHandler;
0
-ips:IInterfacedCString;
0
-tmp:='Bagel作者=plus7'+#13#10;
0
-tmp:=tmp+'TGeckoBrowser作者=>>74'+#13#10;
0
-tmp:=tmp+'Contributers=募集中'+#13#10;
0
-tmp:=tmp+'SpecialThanks=Mozilla.org'+#13#10;
0
-tmp:=tmp+' =Borland Software Corporation'+#13#10;
0
-tmp:=tmp+' =OpenJane'+#13#10;
0
-tmp:=tmp+' =ホットゾヌ'+#13#10;
0
-tmp:=tmp+' =ギコナビ'+#13#10;
0
-tmp:=tmp+' =Donut,DonutP,unDonut,Donut RAPT'+#13#10;
0
-tmp:=tmp+' =いまBagelを使っているあなた'+#13#10;
0
-list:=TStringList.Create;
0
-list.SetText(PChar(tmp));
0
-for i:=0 to list.Count-1 do
0
+ http:nsIHttpProtocolHandler;
0
+ productSub:nsACString;
0
+ ips:IInterfacedCString;
0
- item:=TListItem.Create(ListView1.Items);
0
- ListView1.Items.AddItem(item);
0
- item.Caption:=list.Names[i];
0
- item.SubItems.Add(Copy(list.Strings[i],1+Pos('=',list.Strings[i]),Length(list.Strings[i])-Pos('=',list.Strings[i])) );
0
- //Label2.Caption:='Bagel '+BAGEL_STATUS+' '+IntToStr(BAGEL_NUMBER);
0
- Label2.Caption:='Bagel ' + version.theVersion.StringVersion;
0
+ tmp:='Bagel作者=plus7'+#13#10;
0
+ tmp:=tmp+'TGeckoBrowser作者=>>74'+#13#10;
0
+ tmp:=tmp+'Contributers=募集中'+#13#10;
0
+ tmp:=tmp+'SpecialThanks=Mozilla.org'+#13#10;
0
+ tmp:=tmp+' =CodeGear'+#13#10;
0
+ tmp:=tmp+' =OpenJane'+#13#10;
0
+ tmp:=tmp+' =github'+#13#10;
0
+ tmp:=tmp+' =ホットゾヌ'+#13#10;
0
+ tmp:=tmp+' =ギコナビ'+#13#10;
0
+ tmp:=tmp+' =Donut,DonutP,unDonut,Donut RAPT'+#13#10;
0
+ tmp:=tmp+' =いまBagelを使っているあなた'+#13#10;
0
+ list:=TStringList.Create;
0
+ list.SetText(PChar(tmp));
0
+ for i:=0 to list.Count-1 do
0
+ item:=TListItem.Create(ListView1.Items);
0
+ ListView1.Items.AddItem(item);
0
+ item.Caption:=list.Names[i];
0
+ item.SubItems.Add(Copy(list.Strings[i],1+Pos('=',list.Strings[i]),Length(list.Strings[i])-Pos('=',list.Strings[i])) );
0
+
Label2.Caption:='Bagel ' + version.theVersion.StringVersion;
0
-
Memo1.lines.Add('【OS】');
0
+ Memo1.lines.Add('【OS】');
0
- info.dwOSVersionInfoSize := SizeOf(info);
0
- if info.dwPlatFormId = VER_PLATFORM_WIN32_NT then
0
- Memo1.lines.Add('OS : Windows NT');
0
- Memo1.lines.Add('Version ' + IntToStr(info.dwMajorVersion) + '.' + IntToStr(info.dwMinorVersion) + ' ' + info.szCSDVersion);
0
- Memo1.lines.Add('Build ' + IntToStr(info.dwBuildNumber));
0
- else if info.dwPlatFormId = VER_PLATFORM_WIN32_WINDOWS then
0
- Memo1.lines.Add('OS : Windows (Win32)');
0
- Memo1.lines.Add('Version ' + IntToStr(info.dwMajorVersion) + '.' +
0
- IntToStr(info.dwMinorVersion));
0
- Memo1.lines.Add('Build ' + IntToStr($FFFF and info.dwBuildNumber));;
0
+ info.dwOSVersionInfoSize := SizeOf(info);
0
+ if info.dwPlatFormId = VER_PLATFORM_WIN32_NT then
0
+ Memo1.lines.Add('OS : Windows NT');
0
+ Memo1.lines.Add('Version ' + IntToStr(info.dwMajorVersion) + '.' + IntToStr(info.dwMinorVersion) + ' ' + info.szCSDVersion);
0
+ Memo1.lines.Add('Build ' + IntToStr(info.dwBuildNumber));
0
+ else if info.dwPlatFormId = VER_PLATFORM_WIN32_WINDOWS then
0
+ Memo1.lines.Add('OS : Windows (Win32)');
0
+ Memo1.lines.Add('Version ' + IntToStr(info.dwMajorVersion) + '.' +
0
+ IntToStr(info.dwMinorVersion));
0
+ Memo1.lines.Add('Build ' + IntToStr($FFFF and info.dwBuildNumber));;
0
- Memo1.lines.Add('OS : Windowns3.1 + Win32s');
0
- scheme:=PChar('@mozilla.org/network/protocol;1?name=http');
0
- NS_GetService(scheme,nsIHttpProtocolHandler,http);
0
+ Memo1.lines.Add('OS : Windowns3.1 + Win32s');
0
- productSub:=ips.ACString;
0
+ NS_GetService('@mozilla.org/network/protocol;1?name=http',nsIHttpProtocolHandler,http);
0
- Memo1.lines.Add('【Gecko】');
0
+ productSub:=ips.ACString;
0
- http.GetUserAgent(productSub);
0
- Memo1.Lines.Add('ユーザーエージェント : '+ips.ToString);
0
+ Memo1.lines.Add('【Gecko】');
0
- http.GetMisc(productSub);
0
- Memo1.Lines.Add('リビジョン : ' +ips.ToString);
0
+ http.GetUserAgent(productSub);
0
+ Memo1.Lines.Add('ユーザーエージェント : '+ips.ToString);
0
- http.GetProductSub(productSub);
0
- Memo1.Lines.Add('Gecko : '+ips.ToString);
0
+ http.GetMisc(productSub);
0
+ Memo1.Lines.Add('リビジョン : ' +ips.ToString);
0
+ http.GetProductSub(productSub);
0
+ Memo1.Lines.Add('Gecko : '+ips.ToString);
0
- Memo1.lines.Add('【Bagel】');
0
- Memo1.Lines.Add('バージョン : '+theVersion.StringVersion);
0
- Memo1.Lines.Add('ステータス : '+BAGEL_STATUS);
0
- //Memo1.Lines.Add('番号 : '+IntToStr(BAGEL_NUMBER));
0
- Memo1.lines.Add('【常駐ソフト/ファイアウォール等】');
0
+ Memo1.lines.Add('【Bagel】');
0
+ Memo1.Lines.Add('バージョン : '+theVersion.StringVersion);
0
+ Memo1.Lines.Add('ステータス : '+BAGEL_STATUS);
0
+ Memo1.lines.Add('【常駐ソフト/ファイアウォール等】');
0
-procedure TAboutBagelForm.PageControl1Change(Sender: TObject);
0
- if PageControl1.TabIndex = 1 then
0
- GeckoBrowser1.Enabled := True;
0
- GeckoBrowser1.LoadURI('http://www.w3.org/');
0
- BrowserCreated := True;
0
procedure TAboutBagelForm.FormClose(Sender: TObject;
0
var Action: TCloseAction);