[M3devel] FW: [M3commit] CVS Update: cm3
Randy Coleburn
rcoleburn at scires.com
Thu Aug 14 05:30:23 CEST 2008
Jay:
I have a "working" version of the Win32 version of the ScrollerVBTClass.m3. I put "working" in quotes because some of the behavior is a bit awkward. Actually, I've been working on an improved version, but wasn't ready to release it yet.
This Win32 version came from an effort where my company paid Critical Mass to make some modifications to Trestle/FormsVBT to make it appear more like Microsoft Windows. Unfortunately, the CMass effort on the scroll bar didn't turn out as well as some of their other efforts.
I've made some improvements in it recently, and I think the version I emailed to you contained some of those improvements.
One of the big issues is that the platform-independent interface for the scroll bar defines things very differently from Windows. For example, you use the left button to scroll forward and the right button to scroll backward, and then there is the whole issue of scrolling in proportion to the distance from the thumb to the mouse click. CMass tried to hack the POSIX form of the module to come up with something that worked under Windows, but it doesn't quite get it right. One of the changes I made recently at least fixed the appearance of the scroll bar, especially when scaled pixmaps are in use. My change forces the trough to occupy the same width/height of the arrow buttons. I was working on other improvements when I got sidetracked with the resolution problem on the customer's Dell M4300 computer.
At this point, my most pressing issue is indeed how to make the ZMoveVBT/ZChassisVBT work properly for subwindow movement on the M4300 hi-res computer. At this point, I can give the customer two versions of the software: (1) everything "works", but the appearance is bad because pixmaps are doubled in size, or (2) everything looks great, but you can't move the subwindows around. Both of these versions are unacceptable to the customer, so I've got to come up with a fix. Once I've done that, I can resume my effort with the scroll bar.
Regards,
Randy
>>> Jay <jay.krell at cornell.edu> 08/13/08 7:31 AM >>>
Randy, sorry
1) I didn't realize the functions were in use.
2) I couldn't figure out what each number means. I did try varying them and seeing the affect.
I think maybe I need to learn the X Windows terms? I know in Mac/Windows the part you can drag is the "thumb".
I think I preserved your intent. Feel free to reinstate your intent.
I brought up formsedit and only could easily see a vertical scrollbar.
It doesn't look right to me, but I suspect it is.
If the layers of Trestle could be understand and plowed through, DrawFrameControl would be good.
I've misplaced my Nelson. I'll get another and see if I can understand this..
I'm also curious to see if Tk and Qt draw scrollbars themselves or not.
I'll probably check soon (or by end of month, will be gone next week, out of touch).
- Jay
----------------------------------------
[big mess made by the ever non-working email systems..]
> Date: Wed, 13 Aug 2008 13:10:59 +0000
> To: m3commit at elegosoft.com
> From: jkrell at elego.de
> Subject: [M3commit] CVS Update: cm3
>
> CVSROOT: /usr/cvs
> Changes by: jkrell at birch. 08/08/13 13:10:59
>
> Modified files:
> cm3/m3-ui/vbtkit/src/lego/WIN32/: ScrollerVBTClass.m3
>
> Log message:
> fix it to compile, at least
> and eliminate common subexpressions
> will see if we can get Windows to draw much more of this
> using DrawFrameControl
>
More information about the M3devel
mailing list