Autor Tema: OnLine o OffLine esa es la cuestion  (Leído 4064 veces)

0 Usuarios y 1 Visitante están viendo este tema.

LeandroA

  • Administrador
  • Petabyte
  • *****
  • Mensajes: 1128
  • Reputación: +151/-8
    • Ver Perfil
OnLine o OffLine esa es la cuestion
« en: Septiembre 21, 2010, 01:56:43 am »
Les pido disculpa, pero estamos teniendo problemas con los DSN del server, esperemos que se solucione pronto y definitivamente y podamos seguir Online.

Saludos

Chris

  • Bit
  • Mensajes: 7
  • Reputación: +0/-0
    • Ver Perfil
Re:OnLine o OffLine esa es la cuestion
« Respuesta #1 en: Septiembre 22, 2010, 02:30:02 pm »
It seems some things got lost too.

I just had to register again, because my account was gone. Also, the topic I started yesterday about ucListview is gone.

LeandroA

  • Administrador
  • Petabyte
  • *****
  • Mensajes: 1128
  • Reputación: +151/-8
    • Ver Perfil
Re:OnLine o OffLine esa es la cuestion
« Respuesta #2 en: Septiembre 23, 2010, 12:25:11 am »

Chris

  • Bit
  • Mensajes: 7
  • Reputación: +0/-0
    • Ver Perfil
Re:OnLine o OffLine esa es la cuestion
« Respuesta #3 en: Septiembre 23, 2010, 02:48:24 am »
Excellent, thank you very much  :)

Maybe it's just me, but it seems a few other things are not working now. For example, when clicking on a columnheader, the ucListView1_ColumnClick event does not fire. Setting HeaderFixedWidth to True does not lock the columns. Calling the .Sort function via a commandbutton doesn't do anything either.

The problem seems to be in zSubclass_Proc. It never reaches HDN_ITEMCLICK, so the ColumnClick event is never raised. I'll see if I can find a solution tomorrow, it's bedtime now.

Thanks again for your work, Leandro.

-Chris
« última modificación: Septiembre 23, 2010, 02:54:37 am por Chris »

LeandroA

  • Administrador
  • Petabyte
  • *****
  • Mensajes: 1128
  • Reputación: +151/-8
    • Ver Perfil
Re:OnLine o OffLine esa es la cuestion
« Respuesta #4 en: Septiembre 23, 2010, 04:13:01 am »
yes,  add that change in the ucListview

Código: [Seleccionar]
Public Function ColumnAdd( _
                ByVal Column As Integer, _
                ByVal Text As String, _
                ByVal Width As Integer, _
                Optional ByVal Align As eColumnAlignConstants = [caLeft], _
                Optional ByVal Icon As Integer = -1 _
                ) As Boolean
   

    Dim LVC As LVCOLUMN_lp
   
    If (m_hListView) Then
   
        With LVC
            .mask = LVCF_FMT Or LVCF_TEXT Or LVCF_WIDTH Or LVCF_IMAGE * -(Icon > -1)
            .pszText = StrPtr(StrConv(Text, vbFromUnicode))  ' <------- as long
            .fmt = HDF_STRING Or Align * -(Column <> 0) Or HDF_IMAGE * -(Icon > -1) Or HDF_BITMAP_ON_RIGHT 'HDF_STRING Or Align Or LVCFMT_IMAGE Or LVCFMT_BITMAP_ON_RIGHT
            .cx = Width
            .iImage = Icon
            .iOrder = 0
        End With
       
        ColumnAdd = SendMessage(m_hListView, LVM_INSERTCOLUMN, Me.ColumnCount, LVC) > -1
   
        If m_hHeader = 0 Then
            m_hHeader = pvHeaderhWnd()
            Call SendMessageLong(m_hHeader, HDM_SETIMAGELIST, 0, m_hILHeader)
        End If
   
    End If
   
End Function

remove the function ColumnAdd2, it not necessary

Chris

  • Bit
  • Mensajes: 7
  • Reputación: +0/-0
    • Ver Perfil
Re:OnLine o OffLine esa es la cuestion
« Respuesta #5 en: Septiembre 23, 2010, 10:58:32 am »
Perfect, thank you very much. Everything works fine now  :D