JiwaBadge  Topic is solved

Discussions relating to plugin development, and the Jiwa API.

JiwaBadge

Postby perry » Wed Jul 09, 2014 3:56 pm

Can you provide a sample plugin to use JiwaBadge in Quoting please?

Color, font, width and position, for example, it will be in front of SalesOrderBadge but after ClosedJiwaBadge
Perry Ma
S. Programmer
Lonicera Pty Ltd
http://www.lonicera.com.au
perry
Frequent Contributor
Frequent Contributor
 
Posts: 173
Joined: Mon Oct 27, 2008 2:26 pm
Topics Solved: 15

Re: JiwaBadge  Topic is solved

Postby Mike.Sheen » Thu Jul 10, 2014 2:56 pm

perry wrote:Can you provide a sample plugin to use JiwaBadge in Quoting please?

Color, font, width and position, for example, it will be in front of SalesOrderBadge but after ClosedJiwaBadge


Hi Perry,

The attached plugin adds a badge to the sales quotes form - the code which does the actual work is also pasted below. The colour is determined by the Appearance.BackColor and Appearance.ForeColor properties. The location, size and text (caption) are the same as a normal windows control.

Code: Select all
Public Sub Setup(ByVal JiwaForm As JiwaApplication.IJiwaForm, ByVal Plugin As JiwaApplication.Plugin.Plugin) Implements JiwaApplication.IJiwaFormPlugin.Setup
                Dim quoteForm As JiwaSalesUI.SalesQuote.SalesQuoteEntryForm = DirectCast(JiwaForm, JiwaSalesUI.SalesQuote.SalesQuoteEntryForm)         
      Dim SampleJiwaBadge As New JiwaFinancials.Jiwa.JiwaApplication.Controls.JiwaBadge
      quoteForm.Panel1.Controls.Add(SampleJiwaBadge)

      Dim BadgeAppearance As Infragistics.Win.Appearance = New Infragistics.Win.Appearance()

      BadgeAppearance.BackColor = System.Drawing.Color.Red
      BadgeAppearance.ForeColor = System.Drawing.Color.White
      BadgeAppearance.TextHAlignAsString = "Center"
      BadgeAppearance.TextVAlignAsString = "Middle"

      SampleJiwaBadge.Appearance = BadgeAppearance
      SampleJiwaBadge.ArcWidth = 20
      SampleJiwaBadge.Dock = System.Windows.Forms.DockStyle.Left
      SampleJiwaBadge.Font = New System.Drawing.Font("Arial", 9.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
      SampleJiwaBadge.Location = New System.Drawing.Point(quoteForm.ClosedJiwaBadge.left + quoteForm.ClosedJiwaBadge.Width + 10, 0)
      SampleJiwaBadge.Name = "SampleJiwaBadge"
      SampleJiwaBadge.Size = New System.Drawing.Size(62, 20)
      SampleJiwaBadge.TabIndex = 26
      SampleJiwaBadge.Text = "Sample"
      SampleJiwaBadge.Visible = True
End Sub


Sample Jiwa Badge.rar
Sample Plugin to add a badge to sales quotes
(4.43 KiB) Downloaded 163 times


Mike
Attachments
Capture.PNG
image
Capture.PNG (26.13 KiB) Viewed 2082 times
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2440
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 755

Re: JiwaBadge

Postby perry » Fri Jul 11, 2014 4:02 pm

Thanks
Perry Ma
S. Programmer
Lonicera Pty Ltd
http://www.lonicera.com.au
perry
Frequent Contributor
Frequent Contributor
 
Posts: 173
Joined: Mon Oct 27, 2008 2:26 pm
Topics Solved: 15


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 2 guests

cron