Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
4100deed
Commit
4100deed
authored
6 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Force the input cursor to always at the end of the text (Memo) box.
parent
e23d8c22
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/sbbs3/chat/MainFormUnit.cpp
+9
-0
9 additions, 0 deletions
src/sbbs3/chat/MainFormUnit.cpp
src/sbbs3/chat/MainFormUnit.dfm
+16
-14
16 additions, 14 deletions
src/sbbs3/chat/MainFormUnit.dfm
src/sbbs3/chat/MainFormUnit.h
+1
-0
1 addition, 0 deletions
src/sbbs3/chat/MainFormUnit.h
with
26 additions
and
14 deletions
src/sbbs3/chat/MainFormUnit.cpp
+
9
−
0
View file @
4100deed
...
@@ -307,3 +307,12 @@ void __fastcall TMainForm::FormCreate(TObject *Sender)
...
@@ -307,3 +307,12 @@ void __fastcall TMainForm::FormCreate(TObject *Sender)
void
__fastcall
TMainForm
::
LocalEnter
(
TObject
*
Sender
)
{
Local
->
SelLength
=
0
;
Local
->
SelStart
=
Local
->
Text
.
Length
();
}
//---------------------------------------------------------------------------
This diff is collapsed.
Click to expand it.
src/sbbs3/chat/MainFormUnit.dfm
+
16
−
14
View file @
4100deed
object MainForm: TMainForm
object MainForm: TMainForm
Left =
564
Left =
787
Top =
18
4
Top =
24
4
Width = 417
Width = 417
Height = 251
Height = 251
Caption = 'Synchronet Chat'
Caption = 'Synchronet Chat'
Color = clBtnFace
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Color = clWindowText
Font.Height = -1
4
Font.Height = -1
1
Font.Name = 'MS Sans Serif'
Font.Name = 'MS Sans Serif'
Font.Style = []
Font.Style = []
OldCreateOrder = False
OldCreateOrder = False
...
@@ -15,26 +15,26 @@ object MainForm: TMainForm
...
@@ -15,26 +15,26 @@ object MainForm: TMainForm
OnClose = FormClose
OnClose = FormClose
OnCreate = FormCreate
OnCreate = FormCreate
OnShow = FormShow
OnShow = FormShow
PixelsPerInch =
120
PixelsPerInch =
96
TextHeight = 1
6
TextHeight = 1
3
object Splitter1: TSplitter
object Splitter1: TSplitter
Left = 0
Left = 0
Top =
10
5
Top =
8
5
Width = 40
9
Width = 40
1
Height = 2
Height = 2
Cursor = crVSplit
Cursor = crVSplit
Align = alTop
Align = alTop
end
end
object Local: TMemo
object Local: TMemo
Left = 0
Left = 0
Top =
10
7
Top =
8
7
Width = 40
9
Width = 40
1
Height = 1
1
6
Height = 1
2
6
Align = alClient
Align = alClient
Color = clBlack
Color = clBlack
Font.Charset = DEFAULT_CHARSET
Font.Charset = DEFAULT_CHARSET
Font.Color = clLime
Font.Color = clLime
Font.Height = -1
5
Font.Height = -1
2
Font.Name = 'System'
Font.Name = 'System'
Font.Pitch = fpFixed
Font.Pitch = fpFixed
Font.Style = []
Font.Style = []
...
@@ -43,19 +43,21 @@ object MainForm: TMainForm
...
@@ -43,19 +43,21 @@ object MainForm: TMainForm
ScrollBars = ssVertical
ScrollBars = ssVertical
TabOrder = 0
TabOrder = 0
WantTabs = True
WantTabs = True
OnClick = LocalEnter
OnEnter = LocalEnter
OnKeyPress = LocalKeyPress
OnKeyPress = LocalKeyPress
end
end
object Remote: TMemo
object Remote: TMemo
Left = 0
Left = 0
Top = 0
Top = 0
Width = 40
9
Width = 40
1
Height =
10
5
Height =
8
5
TabStop = False
TabStop = False
Align = alTop
Align = alTop
Color = clBlack
Color = clBlack
Font.Charset = DEFAULT_CHARSET
Font.Charset = DEFAULT_CHARSET
Font.Color = clGreen
Font.Color = clGreen
Font.Height = -1
5
Font.Height = -1
2
Font.Name = 'System'
Font.Name = 'System'
Font.Pitch = fpFixed
Font.Pitch = fpFixed
Font.Style = []
Font.Style = []
...
...
This diff is collapsed.
Click to expand it.
src/sbbs3/chat/MainFormUnit.h
+
1
−
0
View file @
4100deed
...
@@ -61,6 +61,7 @@ __published: // IDE-managed Components
...
@@ -61,6 +61,7 @@ __published: // IDE-managed Components
void
__fastcall
InputTimerTick
(
TObject
*
Sender
);
void
__fastcall
InputTimerTick
(
TObject
*
Sender
);
void
__fastcall
TimerTick
(
TObject
*
Sender
);
void
__fastcall
TimerTick
(
TObject
*
Sender
);
void
__fastcall
FormCreate
(
TObject
*
Sender
);
void
__fastcall
FormCreate
(
TObject
*
Sender
);
void
__fastcall
LocalEnter
(
TObject
*
Sender
);
private:
// User declarations
private:
// User declarations
public:
// User declarations
public:
// User declarations
__fastcall
TMainForm
(
TComponent
*
Owner
);
__fastcall
TMainForm
(
TComponent
*
Owner
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment