FLTK logo

Re: [fltk.general] Multiple Document Interface system ?

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

Re: Multiple Document Interface system ? Lucas Sanner Aug 12, 2025  
 
Thank you guys for your help and advice.
After checking out Albrecht's link I think I'm gonna drop the MDI system idea and go for a TDI (Tabbed Document Interface) system instead.
An MDI system is indeed too complex and tricky to set up. Conversely, a TDI system seems easier to achieve (through Fl_Tabs) and rules out the complexity of draggable and dockable widgets.

Le lun. 11 août 2025 à 15:54, Ian MacArthur <imacarthur@gmail.com> a écrit :
On Monday, 11 August 2025 at 14:21:36 UTC+1 Albrecht-S wrote:
There is no "simple code example" for what you want. You can easily use
Fl_Tabs to create a simple MDI system (each tab can contain one
document), but dragging windows around and "docking" is not a simple
task. That's why I wrote that there is no "simple" example.

However, there have been at least two discussions (or issues) on GitHub
[1] recently (say: in the last two or three months) about
implementations of draggable and dockable windows. You may take a look
at that to get an impression how complicated all this is, particularly
Wayland support because Wayland hides window coordinates...

FWIW, a long time ago (think it was back in the 1.1 era, might even have been 1.0 I suppose...) I had a stab at this - though that project fell out of favour and I can not now find the code.

FWIW, my MDI "windows" were actually groups, IIRC, not real "windows" at all, so the Wayland aspect might not be a problem if you go that way. At the time I _think_ this was due to some issues with nesting windows (possibly on older versions of OSX?)  Don't really recall.

Anyway, this meant the the per-window co-ordinates were a real pain to figure out (they couldn't just be window-relative) and I also had to draw my own window decorations, so they never really looked quite like the "native" widgets anyway.

I honestly don't think it's worth the effort!


--
You received this message because you are subscribed to a topic in the Google Groups "fltk.general" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/fltkgeneral/6MN3HnKkIkM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/fltkgeneral/71d41efb-8777-4c76-965f-e8e8ee8bd579n%40googlegroups.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/fltkgeneral/CAD7v4aSD6OAYjzWaXuouWp2A7GrjZWmhARJs5xS0JT%2B_CKjQnw%40mail.gmail.com.
[ Direct Link to Message ]
 
     
[ Previous Message ] [ New Message | Reply ] [ Next Message ]
 
 

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