Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scintilla control not visible on form designer #95

Closed
ikorman opened this issue Dec 26, 2023 · 4 comments
Closed

Scintilla control not visible on form designer #95

ikorman opened this issue Dec 26, 2023 · 4 comments
Assignees
Labels
backlog Issue will take time to implement, more than a typical bug fix bug Something isn't working

Comments

@ikorman
Copy link

ikorman commented Dec 26, 2023

I downloaded latest available source code. Took sample application provided within the repo, add Scintilla.Net control source code as project reference to solution. Program compiles fine and runs, but when in designer mode Scintilla control not visible neither on the form nor control toolbox. Usually I get it through nuget and no issues theres, only in this case when source code is used as part of solution.

Additional issue/request: by default current row is highlighted in black color, meaning you can not see what you type (as font by default is also black), neither caret is visible. Can be confusing for beginners, like it confused also me when switched to this project version - i thought something is wrong with control.

2023-12-26 18_22_14-Scintilla NET - Microsoft Visual Studio
2023-12-26 18_22_56-ScintillaNET TestApp  © desjarlais 2023

Environment is Win11, VS 17.8.3

Thx
Ivan

@ikorman ikorman added the bug Something isn't working label Dec 26, 2023
@desjarlais
Copy link
Owner

The black color is because of this:

this.scintilla1.CaretLineBackColor = System.Drawing.Color.Black;

There are two scintilla controls in the current version of the test app and one of them has the color set to black explicitly. I'll change the test app back to a white color in the next release.

As for the controls not being visible, I'll take a look and see what I can find.

@ikorman
Copy link
Author

ikorman commented Dec 27, 2023

Regarding black color, I also tried it in another app, by downloading Scintilla nuget package - when control is added to the form, by default color is set to black, so I would say it's not connected to the sample app by it self but rather to property default value

2023-12-27 10_22_46-Form1

@desjarlais
Copy link
Owner

desjarlais commented Dec 27, 2023

Yes, that is a different scenario with the same symptom of the test app. I created issue #96 for that behavior.

@desjarlais desjarlais self-assigned this Dec 27, 2023
@desjarlais
Copy link
Owner

@ikorman the CaretLineBackColor issue will be resolved in the next update (5.3.3.14), I'm still looking into the visibility issue for the test app.

@desjarlais desjarlais added the backlog Issue will take time to implement, more than a typical bug fix label Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog Issue will take time to implement, more than a typical bug fix bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants