No problem. The Glamour stuff looks interesting! Regards, Gary
----- Original Message ----- From: "Alexandre Bergel" <[email protected]> To: <[email protected]> Sent: Monday, August 10, 2009 2:46 PM Subject: Re: [Pharo-project] drawing tabs > Thanks Gary, this is an excellent help. This problem has been around > for a while already. > > Alexandre > > > On 7 Aug 2009, at 08:50, Gary Chambers wrote: > >> Hi Tudor. >> >> It seems the pane colour needs to be adopted after the presentations >> are >> added to the container (since the layout changes when adding). >> >> In GLMMorphicRenderer >> >> renderPane: aPane >> | container | >> container := self emptyMorph. >> aPane whenMatchingPresentationsChanged: [ :ann | >> container >> removeAllMorphs; >> addMorph: (self renderPresentationsOf: aPane) >> fullFrame: (LayoutFrame new >> leftFraction: 0; >> rightFraction: 1; >> topFraction: 0; >> bottomFraction: 1); >> adoptPaneColor: container paneColor. >> ]. >> container >> addMorph: (self renderPresentationsOf: aPane) >> fullFrame: (LayoutFrame new >> leftFraction: 0; >> rightFraction: 1; >> topFraction: 0; >> bottomFraction: 1); >> adoptPaneColor: container paneColor. >> ^ container >> >> Also, although Polymorph fixes up splitters for SystemWindows, those >> of >> BorderedMorph are left with the original code (which is why the tops >> of the >> tabs are hidden). You might want an initial offset of SystemWindow >> borderWidth for the moment. >> >> Regards, Gary >> >> >> ----- Original Message ----- >> From: "Tudor Girba" <[email protected]> >> To: <[email protected]> >> Sent: Friday, August 07, 2009 12:31 PM >> Subject: Re: [Pharo-project] drawing tabs >> >> >>> Hi Gary, >>> >>> It would be great to get some feedback on this. >>> >>> The code can be downloaded with: >>> ScriptLoader loadLatestPackage: 'GlamourLoader' from: >>> 'http://www.squeaksource.com/Glamour' >>> . >>> (Smalltalk at: #GlamourLoader) load >>> >>> To run the example, you can: >>> GLMMorphicExamples new stCodeBrowser. >>> >>> The code that actually renders can be found in GLMMorphicRenderer. >>> >>> Cheers, >>> Doru >>> >>> >>> On 7 Aug 2009, at 13:10, Gary Chambers wrote: >>> >>>> Depends how the things are laid out. Browser bits can be a bit odd >>>> I've >>>> found. >>>> >>>> If you have some code I'll take a look. >>>> >>>> Regards, Gary >>>> >>>> ----- Original Message ----- >>>> From: "Tudor Girba" <[email protected]> >>>> To: "Pharo Development" <[email protected]> >>>> Sent: Friday, August 07, 2009 11:48 AM >>>> Subject: [Pharo-project] drawing tabs >>>> >>>> >>>>> Hi, >>>>> >>>>> We (me and Jorge) are having some problems with drawing >>>>> TabGroupMorph >>>>> properly. >>>>> >>>>> The very first time the tabs are displayed, the background is not >>>>> drawn correctly (see the attached picture). However, after we >>>>> select >>>>> another window or a tab, the tabs background are drawn correctly. >>>>> >>>>> In the same time, when we execute UITheme exampleGroups, everything >>>>> works fine. We think we are doing the same thing, but obviously >>>>> we do >>>>> not. >>>>> >>>>> Could anyone indicate some possible tracks to look at? >>>>> >>>>> Cheers, >>>>> Doru >>>>> >>>>> -- >>>>> www.tudorgirba.com >>>>> >>>>> "Not knowing how to do something is not an argument for how it >>>>> cannot >>>>> be done." >>>>> >>>>> >>>>> >>>> >>>> >>>> -------------------------------------------------------------------------------- >>>> >>>> >>>>> _______________________________________________ >>>>> Pharo-project mailing list >>>>> [email protected] >>>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project >>>> >>>> >>>> _______________________________________________ >>>> Pharo-project mailing list >>>> [email protected] >>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project >>> >>> -- >>> www.tudorgirba.com >>> >>> "Problem solving should be concentrated on describing >>> the problem in a way that is relevant for the solution." >>> >>> >>> >>> >>> _______________________________________________ >>> Pharo-project mailing list >>> [email protected] >>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project >> >> >> _______________________________________________ >> Pharo-project mailing list >> [email protected] >> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project >> > > -- > _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: > Alexandre Bergel http://www.bergel.eu > ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. > > > > > > > _______________________________________________ > Pharo-project mailing list > [email protected] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project _______________________________________________ Pharo-project mailing list [email protected] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
