FLogWindowDividerPos: integer;
FHelpPage: String;
FUseHttpProxy: boolean;
+ FAskUseHttpProxy: boolean;
FProxyPort: integer;
FProxyAddress: String;
FConfirmOnExit: boolean;
procedure SetProxyAddress(const Value: String);
procedure SetProxyPort(const Value: integer);
procedure SetUseHttpProxy(const Value: boolean);
+ procedure SetAskUseHttpProxy(const Value: boolean);
procedure SetConfirmOnExit(const Value: boolean);
procedure SetFixMessySurface(const Value: boolean);
procedure SetResetIfGhostAfterSend(const Value: boolean);
property EditorPreviewWindowPosition: TRect read FEditorPreviewWindowPosition write SetEditorPreviewWindowPosition;
//\83v\83\8d\83L\83V\8aÖ\8cW
property UseHttpProxy: boolean read FUseHttpProxy write SetUseHttpProxy;
+ property AskUseHttpProxy: boolean read FAskUseHttpProxy write SetAskUseHttpProxy;
property ProxyAddress: String read FProxyAddress write SetProxyAddress;
property ProxyPort: integer read FProxyPort write SetProxyPort;
//\8dÄ\90Ú\91±
end;
//
UseHttpProxy := FIni.ReadBool('System', 'UseHttpProxy', false);
+ AskUseHttpProxy := FIni.ReadBool('System', 'AskUseHttpProxy', false);
ProxyAddress := FIni.ReadString('System', 'ProxyAddress', '');
ProxyPort := FIni.ReadInteger('System', 'ProxyPort', 0);
//
FUseHttpProxy := Value;
end;
+procedure TBottlePrefs.SetAskUseHttpProxy(const Value: boolean);
+begin
+ FAskUseHttpProxy := Value;
+end;
+
procedure TBottlePrefs.SetWaitScriptEnd(const Value: integer);
begin
if Value > 0 then FWaitScriptEnd := Value;
Format('%d,%d,%d,%d', [Left, Top, Right, Bottom]));
//
FIni.WriteBool('System', 'UseHttpProxy', UseHttpProxy);
+ FIni.WriteBool('System', 'AskUseHttpProxy', AskUseHttpProxy);
FIni.WriteString('System', 'ProxyAddress', ProxyAddress);
FIni.WriteInteger('System', 'ProxyPort', ProxyPort);
//
try
HeadValue := THeadValue.Create(Str);
except
- ShowMessage('SSTP Bottle\83T\81[\83o\82ª\89ð\90Í\82Å\82«\82È\82¢\83G\83\89\81[\82ð\95Ô\82µ\82Ü\82µ\82½\81B');
+ Beep;
+ frmMessageBox.ShowMessage('SSTP Bottle\83T\81[\83o\82ª\89ð\90Í\82Å\82«\82È\82¢\83G\83\89\81[\82ð\95Ô\82µ\82Ü\82µ\82½\81B');
Exit;
end;
Command := HeadValue['Command'];
if ResStr = 'Err' then begin
if HeadValue['ExtraMessage'] <> '' then begin
Beep;
- ShowMessage('SSTP Bottle\83T\81[\83o\82ª\8e\9f\82Ì\83G\83\89\81[\82ð\95Ô\82µ\82Ü\82µ\82½:'#13#10 +
+ frmMessageBox.ShowMessage('SSTP Bottle\83T\81[\83o\82ª\8e\9f\82Ì\83G\83\89\81[\82ð\95Ô\82µ\82Ü\82µ\82½:'#13#10 +
HeadValue['ExtraMessage']);
end else begin
Beep;
- ShowMessage('SSTP Bottle\83T\81[\83o\82ª\89½\82ç\82©\82Ì\83G\83\89\81[\82ð\95Ô\82µ\82Ü\82µ\82½\81B');
+ frmMessageBox.ShowMessage('SSTP Bottle\83T\81[\83o\82ª\89½\82ç\82©\82Ì\83G\83\89\81[\82ð\95Ô\82µ\82Ü\82µ\82½\81B');
end;
end;
if (Command = 'sendBroadcast') and (ResStr = 'OK') then begin
if (Command = 'setChannels') then begin
if ResStr <> 'OK' then begin
Beep;
- ShowMessage('\83`\83\83\83\93\83l\83\8b\90Ý\92è\82É\8e¸\94s\82µ\82Ü\82µ\82½\81B\82à\82¤\88ê\93x\93o\98^\82µ\82È\82¨\82µ\82Ä\82\82¾\82³\82¢');
+ frmMessageBox.ShowMessage('\83`\83\83\83\93\83l\83\8b\90Ý\92è\82É\8e¸\94s\82µ\82Ü\82µ\82½\81B\82à\82¤\88ê\93x\93o\98^\82µ\82È\82¨\82µ\82Ä\82\82¾\82³\82¢');
ShowHintLabel('\83`\83\83\83\93\83l\83\8b\90Ý\92è\82É\8e¸\94s\82µ\82Ü\82µ\82½', WarningColor);
end;
end;
SysUtils.Beep;
Beep;
ShowHintLabel('SSTP Bottle\83T\81[\83o\82Æ\82Ì\90Ú\91±\82É\8e¸\94s\82µ\82Ü\82µ\82½', WarningColor);
- ShowMessage('SSTP Bottle\83T\81[\83o\82Æ\82Ì\90Ú\91±\82É\8e¸\94s\82µ\82Ü\82µ\82½'#13#10 +
+ frmMessageBox.ShowMessage('SSTP Bottle\83T\81[\83o\82Æ\82Ì\90Ú\91±\82É\8e¸\94s\82µ\82Ü\82µ\82½'#13#10 +
(Sender as THTTPDownloadThread).LastErrorMessage);
Connecting := false;
end;
begin
Beep;
if Pref.UseHttpProxy then
- ShowMessage('HTTP Proxy\82ð\92Ê\82¶\82ÄSSTP Bottle\83T\81[\83o\82É\90Ú\91±\82Å\82«\82Ü\82¹\82ñ\82Å\82µ\82½\81B'#13#10 +
+ frmMessageBox.ShowMessage('HTTP Proxy\82ð\92Ê\82¶\82ÄSSTP Bottle\83T\81[\83o\82É\90Ú\91±\82Å\82«\82Ü\82¹\82ñ\82Å\82µ\82½\81B'#13#10 +
'\83l\83b\83g\83\8f\81[\83N\82Ì\8fó\91Ô\81EProxy\82Ì\8fó\91Ô\82ð\8am\94F\82µ\82Ä\82\82¾\82³\82¢\81B'#13#10 +
'\82 \82é\82¢\82Í\83T\81[\83o\82ª\83_\83E\83\93\82µ\82Ä\82¢\82é\89Â\94\\90«\82ª\82 \82è\82Ü\82·\81B')
else
- ShowMessage('SSTP Bottle\83T\81[\83o\82É\90Ú\91±\82Å\82«\82Ü\82¹\82ñ\82Å\82µ\82½\81B'#13#10 +
+ frmMessageBox.ShowMessage('SSTP Bottle\83T\81[\83o\82É\90Ú\91±\82Å\82«\82Ü\82¹\82ñ\82Å\82µ\82½\81B'#13#10 +
'\83l\83b\83g\83\8f\81[\83N\82É\8cq\82ª\82Á\82Ä\82¢\82é\82©\8am\94F\82µ\82Ä\82\82¾\82³\82¢\81B'#13#10 +
'\82 \82é\82¢\82Í\83T\81[\83o\82ª\83_\83E\83\93\82µ\82Ä\82¢\82é\89Â\94\\90«\82ª\82 \82è\82Ü\82·\81B');
end;
object frmSetting: TfrmSetting
- Left = 282
- Top = 289
+ Left = 447
+ Top = 154
Anchors = [akLeft, akTop, akRight, akBottom]
BorderStyle = bsDialog
Caption = #35373#23450
Top = 32
Width = 440
Height = 291
- ActivePage = tstPresetReplace
+ ActivePage = tstConnection
Anchors = [akLeft, akTop, akRight, akBottom]
MultiLine = True
TabOrder = 0
Width = 423
Height = 265
TabOrder = 0
- DesignSize = (
- 423
- 265)
end
end
object tstPlayTime: TTabSheet
Height = 20
Hint = #20104#28204#12497#12521#12513#12540#12479#12398#12463#12452#12483#12463#35373#23450
Style = csDropDownList
- ItemHeight = 12
+ ItemHeight = 0
TabOrder = 0
OnChange = cbxPlayTimeProfileChange
end
TabVisible = False
object lblReconnectWait: TLabel
Left = 8
- Top = 144
+ Top = 168
Width = 156
Height = 12
Caption = #20877#25509#32154#12434#35430#12415#12427#12414#12391#12398#20998#25968'(&R):'
Left = 8
Top = 8
Width = 417
- Height = 121
+ Height = 145
Caption = 'HTTP Proxy'#35373#23450
TabOrder = 0
object lblProxyAddress: TLabel
Left = 16
- Top = 68
+ Top = 92
Width = 56
Height = 12
Caption = #12450#12489#12524#12473'(&D)'
end
object lblProxyPort: TLabel
Left = 16
- Top = 92
+ Top = 116
Width = 47
Height = 12
Caption = #12509#12540#12488'(&O)'
end
object edtProxyAddress: TEdit
Left = 80
- Top = 64
+ Top = 88
Width = 257
Height = 20
Hint = 'Proxy'#12469#12540#12496#12398#12450#12489#12524#12473
end
object edtProxyPort: TEdit
Left = 80
- Top = 88
+ Top = 112
Width = 81
Height = 20
Hint = 'Proxy'#12469#12540#12496#12398#12509#12540#12488#30058#21495
Caption = 'HTTP Proxy'#12434#20351#29992#12377#12427'(&E)'
TabOrder = 0
end
+ object cbxAskUseHttpProxy: TCheckBox
+ Left = 16
+ Top = 64
+ Width = 305
+ Height = 17
+ Hint = 'Windows(IE)'#12395#35373#23450#12373#12428#12390#12356#12427'Proxy'#12434#20351#12387#12390#25509#32154#12375#12414#12377#12290
+ Caption = #36215#21205#26178#12395'Proxy'#12434#21033#29992#12377#12427#12363#12393#12358#12363#12383#12378#12397#12427'(&A)'
+ TabOrder = 3
+ end
end
object spnReconnectWait: TSpinEdit
Left = 168
- Top = 140
+ Top = 164
Width = 57
Height = 21
Hint = #28961#36890#20449#29366#24907#12391#20877#25509#32154#12434#35430#12415#12427#12414#12391#12398#20998#25968#12290#36890#24120#12399#22793#26356#12377#12427#24517#35201#12399#12394#12356
btnBrowserLocate: TButton;
tstPresetReplace: TTabSheet;
ReplacePresetList: TfrmReplacePresetList;
+ cbxAskUseHttpProxy: TCheckBox;
procedure FormClose(Sender: TObject; var Action: TCloseAction);
procedure edtProxyPortKeyPress(Sender: TObject; var Key: Char);
procedure ctvBottleNodeChecked(Sender: TObject;
rgpWhenCtrlReturn.ItemIndex := Ord(Pref.WhenCtrlReturn);
//
cbxUseHttpProxy.Checked := Pref.UseHttpProxy;
+ cbxAskUseHttpProxy.Checked := Pref.AskUseHttpProxy;
edtProxyAddress.Text := Pref.ProxyAddress;
edtProxyPort.Text := IntToStr(Pref.ProxyPort);
//
Pref.WhenCtrlReturn := TReturnKeyFunction(rgpWhenCtrlReturn.ItemIndex);
//
Pref.UseHttpProxy := cbxUseHttpProxy.Checked;
+ Pref.AskUseHttpProxy := cbxAskUseHttpProxy.Checked;
Pref.ProxyAddress := edtProxyAddress.Text;
Pref.ProxyPort := StrToInt(edtProxyPort.Text);
//
end;
{$ENDIF}
+ if Pref.AskUseHttpProxy then begin
+ if Application.MessageBox('Proxy\82ð\97\98\97p\82µ\82Ü\82·\82©\81H','BottleClient',MB_YESNO) = IDYES then begin
+ if Length(Pref.ProxyAddress) > 0 then begin
+ Pref.UseHttpProxy := true;
+ end;
+ end else begin
+ Pref.UseHttpProxy := false;
+ end;
+ end;
+
Application.Initialize;
Application.Title := 'SSTP Bottle Client';
Application.ShowMainForm := true;