FLTK logo

Re: [RFE] STR #2762: Ability to set icon character for fl_choice

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.bugs  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: [RFE] STR #2762: Ability to set icon character for fl_choice Albrecht Schlosser Dec 04, 2021  
 
[STR Closed w/Resolution]

Link: https://www.fltk.org/str.php?L2762
Version: 1.4-feature
Fix Version: 1.4.0
Git Commit: a0724ab7c4fedbd037d5b72332ae47fde8584dff


Fixed in Git repository.

commit: a0724ab7c4fedbd037d5b72332ae47fde8584dff (FLTK 1.4.0)

I implemented a new function

  fl_message_icon_label(const char *str)

to set the icon label. We need 'const char *' because the label must be
encoded in UTF-8 and can be more than one byte - despite the fact that it
must be short (only one UTF-8 character) so it fits in the icon space.

This function can be called right before any of the common dialogs and
affects only the next dialog execution (see documentation).


Link: https://www.fltk.org/str.php?L2762
Version: 1.4-feature
Fix Version: 1.4.0
Git Commit: a0724ab7c4fedbd037d5b72332ae47fde8584dff


Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.