Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

Scrollbar don't work #530

Open
GroophyLifefor opened this issue Dec 22, 2022 · 0 comments
Open

Scrollbar don't work #530

GroophyLifefor opened this issue Dec 22, 2022 · 0 comments

Comments

@GroophyLifefor
Copy link

I have a work which I use two scintilla in C# winform

image

first scintilla is okay, but second is not able to move down and don't show any scrollbar.

First scintilla -> BCode
Second scintilla -> Code

frm.BCode.Styles[Style.Default].Font = "Consolas";
frm.BCode.Styles[Style.Default].Size = 10;
frm.BCode.Styles[Style.Default].BackColor = Color.FromArgb(40,42,54);
frm.BCode.Styles[Style.Default].ForeColor = Color.FromArgb(248,248,242);
frm.BCode.StyleClearAll();
frm.BCode.Focus();
frm.BCode.Lexer = Lexer.Batch;
frm.BCode.AutoCIgnoreCase = true;
frm.BCode.Styles[Style.LineNumber].BackColor = Color.FromArgb(40, 42, 54);
frm.BCode.Styles[Style.LineNumber].ForeColor = Color.FromArgb(248, 248, 242);
frm.BCode.Styles[Style.Batch.Comment].ForeColor = ColorTranslator.FromHtml("#6272a4");
frm.BCode.Styles[Style.Batch.Word].ForeColor = ColorTranslator.FromHtml("#ffb86c");
frm.BCode.Styles[Style.Batch.Label].ForeColor = ColorTranslator.FromHtml("#dcdc99");
frm.BCode.Styles[Style.Batch.Hide].ForeColor = ColorTranslator.FromHtml("#bd93f9");
frm.BCode.Styles[Style.Batch.Command].ForeColor = ColorTranslator.FromHtml("#c586c0");
frm.BCode.Styles[Style.Batch.Identifier].ForeColor = ColorTranslator.FromHtml("#358cd6");
frm.BCode.Styles[Style.Batch.Operator].ForeColor = ColorTranslator.FromHtml("#dccd79");
frm.BCode.KeyUp += BCode_KeyUp;
frm.BCode.CaretForeColor = Color.FromArgb(255, 184, 108);
frm.BCode.Click += BCode_Click;
frm.Code.Styles[Style.Default].Font = "Consolas";
frm.Code.Styles[Style.Default].Size = 10;
frm.Code.Styles[Style.Default].BackColor = Color.FromArgb(40, 42, 54);
frm.Code.Styles[Style.Default].ForeColor = Color.FromArgb(248, 248, 242);
frm.Code.StyleClearAll();
frm.Code.Focus();
frm.Code.Lexer = Lexer.Batch;
frm.Code.AutoCIgnoreCase = true;
frm.Code.Styles[Style.LineNumber].ForeColor = Color.FromArgb(248, 248, 242);
frm.Code.Styles[Style.LineNumber].BackColor = Color.FromArgb(40, 42, 54);
frm.Code.Styles[Style.Batch.Comment].ForeColor = ColorTranslator.FromHtml("#6272a4");
frm.Code.Styles[Style.Batch.Word].ForeColor = ColorTranslator.FromHtml("#ffb86c");
frm.Code.Styles[Style.Batch.Label].ForeColor = ColorTranslator.FromHtml("#dcdc99");
frm.Code.Styles[Style.Batch.Hide].ForeColor = ColorTranslator.FromHtml("#bd93f9");
frm.Code.Styles[Style.Batch.Command].ForeColor = ColorTranslator.FromHtml("#c586c0");
frmCode.Styles[Style.Batch.Identifier].ForeColor = ColorTranslator.FromHtml("#358cd6");
frm.Code.Styles[Style.Batch.Operator].ForeColor = ColorTranslator.FromHtml("#dccd79");

also I tried

frm.Code.ScrollWidth = 1;
frm.Code.ScrollWidthTracking = true;

But won't worked.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant