mirror of
https://github.com/moparisthebest/Simba
synced 2025-02-16 07:10:10 -05:00
Fixed lil' bugs in tabs, & changed the way Writeln works @ windows.
git-svn-id: http://www.villavu.com/repositories/merlijn/mufasa@195 3f818213-9676-44b0-a9b4-5e4c4e03d09d
This commit is contained in:
parent
6901684b03
commit
cf8e0f18f8
File diff suppressed because it is too large
Load Diff
@ -1,11 +1,11 @@
|
|||||||
object Form1: TForm1
|
object Form1: TForm1
|
||||||
Left = 274
|
Left = 223
|
||||||
Height = 557
|
Height = 557
|
||||||
Top = 233
|
Top = 272
|
||||||
Width = 731
|
Width = 731
|
||||||
ActiveControl = ScriptPanel
|
ActiveControl = ScriptPanel
|
||||||
Caption = 'Action1'
|
Caption = 'Action1'
|
||||||
ClientHeight = 532
|
ClientHeight = 537
|
||||||
ClientWidth = 731
|
ClientWidth = 731
|
||||||
Menu = MainMenu1
|
Menu = MainMenu1
|
||||||
OnClose = FormClose
|
OnClose = FormClose
|
||||||
@ -165,8 +165,8 @@ object Form1: TForm1
|
|||||||
end
|
end
|
||||||
object StatusBar: TStatusBar
|
object StatusBar: TStatusBar
|
||||||
Left = 0
|
Left = 0
|
||||||
Height = 21
|
Height = 23
|
||||||
Top = 511
|
Top = 514
|
||||||
Width = 731
|
Width = 731
|
||||||
Panels = <
|
Panels = <
|
||||||
item
|
item
|
||||||
@ -183,17 +183,17 @@ object Form1: TForm1
|
|||||||
end
|
end
|
||||||
object PanelMemo: TPanel
|
object PanelMemo: TPanel
|
||||||
Left = 0
|
Left = 0
|
||||||
Height = 151
|
Height = 154
|
||||||
Top = 360
|
Top = 360
|
||||||
Width = 731
|
Width = 731
|
||||||
Align = alBottom
|
Align = alBottom
|
||||||
Anchors = [akTop, akLeft, akRight, akBottom]
|
Anchors = [akTop, akLeft, akRight, akBottom]
|
||||||
ClientHeight = 151
|
ClientHeight = 154
|
||||||
ClientWidth = 731
|
ClientWidth = 731
|
||||||
TabOrder = 2
|
TabOrder = 2
|
||||||
object Memo1: TMemo
|
object Memo1: TMemo
|
||||||
Left = 1
|
Left = 1
|
||||||
Height = 149
|
Height = 152
|
||||||
Top = 1
|
Top = 1
|
||||||
Width = 729
|
Width = 729
|
||||||
Align = alClient
|
Align = alClient
|
||||||
@ -250,7 +250,7 @@ object Form1: TForm1
|
|||||||
Visible = False
|
Visible = False
|
||||||
object LabeledEditSearch: TLabeledEdit
|
object LabeledEditSearch: TLabeledEdit
|
||||||
Left = 104
|
Left = 104
|
||||||
Height = 27
|
Height = 21
|
||||||
Top = 6
|
Top = 6
|
||||||
Width = 174
|
Width = 174
|
||||||
AutoSelect = False
|
AutoSelect = False
|
||||||
@ -259,10 +259,10 @@ object Form1: TForm1
|
|||||||
EditLabel.AnchorSideTop.Side = asrCenter
|
EditLabel.AnchorSideTop.Side = asrCenter
|
||||||
EditLabel.AnchorSideRight.Control = LabeledEditSearch
|
EditLabel.AnchorSideRight.Control = LabeledEditSearch
|
||||||
EditLabel.AnchorSideBottom.Control = LabeledEditSearch
|
EditLabel.AnchorSideBottom.Control = LabeledEditSearch
|
||||||
EditLabel.Left = 67
|
EditLabel.Left = 73
|
||||||
EditLabel.Height = 18
|
EditLabel.Height = 14
|
||||||
EditLabel.Top = 10
|
EditLabel.Top = 9
|
||||||
EditLabel.Width = 34
|
EditLabel.Width = 28
|
||||||
EditLabel.Caption = 'Find: '
|
EditLabel.Caption = 'Find: '
|
||||||
EditLabel.ParentColor = False
|
EditLabel.ParentColor = False
|
||||||
LabelPosition = lpLeft
|
LabelPosition = lpLeft
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -271,10 +271,15 @@ end;
|
|||||||
procedure formWriteln( S : String);
|
procedure formWriteln( S : String);
|
||||||
|
|
||||||
begin
|
begin
|
||||||
s := s + #10;
|
|
||||||
DebugCriticalSection.Enter;
|
DebugCriticalSection.Enter;
|
||||||
try
|
try
|
||||||
|
{$ifdef MSWindows}
|
||||||
|
//Ha, we cán acces the debugmemo
|
||||||
|
Form1.Memo1.Lines.Add(s);
|
||||||
|
{$else}
|
||||||
|
s := s + MEOL;
|
||||||
Form1.DebugStream:= Form1.DebugStream + s;
|
Form1.DebugStream:= Form1.DebugStream + s;
|
||||||
|
{$endif}
|
||||||
finally
|
finally
|
||||||
DebugCriticalSection.Leave;
|
DebugCriticalSection.Leave;
|
||||||
end;
|
end;
|
||||||
@ -438,6 +443,7 @@ begin
|
|||||||
TB_SaveAll.Enabled:= false;
|
TB_SaveAll.Enabled:= false;
|
||||||
MenuItemSaveAll.Enabled:= false;
|
MenuItemSaveAll.Enabled:= false;
|
||||||
end;
|
end;
|
||||||
|
RefreshTab;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TForm1.ClearTab(TabIndex: integer);
|
procedure TForm1.ClearTab(TabIndex: integer);
|
||||||
@ -514,6 +520,11 @@ var
|
|||||||
Script : TScriptFrame;
|
Script : TScriptFrame;
|
||||||
NewTab : integer;
|
NewTab : integer;
|
||||||
begin
|
begin
|
||||||
|
if tabs.Count < 1 then
|
||||||
|
begin;
|
||||||
|
Writeln('Cannot refresh tab, since there are no tabs.');
|
||||||
|
exit;
|
||||||
|
end;
|
||||||
NewTab := PageControl1.TabIndex;
|
NewTab := PageControl1.TabIndex;
|
||||||
Tab := TMufasaTab(Tabs[Newtab]);
|
Tab := TMufasaTab(Tabs[Newtab]);
|
||||||
Script := Tab.ScriptFrame;
|
Script := Tab.ScriptFrame;
|
||||||
@ -682,6 +693,9 @@ begin
|
|||||||
{ For writeln }
|
{ For writeln }
|
||||||
SetLength(DebugStream, 0);
|
SetLength(DebugStream, 0);
|
||||||
DebugCriticalSection := syncobjs.TCriticalSection.Create;
|
DebugCriticalSection := syncobjs.TCriticalSection.Create;
|
||||||
|
{$ifdef mswindows}
|
||||||
|
DebugTimer.Enabled:= false;
|
||||||
|
{$endif}
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TForm1.FormDestroy(Sender: TObject);
|
procedure TForm1.FormDestroy(Sender: TObject);
|
||||||
@ -733,6 +747,7 @@ begin
|
|||||||
begin
|
begin
|
||||||
ActionFindstartExecute(Sender);
|
ActionFindstartExecute(Sender);
|
||||||
CurrScript.SynEdit.SetFocus;
|
CurrScript.SynEdit.SetFocus;
|
||||||
|
key := 0;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -741,6 +756,7 @@ begin
|
|||||||
if key = #13 then
|
if key = #13 then
|
||||||
begin;
|
begin;
|
||||||
DoSearch(true);
|
DoSearch(true);
|
||||||
|
key := #0;
|
||||||
// LabeledEditSearch.SelStart:= Length(LabeledEditSearch.Text);
|
// LabeledEditSearch.SelStart:= Length(LabeledEditSearch.Text);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
@ -1072,6 +1088,7 @@ begin
|
|||||||
ScriptFrame := TScriptFrame.Create(Tabsheet);
|
ScriptFrame := TScriptFrame.Create(Tabsheet);
|
||||||
ScriptFrame.Parent := Tabsheet;
|
ScriptFrame.Parent := Tabsheet;
|
||||||
ScriptFrame.Align:= alClient;
|
ScriptFrame.Align:= alClient;
|
||||||
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
constructor TMufasaTab.Create(Page: TPageControl);
|
constructor TMufasaTab.Create(Page: TPageControl);
|
||||||
|
@ -32,6 +32,7 @@ uses
|
|||||||
Classes, SysUtils,plugins;
|
Classes, SysUtils,plugins;
|
||||||
const
|
const
|
||||||
DS = DirectorySeparator;
|
DS = DirectorySeparator;
|
||||||
|
MEOL = {$ifdef MSWINDOWS}#13+{$endif}#10;
|
||||||
|
|
||||||
type
|
type
|
||||||
TRGB32 = packed record
|
TRGB32 = packed record
|
||||||
|
Loading…
Reference in New Issue
Block a user