A Generic ownerdraw system for DCBROWSE

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

A Generic ownerdraw system for DCBROWSE

#1 Post by rdonnay »

This is a GENERIC owner drawing system for DC_XbpBrowse. Each browse cell can draw text, icons or bitmaps anywhere within the cell by declaring each within a multi-dimensional array

[1] = <ocData>
[2] = <nCol>
[3] = <nRow>
[4] = <nWidth>
[5] = <nHeight>
[6] = <font>
[7] = <selectedFont>
[8] = <fgColor>
[9] = <bgColor>
[10] = <nAlign>

OWNERGEN.PRG can be used with any browse configuration.

CALENDAR.PRG uses the XbpOwnerDrawBrowseGeneric class to paint a calendar that is loaded into an array from CALENDAR.DBF.

GENERIC.PRG uses the XbpOwnerDrawBrowseGeneric class to paint a database browse of customers.

This is the first draft. It will evolve. Your suggestions are welcome.
calendar.jpg
calendar.jpg (112.54 KiB) Viewed 16336 times
Attachments
ownergen.zip
(56.81 KiB) Downloaded 808 times
The eXpress train is coming - and it has more cars.

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

Re: A Generic ownerdraw system for DCBROWSE

#2 Post by c-tec »

Hello Roger,
great ! this fills a big gap in xBase++. I need such browsers many often
regards
Rudolf
Rudolf Reinthaler
digital pen & paper systems
http://www.formcommander.net

User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Re: A Generic ownerdraw system for DCBROWSE

#3 Post by Eugene Lutsenko »

Thank you, Roger!

This greatly expands the scope of the browser. This is very cool, I would say that is amazing. It can also be used to display the output of complex shapes.

skiman
Posts: 1185
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: A Generic ownerdraw system for DCBROWSE

#4 Post by skiman »

Hi Roger,

I'm getting a browse as this. Maybe I'm missing something.
ownerdraw.png
ownerdraw.png (7.61 KiB) Viewed 16294 times
Best regards,

Chris.
www.aboservice.be

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

Re: A Generic ownerdraw system for DCBROWSE

#5 Post by rdonnay »

Click on "Use Owner Drawing" check box.
The eXpress train is coming - and it has more cars.

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

Re: A Generic ownerdraw system for DCBROWSE

#6 Post by Tom »

Please don't use the two or three icon files in the sample in applications which are to be delivered. Those are some I bought for my company, and I just placed them in the ownerdrawing sample for the DevCon attendees.
Best regards,
Tom

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

skiman
Posts: 1185
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: A Generic ownerdraw system for DCBROWSE

#7 Post by skiman »

Ho Roger,

I have done that, but it doesn't make any difference. Also the calendar sample shows the array.
Best regards,

Chris.
www.aboservice.be

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

Re: A Generic ownerdraw system for DCBROWSE

#8 Post by Tom »

You need Xbase++ 1.9 SL1 for this, Chris.
Best regards,
Tom

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

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

Re: A Generic ownerdraw system for DCBROWSE

#9 Post by rdonnay »

Please don't use the two or three icon files in the sample in applications which are to be delivered.
Oops. I forgot about that. Sorry, I'll write a new sample.
The eXpress train is coming - and it has more cars.

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

Re: A Generic ownerdraw system for DCBROWSE

#10 Post by rdonnay »

You need Xbase++ 1.9 SL1 for this, Chris.
It also works with Xbase++ 2.0, but NOT 1.9 build 331.
The eXpress train is coming - and it has more cars.

Post Reply