| 169 |
|
i: Integer; |
| 170 |
|
toolform: TForm_ToolTemplate; |
| 171 |
|
begin |
| 172 |
+ |
Result := True; |
| 173 |
|
if MDITab.MDIChildCount > 0 then |
| 174 |
|
begin |
| 175 |
|
for i := 0 to MDITab.MDIChildCount - 1 do |
| 180 |
|
if toolform.ConnectionID = ConManager.ConnectionByIndex[index].ConnectionID then |
| 181 |
|
begin |
| 182 |
|
if not toolform.Closeable then |
| 183 |
< |
ShowMessage('Can not close toolwindow: ' + toolform.Caption); |
| 183 |
> |
begin |
| 184 |
> |
ShowMessage('Can not close toolwindow: ' + toolform.Caption); |
| 185 |
> |
Result := False; |
| 186 |
> |
end; |
| 187 |
|
end; |
| 188 |
|
end; |
| 189 |
|
end; |
| 238 |
|
|
| 239 |
|
|
| 240 |
|
procedure TForm_Main.FormCreate(Sender: TObject); |
| 237 |
– |
var |
| 238 |
– |
RepMsg: TStatusMessages; |
| 241 |
|
begin |
| 242 |
|
Self.Caption := 'Oni Un/Packer ' + version; |
| 243 |
|
Self.FormResize(Self); |
| 442 |
|
position: TTBDockPosition; |
| 443 |
|
mode: TTBItemDisplayMode; |
| 444 |
|
i: Integer; |
| 443 |
– |
isEnabled: Boolean; |
| 445 |
|
begin |
| 446 |
|
toolbar := TTBToolbar(Sender); |
| 447 |
|
if toolbar.Floating then |
| 674 |
|
procedure TForm_Main.menu_conns_itemClick(Sender: TObject); |
| 675 |
|
var |
| 676 |
|
name: String; |
| 676 |
– |
i: Integer; |
| 677 |
|
index: Integer; |
| 678 |
|
RepMsg: TStatusMessages; |
| 679 |
|
begin |
| 743 |
|
iconindex := -1; |
| 744 |
|
caption_end := IntToStr(tag) + ' '; |
| 745 |
|
|
| 746 |
+ |
toolform := nil; |
| 747 |
+ |
|
| 748 |
|
if window_context = 'binedit' then |
| 749 |
|
begin |
| 750 |
|
toolform := TForm_BinEdit.Create(Self); |