Adding the screen shot of the discrepancy.
Phil.
--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/3f1a648d-299c-4279-b95d-bf6254b9e93fn%40googlegroups.com.
Adding the screen shot of the discrepancy.
Adding this code to my extension of Fl_Input_Choice makes them
the same size, but the arrow heads are different - see attached
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/b95f6542-2604-4bba-be7b-bf26d6fb89ca%40btinternet.com.
On 19/05/2024 16:37, 'Philip Rose' via fltk.general wrote:
Adding the screen shot of the discrepancy.
Adding this code to my extension of Fl_Input_Choice makes them the same size, but the arrow heads are different - see attached
// Change drawing methods to make menu arrow similar to Fl_Choicevirtual int menu_w () const {if (menu_h() < 20) return menu_h();else return 20;}virtual int menu_x() const { return(x() + w() - menu_w() - Fl::box_dx(box())); }virtual int inp_w() const { return(w() - Fl::box_dw(box()) -menu_w()); }Phil.
I can see the difference:
In Fl_Input_Choice::Input_Menu_Button::draw() - the rectangle is "inset" by 1. in Fl_Choice::draw() it is "inset" according to FL_UP_BOX . This is not readily hackable, without changing the FLTK code.
Phil.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/23fd0851-75b6-4984-b3b5-01507a5900fd%40btinternet.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/0fb1e5c4-d257-44aa-8134-c144ae5f1ac5%40btinternet.com.
Will see if I can fix that too in Fl_Choice while my head is in this code, as I assume that should be resolved.
On 5/19/24 14:15, 'pvr...@btinternet.com' via fltk.general wrote:
Mmm, seems like this should be reported as a bug.
OP, if you create a github issue, I'll either assign myself (apparently git blame shows me for the lines of code in question), or if another dev feels better situated to handle it, they can take it:
Ticket raised.
Great -- thanks; issue #978
for those following.
Continuing development conversation there.
Devs, I have questions raised in that issue that probably
needs some discussion to solve the non-default scheme cases.