Color picker bug or just something I'm missing
#1
I don't see a dialog box "Title" that I assign. It just calls it "Color". Otherwise, it works fine.

Code: (Select All)
SCREEN _NEWIMAGE(1024, 512, 32)
a~& = _COLORCHOOSERDIALOG("Flood", &HFF000000)
COLOR , a~&
CLS
t~& = _COLORCHOOSERDIALOG("Word", &HFFFFFFFF)
COLOR t~&
LOCATE 10, 10
PRINT "This is your color scheme"
END
DO: LOOP: DO: LOOP
sha_na_na_na_na_na_na_na_na_na:
Reply
#2
What version/release of QB64PE are you running?

It works for me and I'm on v3.7. :O This on Spiral Linux KDE, which is Debian "Bullseye" clone.

Now I'm going to be asked for a screenshot or it didn't happen...

EDIT: I forgot to write that the dialogs other than the open, save file and input ones could be rather moody about the settings they demand. IIRC from the old Wiki the font one could be buggy on certain configurations of Windows.
[Image: colorchooser-spiral-kde.png]

image uploader
Reply
#3
(08-09-2023, 05:35 PM)OldMoses Wrote: I don't see a dialog box "Title" that I assign. It just calls it "Color". Otherwise, it works fine.

Code: (Select All)
SCREEN _NEWIMAGE(1024, 512, 32)
a~& = _COLORCHOOSERDIALOG("Flood", &HFF000000)
COLOR , a~&
CLS
t~& = _COLORCHOOSERDIALOG("Word", &HFFFFFFFF)
COLOR t~&
LOCATE 10, 10
PRINT "This is your color scheme"
END

Oh I forgot they had this dialog. Yeah not exactly intuitive, I can't figure out how those custom colors are supposed to work.

I will stick with my own thankyou very much!

BTW selecting multiple files in _OpenFileDialog works horribly also! and no hints from wiki how to get 3 files that are not in same folder or same shift + mouse block. Plus you are done if you hit any key! WTH?
b = b + ...
Reply
#4
I can confirm that the title does not work. I tried it in versions from 3.4.1 to 3.8.0, same result.
Software and cathedrals are much the same — first we build them, then we pray.
QB64 Tutorial
Reply
#5
I'm using 3.8 (under Windows) and was under the impression that one could assign a title to the color dialog box, but the box apparently has other ideas. It's a small thing and I'll just give it a double quote title from now on.
DO: LOOP: DO: LOOP
sha_na_na_na_na_na_na_na_na_na:
Reply
#6
Yes title does not work for Windows (10-64 laptop QB64pe v 3.8) but maybe for mnr's Linux. Maybe developed and tested in Linux. The other Dialog titles are screwed up too even though they said they were fixed. I updated code using Dialog that saves and the title is still screwy picking random strings from god knows where?

Btw just figured out custom color, sorry just have to play with it to figure it out, so maybe that works if it saves palette between calls?

   
b = b + ...
Reply
#7
I've had good luck with the other new dialogs so far, although _NOTIFYPOPUP has failed to pop up in one circumstance. I'll have to try them on my newer Win11pro machine later.
DO: LOOP: DO: LOOP
sha_na_na_na_na_na_na_na_na_na:
Reply
#8
Windows ChooseColor function does not support setting a title for the color dialog box.

Also see CHOOSECOLORW - Win32 apps | Microsoft Learn

However, custom titles should work on OSes where the underlying native dialog supports the feature.
Reply
#9
After playing with it some more, I noticed that it ignored the default color as well. Like a model T, you can have any default color you want, as long as it's black. Just a Windows thing then.
DO: LOOP: DO: LOOP
sha_na_na_na_na_na_na_na_na_na:
Reply




Users browsing this thread: 2 Guest(s)