STR #2662

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 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]

Return to Bugs & Features ]

STR #2662

Application:FLTK Library
Status:1 - Closed w/Resolution
Priority:1 - Request for Enhancement, e.g. asking for a feature
Scope:3 - Applies to all machines and operating systems
Summary:Docs for "Drawing Things In FLTK" should cover coordinate space of widgets vs. windows
Created By:greg.ercolano
Assigned To:AlbrechtS
Fix Version:1.4.0
Fix Commit:2d18c6f650c0001319c8883f8deb819d12984ac0
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:

No files

Trouble Report Comments:

Name/Time/Date Text top right image
#1 greg.ercolano
11:10 Jun 10, 2011
This is a docs-only RFE.

As Li Ding pointed out in this thread:

..we probably need to go into some details in the "Drawing Things in FLTK" section about how the coordinate space works for widgets vs. windows.

In the above posting, I pointed out some things that should be strengthened. I can see making a few paragraphs and an image describing the details of coordinate space for widgets and windows that would help someone first learning about deriving widgets and overriding draw().

Assigning this to myself, and I'll do some research on the docs to see where all the sections are we talk about deriving custom widgets, and make sure this subject is covered.

[Edit: link corrected (Albrecht)]
#2 AlbrechtS
11:04 Dec 07, 2021
The mentioned thread is "Fltk coordinate behavior is a little peculiar" from Li Ding on Jun 9, 2011.

I don't know if this thread is of any value, just wanted to mention what I saw.

Note that searches for the title of such old threads are currently disabled. This thread can not be found in fltk.general in Google Groups either because it's been before we moved to Google Groups.
#3 AlbrechtS
11:20 Dec 07, 2021
I do also believe that Duncan's recent PR #304: "Documentation on widget coordinates and layout, plus new test programs" will add enough info about the FLTK coordinate space to the docs, see:

I think that we can close this STR, at least when Duncan's documentation updates have been merged.

Just in case anybody likes to see the old thread in the FLTK web interface: click the link in comment #1 and then on "Next Message" until you reach message number 24133. There are several unrelated messages on the way but you'll eventually see all 18 messages of the thread.

@Greg: many points of the discussion are now obsolete (eg. windows in windows), other points may be worth to be mentioned or cross-referenced in the docs, please see yourself if anything is worth keeping this STR open.
#4 AlbrechtS
11:40 Dec 07, 2021
FTR: Clarification regarding "windows in windows": meanwhile subwindows are real system windows on macOS as well. Matt mentioned in a message of that thread that they were emulated on macOS which is no longer the case.  
#5 AlbrechtS
05:43 Jan 27, 2023
Fixed in Git repository.

The FLTK coordinate space is covered in a new chapter "Coordinates and Layout Widgets" in the FLTK docs since git commit 2d18c6f650c0001319c8883f8deb819d12984ac0.
bottom left image   bottom right image

Return to Bugs & Features ]


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