Page 3 of 5

Re: A Generic ownerdraw system for DCBROWSE

Posted: Thu Jun 04, 2015 8:09 pm
by rdonnay
Got some error while scroll with the mouse


I still cannot reproduce the error, however I added some error trapping to OWNERGEN.PRG.

Give this a try.

Re: A Generic ownerdraw system for DCBROWSE

Posted: Thu Jul 02, 2015 1:46 pm
by Janko
In 'Calendar sample' deleting appointments from calendar is not deleting them from DBF.

Thanks and BR
JAnko

Re: A Generic ownerdraw system for DCBROWSE

Posted: Thu Jul 02, 2015 3:09 pm
by rdonnay
In 'Calendar sample' deleting appointments from calendar is not deleting them from DBF.
This wasn't intended to be a finished application, only an example of how to write a calendar in a browse with ownerdrawing.

Re: A Generic ownerdraw system for DCBROWSE

Posted: Mon Jul 13, 2015 10:33 pm
by Janko
Roger,

I encountered 'mouse wheel' problem as well. Browser is becoming translucent and system is reporting that program is not responding any more - offering two oprions: wait or kill. After killing the application, there is no error.log file. Without OWNERDRAW this problem was not present in multiline browsing.

Any ideas how to owercome it?

Best regards
JAnko

Re: A Generic ownerdraw system for DCBROWSE

Posted: Tue Jul 14, 2015 5:39 am
by rdonnay
If I could reproduce the problem, then maybe I could find a solution.
I tried compiling in 1.9 and 2.0 and cannot make it lock up with the wheel.

I recommend that you send me your compiled program (.EXE) and source (.PRG) to make sure that we are running the same code.

Re: A Generic ownerdraw system for DCBROWSE

Posted: Tue Jul 14, 2015 8:28 am
by Tom
This problem may either be connected to the "empty lines"-problem (retrieve cell color only after lookup for nil cells) or to the datatype "array", which must be the same for all cells in all situations.

Re: A Generic ownerdraw system for DCBROWSE

Posted: Wed Jul 15, 2015 10:44 am
by Janko
ROger, Tom,

thank you for attention: I'm using Xbase 1.9 build 355 and Express build 260. Do you think not using 261 might be a problem?
Anyhow, testing multiline browser (with OWNERDRAW) in multiuser network (novel 6.5) did not show same results on different stations, but finally EXE was locked (not responding) on evry station.

My EXE is using a lot of DBFs and indexes. So, preparing a working sample woud take a lot of my time.

Let me check possible version collisions of DLLs. I'll come back again if I'll not be able to discover anything.

Best regards
JAnko

Re: A Generic ownerdraw system for DCBROWSE

Posted: Thu Jul 16, 2015 5:18 am
by c-tec
Hello,
I use 355 and have the same problem. Sometimes it takes only some movements with the mousewheel to top and bottom, somtimes the problem does not occur. The program freezes completle3ly and I have to kill the task. But only when ownerdrawn is on. It is also strange that sometimes the cursor changes to busy status.
My version is at http://www.c-tec.at/download/roger.zip available.
regards
Rudolf

Re: A Generic ownerdraw system for DCBROWSE

Posted: Thu Jul 16, 2015 8:05 am
by rdonnay
I think I can experiment with the wheel callback.
It could be that the event queue is getting overloaded due to the time it takes to do the ownerdrawing or the filling of the array.

Can you confirm that the problem occurs mostly when the wheel is moved very fast?

Re: A Generic ownerdraw system for DCBROWSE

Posted: Thu Jul 16, 2015 8:31 am
by Janko
Roger,

I can confirm that fast mouse wheel movements are generating program freezing. But when I've used same EXE on local machine (not on network) and it has been working with no errors. I also noticed that 'up' or 'down' key pressed for few seconds, do the same. But only in network environment.

I'd be more than grateful if you could find the way out.

PS: I rechecked possible version collision and found no errors.


Best regards
JAnko