Hi guys
the code of MenuMorph is crippled of isInDockingBar and the logic is much more complex. I have the impression that it is decades since we got a menu in a docking bar. I do not even remember what it mean. I would like to clean this part because we should really be a bit more radical else we will die under the mass of complex, old.... code. Stef looks like a dockingbar is this DockingBarMorph new addMorph: (SimpleButtonMorph new label: 'Say hello'; target: [UIManager inform: 'Hello']; actionSelector: #value); addMorph: (SimpleButtonMorph new label: 'Say bonjour'; target: [UIManager inform: 'Bonjour']; actionSelector: #value); addMorph: (SimpleButtonMorph new label: 'Close'; target: [DockingBarMorph allInstances last delete]; actionSelector: #value); adhereToBottom; openInWorld. |
No idea what this could be.
go go go! Alexandre On Jul 24, 2014, at 4:39 PM, stepharo <[hidden email]> wrote: > Hi guys > > the code of MenuMorph is crippled of isInDockingBar and the logic is much more complex. > I have the impression that it is decades since we got a menu in a docking bar. I do not even remember > what it mean. I would like to clean this part because we should really be a bit more radical else we will die under > the mass of complex, old.... code. > > Stef > > looks like a dockingbar is this > > DockingBarMorph new > addMorph: (SimpleButtonMorph new > label: 'Say hello'; > target: [UIManager inform: 'Hello']; > actionSelector: #value); > addMorph: (SimpleButtonMorph new > label: 'Say bonjour'; > target: [UIManager inform: 'Bonjour']; > actionSelector: #value); > addMorph: (SimpleButtonMorph new > label: 'Close'; > target: [DockingBarMorph allInstances last delete]; > actionSelector: #value); > adhereToBottom; > openInWorld. > -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. |
Isn't DockingBar a Squeak thing? The little tabs things that would live around the edges of the screen and you could grab morphs onto a canvas.
On Fri, Jul 25, 2014 at 2:06 AM, Alexandre Bergel <[hidden email]> wrote: No idea what this could be. |
I don't know if Squeak has exclusivity or patents on DockingBar ;), but it is used in Squeak 4.x for sure. My productivity had a great boost since we attached one top of the World.2014-07-25 7:48 GMT+02:00 Peter Uhnák <[hidden email]>:
|
If one day we need to menubar we will design a specific menuMorph
that avoids to be crippled of is....whatever.
In old code the power of dispatch was largely underestimated. Stef On 25/7/14 12:12, Nicolas Cellier
wrote:
|
2014-07-25 14:59 GMT+02:00 stepharo <[hidden email]>:
Yeah, I did not look at implementation, otherwise my boost of productivity might have vanished... The feature by itself is not un-interesting.
|
In reply to this post by Peter Uhnak
Those are Flaps, not DockingBars. On Fri, Jul 25, 2014 at 12:48 AM, Peter Uhnák <[hidden email]> wrote:
|
Free forum by Nabble | Edit this page |