QB64 Phoenix Edition
Color picker bug or just something I'm missing - Printable Version

+- QB64 Phoenix Edition (https://staging.qb64phoenix.com)
+-- Forum: QB64 Rising (https://staging.qb64phoenix.com/forumdisplay.php?fid=1)
+--- Forum: Code and Stuff (https://staging.qb64phoenix.com/forumdisplay.php?fid=3)
+---- Forum: Help Me! (https://staging.qb64phoenix.com/forumdisplay.php?fid=10)
+---- Thread: Color picker bug or just something I'm missing (/showthread.php?tid=1886)



Color picker bug or just something I'm missing - OldMoses - 08-09-2023

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



RE: Color picker bug or just something I'm missing - mnrvovrfc - 08-09-2023

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


RE: Color picker bug or just something I'm missing - bplus - 08-09-2023

(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?


RE: Color picker bug or just something I'm missing - TerryRitchie - 08-09-2023

I can confirm that the title does not work. I tried it in versions from 3.4.1 to 3.8.0, same result.


RE: Color picker bug or just something I'm missing - OldMoses - 08-09-2023

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.


RE: Color picker bug or just something I'm missing - bplus - 08-09-2023

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?

   


RE: Color picker bug or just something I'm missing - OldMoses - 08-09-2023

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.


RE: Color picker bug or just something I'm missing - a740g - 08-09-2023

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.


RE: Color picker bug or just something I'm missing - OldMoses - 08-10-2023

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.