jiwameister wrote:We would like to have these forms look and feel (and work) like standard Jiwa forms. Do you have a template form or a sample project that you might use as a template for creating standard Jiwa Forms?
In particular, we are interested in creating the same look and feel for grids, tabs etc.
At this moment we don't have a sample, but some of the sample plugins in the demo data do create their own forms styled in the same manner.
If your form inherits from our base form types, then you will get the ribbon and styling. The 4 main type of forms are:
- JiwaFinancials.Jiwa.JiwaApplication.Maintenance.UserInterface
- JiwaFinancials.Jiwa.JiwaApplication.ListMaintenance.UserInterface
- JiwaFinancials.Jiwa.JiwaApplication.ProcessAction.UserInterface
- JiwaFinancials.Jiwa.JiwaApplication.MultiListMaintenance.UserInterface
As well as the styling, you'll get automatic persistence of the form dock state, size and location.
As for the grids and tabs - use a JiwaFinancials.Jiwa.JiwaApplication.Controls.JiwaGrid control for the grid and it will be styled appopriately. For tabs, use a JiwaFinancials.Jiwa.JiwaApplication.Controls.JiwaTabControl.
When initialising / setting up a JiwaGrid control, be sure to call SetupComplete after adding the required columns. For example:
- Code: Select all
With grdContactNames
.AddColumn("Key", New JiwaFinancials.Jiwa.JiwaApplication.JiwaManageGrid.JiwaTextCellType, "Key", 0, True, False, True, True)
.AddColumn("ItemNo", New CellType.NumberCellType, "Item No.", 5, , , , True)
.AddColumn("Title", New JiwaFinancials.Jiwa.JiwaApplication.JiwaManageGrid.JiwaTextCellType, "Title", 10, , , True, , 30)
.AddColumn("FirstName", New JiwaFinancials.Jiwa.JiwaApplication.JiwaManageGrid.JiwaTextCellType, "First Name", 10, , , True, , 50)
.AddColumn("Surname", New JiwaFinancials.Jiwa.JiwaApplication.JiwaManageGrid.JiwaTextCellType, "Surname", 10, , , True, , 50)
.AddColumn("Phone", New JiwaFinancials.Jiwa.JiwaApplication.JiwaManageGrid.JiwaTextCellType, "Phone", 10, , , True, , 20)
.AddColumn("Debtor", New JiwaFinancials.Jiwa.JiwaApplication.JiwaManageGrid.JiwaTextCellType, "Debtor", 10, , , True, True, 50)
.AddColumn("DebtorLookupButton", New JiwaFinancials.Jiwa.JiwaApplication.JiwaManageGrid.JiwaLookupButtonCellType, "")
.AddColumn("Bin", New JiwaBinButtonCellType, "")
.SetupComplete()
End With
If the form the grid is on inherits from one of the 4 types I mentioned earlier, then your grid will get automatic persistence of the custom column information.
I'll put up some samples over the next few days to show in more detail what I've outlined above.
Mike