Ok, it works now but is using a hack. The problem was the canvas inside the pixmapscrollbar was never getting resized, so the area was enlarging to fit the entire canvas (it drew correctly first, but then resized immediately). What needs to be done is to resize the canvas when the scrollbar changes, the problem is that this would need to be done as a binding on the <Configure> trigger. However resizing the canvas produces another 1 of these triggers causing an infinite loop. I tried inside the function that is called, turn off the <Configure> binding, resize canvas, turn on <Configure> binding, but it still had an infinite loop. There must be a way to do this, it could be that I just didn't think of something simple.
Anyway, it is working now with a hack that I resize the canvas on creation and that scrollbar should never become any larger so is ok. I haven't tested this, but there is probably a bug in the pixmapscroll if you try to enlarge the frame containing it larger than the default canvas size - as it is never enlargened (so needs the fix above). Lio. ----- Original Message ----- From: "Arieh Schneier" <[EMAIL PROTECTED]> To: <amsn-devel@lists.sourceforge.net> Sent: Sunday, December 18, 2005 7:42 PM Subject: Re: [Amsn-devel] notes fix I had about 2 min, so just went through and manually copied your changes in. I didn't have a chance to look at the scrollbar yet. I also noticed that it doesn't expand width ways correctly unless you press the down arrow to open the left hand list (and then close it again). gtg, Lio. ----- Original Message ----- From: "Youness Alaoui" <[EMAIL PROTECTED]> To: <amsn-devel@lists.sourceforge.net> Sent: Sunday, December 18, 2005 5:23 PM Subject: Re: [Amsn-devel] notes fix Hello, yesterday, I did like you, spent some time on this problem and I also found out that the scrollbar took a lot of space but I didn't think about unpacking it to see what it gives... yes, removing it fixes the problem... I noticed that the "Note" text (right.note.desc) has an expand true, fill both, it should be expand false, fill x.. I also had some trouble with this, and I am finally able to make it work perfectly... the problem we had was that the scrollbar would take a certain space (requests a certain space) and the listbox expands to fill the gap the scrollbar makes while in fact the scrollbar should take the same space as the widget it is associated to... I was able to fix this problem with the current code I have (without updating from Arieh's fixes... we'll have to merge what we both did) ... but it works on only ONE condition : rename scrollbar pixmapscrollbar; rename ::tk::scrollbar scrollbar try it before and after executing this... you'll see the difference... when the pixmapscrollbar gets a request to know what size it needs, it returns an enormous amount of space.. we need to fix that because it makes the widget incompatible with the normal scrollbar.. Arieh, you have enough knowledge of pixmapscrollbar to find a fix for it ? Tom, you have time to look into this ? I'm sending my notes.tcl file so someone could merge my diffs (without conflicts).. I will try and do it myself when I have time but I really doubt I will have any... in my diff, you'll see I also made all 'bold' font into 'sbolf' which is ALOT better (see previous mail with screenshot, sboldf is better than bigfont too) and I made the notes window expand on x/y not only on y like before and made the border on the right frame of 30 (to avoid the widgets being too close to the edge now that it fills the whole window)... KaKaRoTo On Sat, 17 Dec 2005 22:04:14 -0500, Arieh Schneier <[EMAIL PROTECTED]> wrote: > I did some reorganising to get it all to work. However I ran out of time > just before finishing. It is all good now except for the fact that I > lost the top scollbar (it is commented out "#pack $w.right.notes.ys > -side right -fill y") because it causes the size to increase - if > someone could take a look at how to put it back without increasing the > size of the box. We may just need to add a -height to 1 of the frames. > > Sorry I just ran out of time. > > Lio. > > ----- Original Message ----- > From: Arieh Schneier > To: amsn-devel@lists.sourceforge.net > Sent: Sunday, December 18, 2005 12:28 PM > Subject: Re: [Amsn-devel] notes fix > > > I have the same problem, the Note box is too greedy so the 'current > notes' box is hidden. > > Lio. > ----- Original Message ----- > From: Jérôme Gagnon-Voyer > To: amsn-devel@lists.sourceforge.net > Sent: Sunday, December 18, 2005 10:00 AM > Subject: Re: [Amsn-devel] notes fix > > > That's why I want everybody to confirm or infirm ;-) > > Le 05-12-17 à 17:53, Vivia Nikolaidou a écrit : > > > > > > My idea about the fix: either the listbox or the note text have a > fixed > > size and don't expand. I just can't get to do that... But nobody > else has > > confirmed this until now. So, if it's just me, we can safely assume > > there's no problem! :) > > -- KaKaRoTo ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=ick _______________________________________________ Amsn-devel mailing list Amsn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amsn-devel ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=click _______________________________________________ Amsn-devel mailing list Amsn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amsn-devel