Comments (15)
Ok, it worth reporting it in the bugtracker, so it can be fixed, can you add some screenshot so I can share there?
from bgracontrols.
You can use https://github.com/Alexey-T/ATSynEdit in your package maybe.
from bgracontrols.
Hi, that looks really advanced. It can be used like a normal edit control in some way?
from bgracontrols.
Yes, it has TATEdit which is one-line version (child) of TATSynEdit.
from bgracontrols.
Ok thanks. For sure having that control into account, we only need to implement the painting (like rounded borders and gradient fill for example).
from bgracontrols.
So I suppose there is a drawer that can be customized? That would be great to have a beautiful syntax highlighted editor. Though to make a TEdit seems a bit much. Rather a TSynEdit?
Also I wonder if it handles unicode stuff, like non spacing markers, right-to-left script and embedding. This is handled by the multiline layout in BGRATextBidi. If you look at the following example, you will see that this could be made a new component by plugging it in a TBCStyleCustomControl (the control need to be focusable).
https://github.com/bgrabitmap/bgrabitmap/tree/master/test/testbiditext2
I am thinking maybe we can do a TBCEdit with a Multiline boolean property based on BGRATextBidi. Making it single line is just about filtering out characters that split lines/paragraphs.
from bgracontrols.
I'm not sure if theming a full syntax highlighter will be a good idea, since anyways modern code editors doesn't use gradients and rounded borders, it's always plain colors.
But yes it will be good to make an edit control, and if we can do 2 different ones will be good too, one with synedit and other with bcstylecustomcontrol to have more options, doesn't matter having 2 different controls, anyways for example we have a lot of button controls to choose from, and every single one is useful for something.
from bgracontrols.
Attached a project that uses a TBCPanel and a TEdit.
EditControl.zip
You can use a plain color for the background of the TEdit and of the TBCPanel.
That is how it looks under Windows. How it looks under Linux and macOS, please test, and if it looks ok we can make a simple component including that template, like we did for BCCombobox that's just a button and a listbox 👍
from bgracontrols.
Hi, anyone tested it, looks good on Linux and macOS?
from bgracontrols.
It works on MacOS. Though the cursor is black so can't really see it on the dark background.
from bgracontrols.
Ok, so it doesn't work well on all platforms..
from bgracontrols.
Yeah but it is more like a bug of TEdit with custom background color
from bgracontrols.
Reported: https://bugs.freepascal.org/view.php?id=38033
from bgracontrols.
Thanks =)
from bgracontrols.
Hope the bug is fixed soon. I think we don't need an edit, just using a BCPanel as border and a regular edit looks fine for me:
So I close this, if at some time we need it for some other reason, we can try coding that.
from bgracontrols.
Related Issues (20)
- BGRACONTROLS can not be installed on Lazarus 2.0.8 x64 HOT 6
- Memory leak with TBGRASVGImageList HOT 8
- question DTAnalogGauge negative value HOT 2
- Rounding corners feature is not working on Windows HOT 3
- BorderSpacing properties missing from TBGRAFlashProgressBar
- Memory leak in BGRABitmap when calling SetSize for a very large image HOT 1
- BGRABitmap cannot be compiled with current Laz/main after removal of deprecated LazUtf8Classes HOT 3
- TBGRASVGImageList memory leak HOT 5
- Tbgrathemesurface class inherited from HOT 7
- TBCPanel ignores ChildSizing.VerticalSpacing when AutoSize is active
- TBCPanel always disable ParentBackground HOT 6
- Scale fonts and borders
- BGRASVGIMageList memory leak HOT 2
- New update BGRA bug HOT 1
- TColorSpeedButton, TBGRASpeedButton and TBGRAResizeSpeedButton don't print images from ImageList
- BGRASVGImageList saves different binary format per platform (patch available) HOT 15
- Memory leak version Version 8 ARM64 bit HOT 15
- unitbgraimagemanipulationdemo.pas does not compile HOT 3
- BGRAVirtualScreen bug HOT 16
- Failure to compile BGRABitmap with FPC 3.3.1 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bgracontrols.