About Monkey 2 › Forums › Monkey 2 Projects › ted21 new document picker
This topic contains 7 replies, has 2 voices, and was last updated by 
 AdamStrange
 2 years, 7 months ago.
- 
		AuthorPosts
 - 
		
			
				
September 16, 2016 at 7:47 am #3967
Yep. me again…
This time with a new document picker. Yu can see where I’m going with this…
Thing to note: The help text at the bottom of the image is dynamic – it changes depending on which button you are over (currently the mojo button), and disappears when you are not over anything interest.
This is all controlled by the layout manager and you just need to set some help text for a control.
E.G.
Monkey12345Local newMonkey3Button := New UXButton( "Letterbox" )newMonkey3Button.SetGridLayout( 4, 3, 1, 1 )newMonkey3Button.TextAlign = ALIGN_TOPLEFTnewMonkey3Button.HelpText = "Create a Mojo app with support for different sized windows controlled by the user"Currently just a demo, but I will now start to integrate it into ted21
I’ve also added a second image with the page grid shown along with the designer
September 17, 2016 at 11:05 am #3987ok, the page itself has now been added to ted21
So when you click the new button/menu item/ctrl+n the ui will be replaced with the new document ui.
You will loose virtually all the ui; menus, documents, everything until you either press back or a new file type.
I’m now starting to hook up the actual page logic into ted21.
But (after the initial shock) everything works smoothly and very fast!
I’ve also added the ability to load recent files and projects to this page
Attachments:
September 17, 2016 at 8:03 pm #3990binary pls.
September 17, 2016 at 9:57 pm #3991PATH=D:\devtools\i686-5.3.0-posix-dwarf-rt_v4-rev0\mingw32\bin;${PATH} thats the error BTW..
I guess I could edit the source and throw a colour in there so it compiles but I wonder if there is anything else thats just gona break if I mess with it.
September 18, 2016 at 6:13 am #3992That looks like a path error with a 32 bit version of mingw. Check the install page for how to install the correct 64but version here:
https://github.com/blitz-research/monkey2
Heres the text with the install bit for you:
Monkey123456789101112131415161718192021222324252627282930313233343536***** Building monkey2 on Windows *****1) Install the mingw-64 compiler. There is a self-extracting archive of mingw-64 that has been tested with monkey2 here:<a href="http://www.monkey-x.com/mak/devtools/i686-5.3.0-posix-dwarf-rt_v4-rev0.exe" rel="nofollow">http://www.monkey-x.com/mak/devtools/i686-5.3.0-posix-dwarf-rt_v4-rev0.exe</a>If you install this to the monkey2 'devtools' directory, the following steps should 'just work'.The general release of mingw-64 is available here:<a href="https://sourceforge.net/projects/mingw-w64/" rel="nofollow">https://sourceforge.net/projects/mingw-w64/</a>When installing, you should select 'i686' for 'architecture', 'posix' for 'threads' and 'dwarf' for 'exception'.2) Open a command prompt and change to the 'monkey2\scripts' directory.3) Enter 'rebuildall' and hit return. Wait...4) If all went well, you should end up with a 'Monkey2 (Windows)' exe in the monkey2 directory.5) You should now be able to build and run monkey2 apps. There is a simple 'hello-world.monkey2' test in the monkey2directory, and some simple demos in the '/bananas' directory.***** Building monkey2 on MacOS/Linux *****1) On MacoS, install the xcode command line tools. You can do this by entering 'xcode-select --install' in a shell.2) Open a shell and change to the 'monkey2/scripts' directory.3) Enter './rebuildall.sh' and hit return. Wait...4) If all went well, you should end up with a 'Monkey2 (...)' app in the monkey2 directory.5) You should now be able to build and run monkey2 apps. There is a simple 'hello-world.monkey2' test in the monkey2directory, and some simple demos in the '/bananas' directory.September 18, 2016 at 6:14 am #3993I’m working on a binary build – i’ve been away with folks so just getting back to things
September 19, 2016 at 9:05 am #4021That was the wrong copy and paste sorry the error was actually with two colours, UIRed and UIBlue, I changed them all to just blue and red to get it to compile.
September 19, 2016 at 9:37 am #4022AHA. The extended colors are not present in the default build. MARK CAN WE HAVE THEM PLEASE?
Basically there are number of additions to the core monkey code that need to be added. I have an idea for a work around until Mark adds them.
 - 
		AuthorPosts
 
You must be logged in to reply to this topic.


