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.
A Generic ownerdraw system for DCBROWSE
A Generic ownerdraw system for DCBROWSE
- Attachments
-
- ownergen.zip
- (56.81 KiB) Downloaded 944 times
The eXpress train is coming - and it has more cars.
Re: A Generic ownerdraw system for DCBROWSE
Hello Roger,
great ! this fills a big gap in xBase++. I need such browsers many often
regards
Rudolf
great ! this fills a big gap in xBase++. I need such browsers many often
regards
Rudolf
- 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
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.
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.
Re: A Generic ownerdraw system for DCBROWSE
Hi Roger,
I'm getting a browse as this. Maybe I'm missing something.
I'm getting a browse as this. Maybe I'm missing something.
Re: A Generic ownerdraw system for DCBROWSE
Click on "Use Owner Drawing" check box.
The eXpress train is coming - and it has more cars.
Re: A Generic ownerdraw system for DCBROWSE
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."
Tom
"Did I offend you?"
"No."
"Okay, give me a second chance."
Re: A Generic ownerdraw system for DCBROWSE
Ho Roger,
I have done that, but it doesn't make any difference. Also the calendar sample shows the array.
I have done that, but it doesn't make any difference. Also the calendar sample shows the array.
Re: A Generic ownerdraw system for DCBROWSE
You need Xbase++ 1.9 SL1 for this, Chris.
Best regards,
Tom
"Did I offend you?"
"No."
"Okay, give me a second chance."
Tom
"Did I offend you?"
"No."
"Okay, give me a second chance."
Re: A Generic ownerdraw system for DCBROWSE
Oops. I forgot about that. Sorry, I'll write a new sample.Please don't use the two or three icon files in the sample in applications which are to be delivered.
The eXpress train is coming - and it has more cars.
Re: A Generic ownerdraw system for DCBROWSE
It also works with Xbase++ 2.0, but NOT 1.9 build 331.You need Xbase++ 1.9 SL1 for this, Chris.
The eXpress train is coming - and it has more cars.