I've been wanting to dip my toes into old-school Win32 development for a while now, this codebase looks like a great example to pore over.
Lightweight SQLite Editor for Windows
101–110 of 114 posts
Re: Lightweight SQLite Editor for Windows
#102Earlier quoted context omitted.
I didn't assume you'd give a helpful answer, but I didn't expect you to give that kind of an answer, either. You're always welcome not to respond if this is taking too much of your time. I figured maybe at least one of us would learn something about high DPI issues, hence why I engaged. And I did just try what you said and the combo box fine to me: https://imgur.com/a/Mb83tPj
That is not the default Win32 combobox. I don't know what you're using, but it's not the plain c api.
Re: Lightweight SQLite Editor for Windows
#103If you can do with an even leighter-weight client, you can try my very own https://sqliteviewer.app . It's all browser/wasm-based and works offline, but has some important shortcomings.
How is that lighter weight than a simple win32 app?
Re: Lightweight SQLite Editor for Windows
#104Earlier quoted context omitted.
That is not the default Win32 combobox. I don't know what you're using, but it's not the plain c api.
dataflow: That is indeed a nice looking combobox in your new screenshot. I'm not getting that result on win10 when using the Win32 c api, and if you're not using something like WinForms, MFC or another abstraction, it's hard to say why it works for you. I'm on a 4k resolution with 200% scaling and the button is way too thin.
If I remember & get a chance later I can try to make a minimal example.
Edit: Based on this comment [1] I'm guessing you're on something like Windows 8.1 rather than a recent version of Windows 10 or later.
[1] https://www.reddit.com/r/programming/comments/d77mf7/comment...
Re: Lightweight SQLite Editor for Windows
#105Re: Lightweight SQLite Editor for Windows
#106I've been wanting to dip my toes into old-school Win32 development for a while now, this codebase looks like a great example to pore over.
I love that this has been built with the old-school API! I've done a bit over the years and find it kind of pleasurable (maybe I enjoy torture!).
Re: Lightweight SQLite Editor for Windows
#107Earlier quoted context omitted.
SQLite is so very extremely popular that I don’t think you have to worry about corruption under Wine—if it was broken, a lot of software would be broken.
I'm not considering Wine emulation in isolation, I'm considering a scenario where someone would use this as a UI to inspect a SQLite database powering for example a Linux based NodeJS or PHP application. Would the semantics of the Linux based application (with SQLite compiled for Linux) correspond to the UI (with SQLite compiled for Windows) running through an API emulation layer (Wine) that potentially translates se…
Re: Lightweight SQLite Editor for Windows
#108Earlier quoted context omitted.
dataflow: That is indeed a nice looking combobox in your new screenshot. I'm not getting that result on win10 when using the Win32 c api, and if you're not using something like WinForms, MFC or another abstraction, it's hard to say why it works for you. I'm on a 4k resolution with 200% scaling and the button is way too thin.
I'm not sure if this makes a difference but do you see that problem with dialogs (resources + DialogBox) rather than basic windows? If I remember & get a chance later I can try to make a minimal example. Edit: Based on this comment [1] I'm guessing you're on something like Windows 8.1 rather than a recent version of Windows 10 or later. [1] https://www.reddit.com/r/programming/comments/d77mf7/comment...
Re: Lightweight SQLite Editor for Windows
#109But why is it Windows only? Even as a Windows user, my professional day is spent on a Mac even if my Windows machine is running at the same time. What arcane library does it rely on that it can't just cross-compile for all three operating systems?
Great question. What arcane libraries do all those Mac-specific text editors, IDEs, etc that Mac users rave about use, that they can't be cross-compiled for all three operating systems?
Re: Lightweight SQLite Editor for Windows
#110Earlier quoted context omitted.
I'm confused. Are you sure high DPI needs patching system controls to avoid pixelation? Doesn't dpiAwareness avoid the pixelation? I certainly haven't needed to patch anything for this in the past. If you have an example you could point to, that would be great, since I don't know if I'm missing something here. Also, question: do you know of a good way to test for high-DPI mode on a low-DPI screen?
Nope, you get the pleasure of implementing dpi support yourself. https://building.enlyze.com/posts/writing-win32-apps-like-it...