Desktop Apps with Pharo 3
Hi, For my Pharo Lecture I want to show students how to make a desktop app in Pharo 3.0 (Yes I'm using a Beta for my lecture, because Pharo 3 is cool :-) - I wonder if there are any new cool solution to strip out dev tools or at least lock the world menu? - Is there any way to set the OS window size other than simply turning it full screen? Thanks for your help, Noury Ecole des Mines de Douai http://car.mines-douai.fr/noury -- Afin de contribuer au respect de l'environnement, merci de n'imprimer ce courriel qu'en cas de necessite Please consider the environment before you print
On 18 Feb 2014, at 17:26, Noury Bouraqadi <bouraqadi@gmail.com> wrote:
Hi,
For my Pharo Lecture I want to show students how to make a desktop app in Pharo 3.0 (Yes I'm using a Beta for my lecture, because Pharo 3 is cool :-)
- I wonder if there are any new cool solution to strip out dev tools or at least lock the world menu?
To prevent the current user to open debuggers: Smalltalk tools userManager currentUser permissions canDebug: false. (pay attention to not prevent yourself to execute code :P)
- Is there any way to set the OS window size other than simply turning it full screen?
DisplayScreen hostWindowSize: ext Ben
Hi Noury, You can implement a custom world menu to replace the existing one, see my post here for a description: http://lists.gforge.inria.fr/pipermail/pharo-project/2010-September/032696.h... You implement an own world menu by using a pragma and then switching to it. Ideally you have a secret key combination to switch between dev mode vs. runtime mode. Often it is a good idea to keep dev tools in end user apps - they can help you fixing a problem. So if size does not matter you can even use Unit tests to check that the environments fit the requirements for the app. Also check out the ImageCleaner, #cleanUpForProduction methods and friends. Regarding window size you can (for Windows) load my "OSWindows" package from config browser. There you can evaluate WinWindow pharoWindow moveWindowX: 10 y: 10 width: 400 height: 400 or WinWindow pharoWindow centerOnDesktop The idea of the OS package is to provide similar API wrappers for other OS platforms (like X-Windows/Unix or Mac) and the later add a common layer on top of it. Currently I only started with Windows since the Win32 API is the one that I know best. Feel free to motivate your students to help here, although it requires some NativeBoost knowledge. Also note the VistaCursors package in config browser - it shows you how to change cursors. This is often very handy for Games with custom cursors. Note that the size of the cursor can be very large if you like (as the Windows VM supports this, see an example here: [1] http://forum.world.st/New-Window-VM-Closures-FT2Plugin-Large-Cursors-td10679... I'm not sure for other platforms, just try it. You can also provide an update mechanism for an application, similar to the one Pharo uses. (loading packages via scripts, ...) You can also use: http://smalltalkhub.com/#!/~hernan/ApplicationUpdater You can also build a custom VM with an own icon and an installer file. I already described all this here: http://lists.gforge.inria.fr/pipermail/pharo-project/2009-May/008774.html Hope this gives you some ideas what could be done. Possibilities are endless... Thanks Torsten
Gesendet: Dienstag, 18. Februar 2014 um 17:26 Uhr Von: "Noury Bouraqadi" <bouraqadi@gmail.com> An: "Pharo Development List" <pharo-dev@lists.pharo.org> Betreff: [Pharo-dev] Desktop Apps with Pharo 3
Hi,
For my Pharo Lecture I want to show students how to make a desktop app in Pharo 3.0 (Yes I'm using a Beta for my lecture, because Pharo 3 is cool :-)
- I wonder if there are any new cool solution to strip out dev tools or at least lock the world menu?
- Is there any way to set the OS window size other than simply turning it full screen?
Thanks for your help, Noury Ecole des Mines de Douai http://car.mines-douai.fr/noury --
Afin de contribuer au respect de l'environnement, merci de n'imprimer ce courriel qu'en cas de necessite
Please consider the environment before you print
On Tue, Feb 18, 2014 at 5:26 PM, Noury Bouraqadi <bouraqadi@gmail.com> wrote:
For my Pharo Lecture I want to show students how to make a desktop app in Pharo 3.0 (Yes I'm using a Beta for my lecture, because Pharo 3 is cool :-)
https://ci.inria.fr/pharo-contribution/job/PharoForTheEnterprise/lastSuccess... -- Damien Cassou http://damiencassou.seasidehosting.st "Success is the ability to go from one failure to another without losing enthusiasm." Winston Churchill
On 2014-02-19, at 16:19, Damien Cassou <damien.cassou@gmail.com> wrote:
On Tue, Feb 18, 2014 at 5:26 PM, Noury Bouraqadi <bouraqadi@gmail.com> wrote:
For my Pharo Lecture I want to show students how to make a desktop app in Pharo 3.0 (Yes I'm using a Beta for my lecture, because Pharo 3 is cool :-)
https://ci.inria.fr/pharo-contribution/job/PharoForTheEnterprise/lastSuccess...
nice! Too bad we still have to rely on bash scripts instead of pure Pharo code ;)
Thanks Ben, Torsten and Damien for your answers. A quickly scanned the materials and I have a question. Is there someway to force the OS window have a fixed size? I guess it should be doable at least if we can capture a change in the OS Window. Noury On 19 févr. 2014, at 16:19, Damien Cassou wrote:
On Tue, Feb 18, 2014 at 5:26 PM, Noury Bouraqadi <bouraqadi@gmail.com> wrote:
For my Pharo Lecture I want to show students how to make a desktop app in Pharo 3.0 (Yes I'm using a Beta for my lecture, because Pharo 3 is cool :-)
https://ci.inria.fr/pharo-contribution/job/PharoForTheEnterprise/lastSuccess...
-- Damien Cassou http://damiencassou.seasidehosting.st
"Success is the ability to go from one failure to another without losing enthusiasm." Winston Churchill
Hi Noury, there is support for this in my "OS" project, but only for Windows so far. Load "OSWindows" from the config browser and then evaluate WinWindow pharoWindow setNonResizable Try to resize it then. Note that this is not persistent over image session, so do it at startup. Dont know if there is a more platform neutral solution already available within Pharo/Pharo VM like setting the size. Bye T.
Gesendet: Donnerstag, 20. Februar 2014 um 14:47 Uhr Von: "Noury Bouraqadi" <bouraqadi@gmail.com> An: "Pharo Development List" <pharo-dev@lists.pharo.org> Betreff: Re: [Pharo-dev] Desktop Apps with Pharo 3
Thanks Ben, Torsten and Damien for your answers. A quickly scanned the materials and I have a question. Is there someway to force the OS window have a fixed size?
I guess it should be doable at least if we can capture a change in the OS Window.
Noury
On 19 févr. 2014, at 16:19, Damien Cassou wrote:
On Tue, Feb 18, 2014 at 5:26 PM, Noury Bouraqadi <bouraqadi@gmail.com> wrote:
For my Pharo Lecture I want to show students how to make a desktop app in Pharo 3.0 (Yes I'm using a Beta for my lecture, because Pharo 3 is cool :-)
https://ci.inria.fr/pharo-contribution/job/PharoForTheEnterprise/lastSuccess...
-- Damien Cassou http://damiencassou.seasidehosting.st
"Success is the ability to go from one failure to another without losing enthusiasm." Winston Churchill
2014-02-18 17:26 GMT+01:00 Noury Bouraqadi <bouraqadi@gmail.com>:
Hi,
For my Pharo Lecture I want to show students how to make a desktop app in Pharo 3.0 (Yes I'm using a Beta for my lecture, because Pharo 3 is cool :-)
You could mention Phobos: https://ci.inria.fr/pharo-contribution/view/Phobos/ -- Pavel
- I wonder if there are any new cool solution to strip out dev tools or at least lock the world menu?
- Is there any way to set the OS window size other than simply turning it full screen?
Thanks for your help, Noury Ecole des Mines de Douai http://car.mines-douai.fr/noury --
Afin de contribuer au respect de l'environnement, merci de n'imprimer ce courriel qu'en cas de necessite
Please consider the environment before you print
participants (6)
-
Benjamin -
Camillo Bruni -
Damien Cassou -
Noury Bouraqadi -
Pavel Krivanek -
Torsten Bergmann