Git Product home page Git Product logo

Comments (8)

leocb avatar leocb commented on July 17, 2024

Hmm I seen this on a PC that did not have Roboto installed.
here's a SS on my pc
image
Do you have the font installed? if not, could you install it and check if the problem persists?

Currently the textbox uses a hacky way to display the cursors by sort of hiding the "real" textbox behind the one I draw, I don't like this current implementation too much because it causes these weird misalignment and I'm planning to change it.

If you or someone else wants to research a better way to implement complete custom textbox on windows forms, please do! Microsoft did not do a good job to support them ;/

from materialskin.

goto3 avatar goto3 commented on July 17, 2024

yeah, that fixed the issue. Thank you.
Is there a way to install the font without user intervention?

from materialskin.

leocb avatar leocb commented on July 17, 2024

If you package the app in a installer, then you can install the font too, otherwise I don't think it's possible (nor recommended)
But I'll keep an eye out for different implementations of a custom textbox, one option is to calculate the caret (cursor) position by getting the char width up to that point and then, by doing some math, positioning it correctly. This would be kinda of a nightmare and maybe slow for long strings. I'll keep investigating

from materialskin.

goto3 avatar goto3 commented on July 17, 2024

Ok, I added the fonts to the resources in WinForms project, then set each one Build Action to Embedded Resource:
image

this is working for now and does not require to install the fonts :)

from materialskin.

goto3 avatar goto3 commented on July 17, 2024

Is there a way to change the Hint color on conditions?

from materialskin.

leocb avatar leocb commented on July 17, 2024

Oh, I do that for the generated DLL, seems like you have to do it on the app as well.. interesting, will investigate further.
I'm working on changing hint colors now (error handling right? I need them too haha)
I plan on releasing a new version tomorrow... maybe... if all goes right :)

from materialskin.

goto3 avatar goto3 commented on July 17, 2024

Nice. Thank you very much for this project. Very useful for the University project I am making.

from materialskin.

leocb avatar leocb commented on July 17, 2024

Probably fixed on #24 further testing is still required Nope, still broken

from materialskin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.