A Generic ownerdraw system for DCBROWSE

This forum is for eXpress++ general support.
Message
Author
User avatar
rdonnay
Site Admin
Posts: 4734
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: A Generic ownerdraw system for DCBROWSE

#21 Post 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.
Attachments
ownergen.zip
(56.87 KiB) Downloaded 802 times
The eXpress train is coming - and it has more cars.

Janko
Posts: 111
Joined: Sat Mar 20, 2010 8:36 am
Location: Cerklje

Re: A Generic ownerdraw system for DCBROWSE

#22 Post by Janko »

In 'Calendar sample' deleting appointments from calendar is not deleting them from DBF.

Thanks and BR
JAnko

User avatar
rdonnay
Site Admin
Posts: 4734
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: A Generic ownerdraw system for DCBROWSE

#23 Post 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.
The eXpress train is coming - and it has more cars.

Janko
Posts: 111
Joined: Sat Mar 20, 2010 8:36 am
Location: Cerklje

Re: A Generic ownerdraw system for DCBROWSE

#24 Post 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

User avatar
rdonnay
Site Admin
Posts: 4734
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: A Generic ownerdraw system for DCBROWSE

#25 Post 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.
The eXpress train is coming - and it has more cars.

User avatar
Tom
Posts: 1177
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: A Generic ownerdraw system for DCBROWSE

#26 Post 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.
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

Janko
Posts: 111
Joined: Sat Mar 20, 2010 8:36 am
Location: Cerklje

Re: A Generic ownerdraw system for DCBROWSE

#27 Post 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

c-tec
Posts: 379
Joined: Tue Apr 20, 2010 1:36 am
Location: SALZBURG/AUSTRIA
Contact:

Re: A Generic ownerdraw system for DCBROWSE

#28 Post 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
Rudolf Reinthaler
digital pen & paper systems
http://www.formcommander.net

User avatar
rdonnay
Site Admin
Posts: 4734
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: A Generic ownerdraw system for DCBROWSE

#29 Post 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?
The eXpress train is coming - and it has more cars.

Janko
Posts: 111
Joined: Sat Mar 20, 2010 8:36 am
Location: Cerklje

Re: A Generic ownerdraw system for DCBROWSE

#30 Post 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

Post Reply