#textbox

Learn JavaScript, React, and TypeScript to Node.js, Fullstack, and Backendfrontendmasters.com@web.brid.gy
2024-12-27
Felix Palmen :freebsd: :c64:zirias@bsd.cafe
2024-06-08

@jhx Testing my current state in #Xephyr, without any #Xresources loaded, running #fvwm3 with no configuration ....

I guess my "ColorSet" class needs a few more values. Only one flavor of "background color" for the default state (not selected/inactive/hovered) doesn't cut it, e.g. a #TextBox should always stick out ... 🤔

#X11 #xcb #programming

2024-06-07

If you expect users to type into textbox, it should appear empty. Do not put your branding in there!

#GooglePlay #Placeholder #Textbox

Felix Palmen :freebsd: :c64:zirias@bsd.cafe
2024-06-07

Next step completed, my #TextBox widget now supports mouse input: click, doubleclick and drag 🥳.

Not so nice: With overall more drawing operations, I see #flicker happening more often 😒. Did some research already, it seems with #XRender, the only way to avoid it would be to render to some #pixmap (instead of the window directly) and use #XPresent to get it on the screen? @thomasadam do you know an "easier" way? 🙈

Felix Palmen :freebsd: :c64:zirias@bsd.cafe
2024-06-03

Selections: done. Rendered using a pre-colored src picture using #XRender #composite #glyphs (Still only keyboard input, mouse will be next)

#xcb #x11 #programming #textbox

Felix Palmen :freebsd: :c64:zirias@bsd.cafe
2024-06-02

Ok, my #textbox #widget now has complete support for line editing using the keyboard ... and a blinking cursor 🥳

Still missing: Selections and any sort of mouse support 😉

#X11 #xcb #programming

Felix Palmen :freebsd: :c64:zirias@bsd.cafe
2024-06-01

That'll be a lot of work 😎

Started implementing a #TextBox widget. So far only appends what's typed and draws a (non-blinking) cursor at the end 🙈

#X11 #xcb #programming

Felix Palmen :freebsd: :c64:zirias@bsd.cafe
2024-05-30

Ok, I now have my immutable string class, featuring static const initialization and, for dynamically allocated instances, reference counting:
github.com/Zirias/xmoji/blob/m

... plus a mutable variation the intended #TextBox #widget should operate on, offering a "view" on its internal data to optimize passing temporaries:
github.com/Zirias/xmoji/blob/m

Now, I still can't start implementing this widget. First I have to implement getting #keyboard #input with #xcb. I figured I probably won't need #xkb for my purposes, processing core #X11 events should be enough. Of course this involves holding the keyboard mapping state myself 🤨

I can't use any "xcb-util" stuff as this would interfer with my async model integrating xcb with a generic event loop ... but at least I can read this code to figure out how things are supposed to work:
gitlab.freedesktop.org/xorg/li

Felix Palmen :freebsd: :c64:zirias@bsd.cafe
2024-05-29

Next thing is working on a #TextBox #widget. This will require, among other things, translating between pixel coordinates and string positions (for selections and drawing a cursor at the correct position).

Of course, #harfbuzz operates on #Unicode codepoints, stored as 32bit unsigned integers. So, yesterday, I started implementing a string class holding the value in both #utf8 and #utf32 and converting between these.

Now I realized this wasn't all to helpful, so I'll start over. What I want is some immutable string class using char32_t internally and offering functions to create mutated clones...

#xcb #x11 #programming

2023-12-18

Ein #Issue mit #Friendica, die Höhe der #Textbox betreffend, ist gefixed. Nice. ;)
Jetzt müsste vielleicht noch nerdica.net auf Stand gebracht werden, hüstel...
@ij

github.com/friendica/friendica…

Dick Smiths Fair Go Supportersdsfgs@activism.openworlds.info
2023-06-23

Has anyone thought to publish a #website where all the text is #ASCIIArt except whatever #hashtags you want search engines to store and use?

The fun part would be, to view the page correctly a person would need to adjust the width of a #textbox till a sane page emerges. That is, there is no line breaks in the #ascii.

It would seem like a great way to mess with #searchEngines and importantly, #AI systems.

#webdev #digitalFeudalismCounterAction

Rod2ik 🇪🇺 🇨🇵 🇪🇸 🇺🇦 🇨🇦 🇩🇰 🇬🇱rod2ik
2023-01-03

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst