09-22-2023, 07:26 PM
Well, I may NOT be able to embed user-editable Text Boxes into my widgets system. However, its not for me being unable, but for that there are so many 'differing' full-keyboard systems out there that a wrapper would not be possible. The variables between all the varieties are just SO damn different. So keyboard input into an editable text box is really left to the end user.
But I'm certainly not done!
Scrolling number boxes are available in two varieties... one has left/right arrows on either side, the other has up/down buttons on the right side. The numbers scroll beautifully AND the dimensions of the widgets have a nice range.
For button height sake, the number boxes cannot be any shorter than 12 pixels, that because the option for up/down arrow buttons would only allot for a 6px tall button each and drawing up/down arrows does require some space. However, the right number box example shows a window of 20px in height. So you can obviously make them taller.
OH, and I mentioned that adding drive/folder/filename widgets might be left to the end-user? I had no idea how easy it was to get all the Drive letters for a PC.
Stupid code goes through ASCII characters 65-90 (or letters A to Z), adds a colon (:), and checks if the root directory (the drive in this case) exists.
Works for me, returns all my drives including USB drives. Simple and useful to propagate a Drive Listbox.
But I'm certainly not done!
Scrolling number boxes are available in two varieties... one has left/right arrows on either side, the other has up/down buttons on the right side. The numbers scroll beautifully AND the dimensions of the widgets have a nice range.
For button height sake, the number boxes cannot be any shorter than 12 pixels, that because the option for up/down arrow buttons would only allot for a 6px tall button each and drawing up/down arrows does require some space. However, the right number box example shows a window of 20px in height. So you can obviously make them taller.
OH, and I mentioned that adding drive/folder/filename widgets might be left to the end-user? I had no idea how easy it was to get all the Drive letters for a PC.
Code:
for i in 65..90
drive_letter = i.chr + ":"
p 'We found ' + drive_letter if FileTest.directory?(drive_letter)
end
Stupid code goes through ASCII characters 65-90 (or letters A to Z), adds a colon (:), and checks if the root directory (the drive in this case) exists.
Works for me, returns all my drives including USB drives. Simple and useful to propagate a Drive Listbox.