Uitgangspunten
Download
Report
Transcript Uitgangspunten
Welcome
Emil Stojanov
Quantaris B.V.
November 2006
Quantaris B.V.
Topics
Part I
Part II
November 2006
Scheduler / cGrid
User-Interface
Quantaris B.V.
Scheduler - needs
We needed a new scheduler.
The basis should be a fully customizable
and very flexible grid
Data-Awareness was not very important
It is all about graphics
We were not alone…
November 2006
Quantaris B.V.
Scheduler - solution
Data Access Europe offered to built a
solution
We delivered a list of needs and wishes
Result was a basic Grid class that could be
controlled in every way.
It can be yours! Contact Data Access
November 2006
Quantaris B.V.
cGrid
API mode
Before drawing a cell the grid will ask to
provide the properties of a cell
Direct mode
You fill an array of structures describing every
cell
The grid will generate an in-memory bitmap
So, you are looking at a picture…
November 2006
Quantaris B.V.
Example API mode
Object oGrid is a cGrid
Object oCol1 is a cGridColumn
Set psHeaderLabel
Set piWidth
Set peWrapStyle
Set pbResize
End_Object
Function APIRowCount …
Function APISubColumnText …
Function APISubColumnData …
Function APICanResizeSubColumn
…
End_Object
November 2006
Quantaris B.V.
Example Direct mode
Object oGrid is a cGrid
Object oCol1 is a cGridColumn
Set psHeaderLabel
Set piWidth
Set peWrapStyle
Set pbResize
End_Object
Procedure OnFillGrid
GridInfo tGrid
Get ptGridInfo to tGrid
//Fill the array of structs (tGrid)
Set ptGridInfo to tGrid
End_Procedure
End_Object
November 2006
Quantaris B.V.
Cell Properties
Struct SubColInfo
Integer data
Integer extra
Short flags
Integer selectedBackColor
Integer selectedTextColor
Integer backColor
Integer textColor
Integer backColorStart
Integer backColorEnd
Integer image
String text
Handle font
Integer verticalLineColor
Integer verticalLineThickness
Integer verticalLineColorStart
Integer verticalLineColorEnd
Integer horizontalLineColor
Integer horizontalLineThickness
Integer horizontalLineColorStart
Integer horizontalLineColorEnd
Boolean readonly
Boolean canDrag
Boolean canResize
Boolean isValidDropTarget
String tooltipText
Integer tooltipIcon
String tooltipTitle
End_Struct
November 2006
Quantaris B.V.
Scheduler / cGrid
Let’s see how it looks…
November 2006
Quantaris B.V.
User Interface
Software has to look good
It is a selling point…
You can loose a customer because a
competitor has a better looking application
even when it has less functionality.
An example…
November 2006
Quantaris B.V.
Selling your software
You have one hour to convince the prospect
that he (or she) just can’t live any longer
without your software.
You could talk for
one hour about the
specs and how great
your software is, or…
November 2006
Quantaris B.V.
Selling your software
Do the specs really matter?
November 2006
Quantaris B.V.
Selling your software
No, she is not one of my colleagues, so our
software must look good.
Our users spend most of their time working
with MS Word (XP or 2003)
That should be our reference
November 2006
Quantaris B.V.
CodeJock
Following the example of Data Access we
decided to use CodeJock for the follwing:
Menu
Toolbar’s
Statusbar’s
Taskpanel
The result? Let me show you.
November 2006
Quantaris B.V.
Questions?
It’s time to wake up and ‘pimp’ your app!
November 2006
Quantaris B.V.