Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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?
  724  855  599  923  575  468  400  206  147  564  878  823  652  556 bxor cross forever
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.
New to QB64pe? Visit the QB64 tutorial to get started.
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?

   
  724  855  599  923  575  468  400  206  147  564  878  823  652  556 bxor cross forever
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


Possibly Related Threads…
Thread Author Replies Views Last Post
  find color of a pixel PhilOfPerth 8 740 10-09-2025, 05:20 PM
Last Post: SMcNeill
  palette color help pmackay 7 974 07-13-2025, 11:51 PM
Last Post: madscijr
  Either I'm doing MID$( wrong or it has a bug TDarcos 4 798 04-13-2025, 11:14 PM
Last Post: TDarcos
  Trasparent color not being set correctly here... Dav 9 1,521 11-10-2024, 04:11 AM
Last Post: bplus
  I must be missing something obvious with this code Dav 8 1,450 09-16-2024, 07:47 PM
Last Post: Pete

Forum Jump:


Users browsing this thread: 1 Guest(s)