|
Hi, and congratulations for your great library !
I just started using it two days ago, and it seems fantastic !
Just a little problem: when adding custom object as combobox items, they are correctly displayed, but when I choose one of them the combo text is not refreshed.
I started walking along your code, and i think i noticed a little bug.
I attach my correction, I don't know if it's the better solution since i really do not know your code in depth and how it is structured, but it seems to work ...
This is what i did:
// Inside ComboListBox class
<br />
protected override void WndProc(ref Message m)<br />
{ <br />
if(m.Msg == (int)Msgs.WM_LBUTTONUP)<br />
{<br />
ComboPopUp frm = (ComboPopUp)this.FindForm();<br />
<br />
object pitem = null;<br />
if (frm.SelectedItem is DataRowView) <br />
{pitem = ((DataRowView)frm.SelectedItem).Row[this.DisplayMember.Substring(this.DisplayMember.IndexOf(".")+1)];}<br />
else if (frm.SelectedItem is string) <br />
{pitem = (string)frm.SelectedItem;}<br />
<br />
else {<br />
pitem = frm.SelectedItem.ToString ();<br />
}<br />
<br />
int index = ((ComboBox)frm.Parent).InternalListBox.FindStringExact((string)pitem);<br />
<br />
<br />
if (index > -1) ((ComboBox)frm.Parent).SelectedIndex = index;<br />
<br />
<br />
<br />
frm.Close();<br />
return;<br />
}<br />
Please let me know if i was right, or if you have a better way to solve the issue.
Howewer, thanks again for your grate job !
Claudio
|
|
|
|
|
Hi Cláudio,
In first place, excuse me for the delay in answering and thank you for the sent correction. It worked very well and it is exactly as it should be. Thank you once again. If you does more some good thing, be comfortable to enter in contact.
Hugs,
Marcelo Palladino
Brazil
|
|
|
|
|
That was a pleasure !
I thank you again for your excellent job, I'm considering about using it inside my project in order to give it a much better look.
If I should find any other issue worth mentioning about your library, I'll surely post you my suggestions !
Best Regards
Claudio
Today is only yesterday's tomorrow ....
|
|
|
|
|
I just started using the Palla library to replace LumiSoft's flat look. (Sorry Lumisoft!) Anyways, I'm ready to roll out a program internally here at work and was wondering if version 1.7 is the most up-to-date version you have available. I'd hate to roll out the app and then there was a bug-fix.
Keep up the good work!
|
|
|
|
|
Hello Richard,
In first place, excuse me for the delay in answering. I had a "small problem" for here and all my routine was altered. In few words: I was assaulted, I took two shots (one in the arm and other in the leg) and they took my laptop (that I didn't have recent backup of almost anything, only to vary: - ( ) Now it is everything returning to the normal, everything well...
With relationship your subject: I am preparing an updating without a lot of innovations, but with focus in the robustness of the code. More safety in the code! (to begin for that terrible key treatment in the cryptography code) More ten days and I post the alterations here.
Hugs,
Marcelo Palladino
Brazil
|
|
|
|
|
I'm glad to hear you are okay. The work can always be replaced at a later time.
Take care.
Richard Bourque
Waterloo, Ontario, Canada
|
|
|
|
|
This is an excellent controls that I have ever seen before! Thanks for that.
Here, I have some questions on the combobox,
1. I set combobox's list item to 10, and bind it with a dataset. After that, I found the combobox could not show my last item, I need to use down arrow key to show it out. Even if it is only 2 records to show. It will only show one in the combobox.
2. Unable to pick the first record. I have problem to select the first item from the combobox. I need to select the other item first then select back the first item.
|
|
|
|
|
Hi WilsonTeo,
In first place, excuse me for the delay in answering and thank you for the comment. Can I ask for him/her a favor? Does have like you to send the code that you wrote to do the test with your comments? I can simulate like this what is happening thereabout...
Hugs,
Marcelo Palladino
Brazil
|
|
|
|
|
Hi
Your controls have really been fixed up since the first version. By this, I mean almost all the options available in the standard controls, can be found in yours. Well done.
Anyway, one problem with the spinedit, which I am not sure if you can fix. But the up and down buttons are very sensitive. You have to tap it really carefully to avoid skipping numbers.
Hope this helps you when creating a new version.
|
|
|
|
|
Hi,
How long...! How do you do? Good idea. I can really turn the less sensitive buttons. I will try! I am preparing a version that treats the subjects of secure code better and this change goes together. Thank you again!
Hugs,
Marcelo Palladino
Brazil
|
|
|
|
|
oi
Faço faculdade de sistemas de informação e estamos desenvolvendo um trabalho para uma determinada disciplina, necessitamos utilizar a PallaControls pela grande abrangência na configuração de estilos. Baixamos o código fonte porém não conseguimos encontrar/adicionar a biblioteca PallaControls... gostaríamos se possível a sua ajuda para utilizar essa biblioteca...
desde já agradeço
Leandro M. Almeida
|
|
|
|
|
Olá Leandro,
Como vai, tudo bem? Olha só, para utilizar a biblioteca você deve antes compilar a solução contida no zip. Depois disto, você terá o binário e aí é só customizar a toolbox adicionando este binário. (.net framework components, browse...)
Espero ter ajudado e me coloco à disposição para qualquer esclarecimento.
Um grande abraço,
Marcelo Palladino
Marcelo Palladino
Brazil
|
|
|
|
|
Perfect library!!! -a comment of a programmer who is much more closer to user side in knowladge metric.
Just a simple novice question. When I execute Pallacontrols solution file and then press start the project looks for a file named "c:\exemplos de palla\dotnet\testeslistboxvb\bin\testeslistboxvb.exe" and then stops.
Also i would be glad to know the licensing constraints. Thanks a lot.
|
|
|
|
|
Hi,
How do you do? Thank you for your comment! With relationship to the problem that you told, it is enough to open the properties of the project, in the debugging option and to remove the reference to this project. (I will remove this in the next updating that I am preparing)
Greetings,
Marcelo Palladino
Brazil
|
|
|
|
|
thank you marcello. What about licensing? I am considering to use pallacontrols on a simulation software in my lectures and most probably will be sold to other universities.
best regards.
|
|
|
|
|
Hi,
It can use without restrictions, but I can make three requests?
1-if possible, maintain the credits contained in the file "Credits.txt"
2-if possible, maintain my credit
3-if you do some cool change, don't forget to send it for me
Hugs,
Marcelo Palladino
Brazil
|
|
|
|
|
It is true that many people look for controls libraries in the community, and with several libraries, people try to do their own library (the best of course).
But it is rare that people give later their library.
Many thanks to do that. It's a great work well structured with folders, subfolders ..
a question : have you (or anybody) this library in vb.net ? is is planed ?
a remark : i think you may change in PallaControls.windows.forms.csproj.user :
StartAction = "Program"
StartArguments = ""
StartPage = ""
StartProgram = "C:\Exemplos do Palla\dotnet\TestesListBoxVB\bin\TestesListBoxVB.exe"
by
StartAction = "Project"
StartArguments = ""
StartPage = ""
StartProgram = ""
and choose the start project, because there is a problem in debug mode.
Cheers,
Dominique
|
|
|
|
|
Hi Dominique,
Most that I learned has origin in the professionals' of the whole world work that like the same thing that us: To learn! To publish sources for me has these two meanings. To learn and to thank! (beautiful mantra, is not? )
Unhappily VB.NET is not my fort. If somebody wants to migrate I can help, but to do alone it is not something that I drift...
You are right, was making a test requested by our friend JeffGreen and I forgot to remove the options for removal. In the next version I will make this. Thank you!
Hugs,
Marcelo Palladino
Brazil
|
|
|
|
|
First of all, congratulations for your excellent job.
I've found a problem in PallaControls.Windows.Forms.ControlBase.OnGotFocus override (ControlBase.cs, line 107), your method calls base.OnLostFocus but it should call base.OnGotFocus, and in textbox implementation, should be desirable that the capture of GotFocus and LostFocus events of internal textbox (m_pTextBox) , rises at his time the base.OnGotFocus and base.OnLostFocus to acomplish the functionality of the events to the outside of the library.
ex:
private void m_pTextBox_OnGotFocus(object sender, System.EventArgs e)<br />
{<br />
this.BackColor = this.m_EditFocusedColor; <br />
this.OnGotFocus(e);<br />
}<br />
<br />
private void m_pTextBox_OnLostFocus(object sender, System.EventArgs e)<br />
{<br />
this.BackColor = this.Style!=null?this.Style.InteliEditColor(this.ReadOnly,this.Enabled):<br />
StyleGuide.InteliEditColor(this.ReadOnly,this.Enabled,this.m_EditColor, this.m_EditReadOnlyColor, this.m_EditDisabledColor);<br />
DrawControl(this.ContainsFocus);<br />
this.OnLostFocus(e); }
Thanks again for this great library .
Hzi.
|
|
|
|
|
Hi Hzi,
First, thank you for commenting and find/resolve a bug with GotFocus and LostFocus. Today I updated the file of the sources with your corrections.
Greetings,
Marcelo Palladino
Brazil
|
|
|
|
|
Hi Marcelo,
When adding an Object to the listbox (Text and a Value), I can't get the text to display. I think this is a bug as the MS control worked fine with my code.
Keep up the good work.
Regards,
Jeff
|
|
|
|
|
Hi Jeff,
How do you do? Well, I believe that you are right! You can post your code (just a relevant snippet) for me to do a test similar to yours? Thank you again!
Hugs,
Marcelo Palladino
Brazil
|
|
|
|
|
Hi Marcelo,
Here is all the code from a Test VB form - if you replace all the code in a VB form with this then you can easily test.
The code has your Listbox and also the MS Listbox, your listbox does not show the text, whereas the MS does.
Regards,
Jeff
Public Class tester
Inherits System.Windows.Forms.Form
#Region " Windows Form Designer generated code "
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
'Add any initialization after the InitializeComponent() call
End Sub
'Form overrides dispose to clean up the component list.
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Dispose()
End If
End If
MyBase.Dispose(disposing)
End Sub
'Required by the Windows Form Designer
Private components As System.ComponentModel.IContainer
'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
Friend WithEvents ListBox1 As PallaControls.Windows.Forms.ListBox
Friend WithEvents Button1 As System.Windows.Forms.Button
Friend WithEvents ListBox2 As System.Windows.Forms.ListBox
<system.diagnostics.debuggerstepthrough()> Private Sub InitializeComponent()
Me.ListBox1 = New PallaControls.Windows.Forms.ListBox
Me.Button1 = New System.Windows.Forms.Button
Me.ListBox2 = New System.Windows.Forms.ListBox
Me.SuspendLayout()
'
'ListBox1
'
Me.ListBox1.BorderColor = System.Drawing.Color.FromArgb(CType(222, Byte), CType(217, Byte), CType(207, Byte))
Me.ListBox1.BorderHotColor = System.Drawing.Color.FromArgb(CType(222, Byte), CType(217, Byte), CType(207, Byte))
Me.ListBox1.ColumnWidth = 0
Me.ListBox1.DockPadding.All = 1
Me.ListBox1.EditColor = System.Drawing.Color.FromArgb(CType(242, Byte), CType(242, Byte), CType(228, Byte))
Me.ListBox1.EditDisabledColor = System.Drawing.Color.FromArgb(CType(238, Byte), CType(238, Byte), CType(225, Byte))
Me.ListBox1.EditFocusedColor = System.Drawing.Color.White
Me.ListBox1.EditReadOnlyColor = System.Drawing.Color.FromArgb(CType(238, Byte), CType(238, Byte), CType(225, Byte))
Me.ListBox1.FlashColor = System.Drawing.Color.FromArgb(CType(170, Byte), CType(170, Byte), CType(221, Byte))
Me.ListBox1.Location = New System.Drawing.Point(28, 23)
Me.ListBox1.MultiColumn = False
Me.ListBox1.Name = "ListBox1"
Me.ListBox1.ParentStyle = False
Me.ListBox1.SelectedIndex = -1
Me.ListBox1.SelectedItem = Nothing
Me.ListBox1.SelectedValue = Nothing
Me.ListBox1.SelectionMode = System.Windows.Forms.SelectionMode.One
Me.ListBox1.Size = New System.Drawing.Size(180, 173)
Me.ListBox1.Sorted = False
Me.ListBox1.Style = Nothing
Me.ListBox1.TabIndex = 0
Me.ListBox1.TextColor = System.Drawing.Color.Black
Me.ListBox1.TopIndex = 0
Me.ListBox1.ValueMember = ""
'
'Button1
'
Me.Button1.Location = New System.Drawing.Point(147, 216)
Me.Button1.Name = "Button1"
Me.Button1.Size = New System.Drawing.Size(71, 28)
Me.Button1.TabIndex = 1
Me.Button1.Text = "Test"
'
'ListBox2
'
Me.ListBox2.Location = New System.Drawing.Point(225, 17)
Me.ListBox2.Name = "ListBox2"
Me.ListBox2.Size = New System.Drawing.Size(182, 173)
Me.ListBox2.TabIndex = 2
'
'tester
'
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
Me.ClientSize = New System.Drawing.Size(418, 266)
Me.Controls.Add(Me.ListBox2)
Me.Controls.Add(Me.Button1)
Me.Controls.Add(Me.ListBox1)
Me.Name = "tester"
Me.Text = "tester"
Me.ResumeLayout(False)
End Sub
#End Region
Public Class GroupClass
Friend Structure struct_StockGroup
Friend ID As Long
Friend Description As String
Public Overrides Function ToString() As String
Return Description
End Function
End Structure
Friend Record() As struct_StockGroup
End Class
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim g As New GroupClass
Dim i As Integer
For i = 1 To 10
ReDim Preserve g.Record(i)
g.Record(i).ID = i
g.Record(i).Description = "My Test " & CStr(i)
ListBox1.Items.Add(g.Record(i))
ListBox2.Items.Add(g.Record(i))
Next
End Sub
End Class
|
|
|
|
|
Hi Jeff,
Thank you for posting the code for test. Seemingly I got solved the bug that you told. Please see what happens in your cases.
Greetings,
Marcelo Palladino
Marcelo Palladino
Brazil
|
|
|
|
|
Marcelo,
Excellent package. Well done.
Regarding this ListBox issue...has it been resolved? I've got the same problem with the ComboBox, but only when databinding. Works fine if you add string items.
Thanks
Ron
|
|
|
|
|