Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Extra libraries, Code snippets, applications etc. » U++ users applications in progress and useful code snippets, including reference examples! » a simple MDI example
a simple MDI example [message #33471] Thu, 11 August 2011 04:56 Go to next message
o_wild is currently offline  o_wild
Messages: 28
Registered: December 2008
Location: Urmqi
Promising Member

This is a very simple MDI example with text edit.
It's not finished, because it needs window arrangement functions, e.g. 'overlap', 'tile vertical','tile horizontal' , and it needs 'save/save as' functions.
I put it here in the hope of finding a better solution to MDI program.
Thanks
  • Attachment: TestMDI.zip
    (Size: 2.31KB, Downloaded 333 times)
Re: a simple MDI example [message #33473 is a reply to message #33471] Thu, 11 August 2011 09:15 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3268
Registered: August 2008
Senior Veteran
Hello o_wild

It is true that your app opens multiple windows but it is not really a MDI app as it requires the windows to reside under a single parent window.


Best regards
Iñaki
Re: a simple MDI example [message #34003 is a reply to message #33473] Sat, 08 October 2011 06:32 Go to previous messageGo to next message
o_wild is currently offline  o_wild
Messages: 28
Registered: December 2008
Location: Urmqi
Promising Member

Hi,Koldo
I found that Style() function in TopWindow can solve this problem.Modified code is attached.

Best regards
o_wild
  • Attachment: TestMDI.zip
    (Size: 1.84KB, Downloaded 307 times)
Re: a simple MDI example [message #34004 is a reply to message #34003] Sat, 08 October 2011 11:43 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3268
Registered: August 2008
Senior Veteran
Hello o_wild

I see. Now it works rather well.

There is a little problem: the window overlaps the menu:

index.php?t=getfile&id=3468&private=0

Do you think if it is possible to make it work in Linux?
  • Attachment: dib.PNG
    (Size: 13.25KB, Downloaded 710 times)


Best regards
Iñaki
Re: a simple MDI example [message #34021 is a reply to message #34004] Mon, 10 October 2011 17:11 Go to previous message
o_wild is currently offline  o_wild
Messages: 28
Registered: December 2008
Location: Urmqi
Promising Member

Hi,
In Fedora the Style() function is not accessible in TopWindow class, and MaximizeBox().MinimizeBox() lose effect in child window.Sizeable() still takes effect.
By the way, installation in Fedora have a minor problem. 'make install' can not select /usr/local as the default installation path, and --prefix=xx is not accessible, so 'theide' is copied to the directory of the extracted source code(in my computer it is home/<myname>/Download/upp-x11-src-3550/uppsrc).

Best regards,
o_wild

[Updated on: Tue, 11 October 2011 05:06]

Report message to a moderator

Previous Topic: Compiling MPIR in TheIde
Next Topic: GLCtrl is too primitive
Goto Forum:
  


Current Time: Fri Jan 21 00:28:05 CET 2022

Total time taken to generate the page: 0.00990 seconds