Re: Pete: Look into draw rectangle placement yet?
- Posted by Al Getz <Xaxo at aol.com> Apr 11, 2005
- 454 views
Pete Lomax wrote: > > On Sun, 10 Apr 2005 09:30:57 -0700, Al Getz <guest at RapidEuphoria.com> > wrote: > > >Demo? What demo? > I wrote a 30-line demo for arwen and one for win32lib. > You said you needed a few days to add a class for Combo to WinClass(?) > If it is anything like the other classes, it is at least 140 lines of > code, and I imagine the same for a ListBox, so to get that demo > working in WinClass, to see what you mean, I have the impression I am > expected to write around 400 of lines of code? > > Pete > > Hi Pete, No you dont have to write a bunch of code for WinClass. I stuck a 'quick' version of ComboBox.ew into my WinClass directory 'just' to try this out with a different lib. Since it behaved differently (more as expected) all you should have to do is hunt down the function calls in the lib(s) you are already using to see what might be changing the returned values or whatever. BTW the demo i used was simply adding these lines to my other demo: include ComboBox.ew as CB constant CB1=CB:Create(...params...) then i added your code to a button event so that when you clicked the button it drew the focus rect. That part of the code was almost exactly like yours except the way the functions are called... DrawFocusRect(...) instead of c_func(xDrawFocusRect,{...}), etc., etc. These functions do not modify the return values in any way either. I hope to have the newer version of the library done soon along with some more demos. Until then if you would like a screen shot i can take a snapshot and send it to you so you can examine how it gets drawn using this other lib, but it's rather simple to visualize by looking at the pic you sent me (the CB on the right side). I didnt test Listbox because i thought you said that was working ok? Take care, Al And, good luck with your Euphoria programming! My bumper sticker: "I brake for LED's"