Results 1 to 28 of 28

Thread: [RESOLVED] any user list box like telegram?

  1. #1

    Thread Starter
    Fanatic Member Black_Storm's Avatar
    Join Date
    Sep 2007
    Location
    any where
    Posts
    575

    Resolved [RESOLVED] any user list box like telegram?

    hi i want create a app like telegram ui with that list box,any source code or user control like this :
    i know this is QT panel but i can not find for vb.
    i need a list box like this :

    Name:  001.jpg
Views: 1648
Size:  76.5 KB


    Red lines is important parts.

  2. #2
    PowerPoster Elroy's Avatar
    Join Date
    Jun 2014
    Location
    Near Nashville TN
    Posts
    9,855

    Re: any user list box like telegram?

    Black_Storm,

    To my eyes, that looks like a rather complete app, rather than just a ListBox. I think it's up to you to, basically, specify the app. And it's also probably up to you to write it as well. Just, for instance, you haven't even given us a hint as to what the elements are of each list-entry. There's obviously at least six elements to each entry.

    Are we to assume that, when an entry is selected, that it's elements are highlighted with those red lines? What are the numbers in the ovals? Where's the scrollbar, or how do you scroll? What's the lock at the top indicate? Does the user make more entries? Is there an address book? What do the small icons mean, single/multi? What are those aqua checks? Are the number of elements per entry fixed?

    In other words, there's just so much about this that isn't specified.

    When I first saw it, I thought, "hmm, a ListView maybe?" But the more I studied it, I started thinking of a custom UserControl. However, as I stare more, it's just very unclear what it's about.

    So ... Good Luck With It,
    Elroy
    Any software I post in these forums written by me is provided "AS IS" without warranty of any kind, expressed or implied, and permission is hereby granted, free of charge and without restriction, to any person obtaining a copy. To all, peace and happiness.

  3. #3

    Thread Starter
    Fanatic Member Black_Storm's Avatar
    Join Date
    Sep 2007
    Location
    any where
    Posts
    575

    Re: any user list box like telegram?

    i can use LynxGrid or like this and then bind controls like buttons images labels or ... for each item but i want find simple list box like it.
    what do u think about my idea?
    Last edited by Black_Storm; Feb 25th, 2018 at 07:00 PM.

  4. #4
    PowerPoster
    Join Date
    Jun 2013
    Posts
    7,219

    Re: any user list box like telegram?

    Quote Originally Posted by Black_Storm View Post
    hi i want create a app like telegram ui with that list box,any source code or user control like this :
    i know this is QT panel but i can not find for vb.
    A "QT-like class-framework for VB6" is available with the RC5 (when used in conjunction with vbWidgets).

    And the Widget in question which can render such complex Listings with ease (circular clipping of Avatar-Images included),
    is cwVList.

    Nothing stands in your way, to invest about 60-80 lines of code - and be finished with the List-implementation
    in just a few hours (perhaps a day or two, if you're not yet familiar with the framework or the cairo-rendering-calls).

    And since most messenger-Apps also use SQLite as their "Offline-DBstorage", I guess it's a good thing,
    that this is included in the RC5 as well...

    The download-size of Apps which are based on the QT-framework is often in the range of 15-30MB -
    (whilst the download-size of an XCopy-deployable RC5-based App would be about 3-4MB).

    High-DPI-awareness, InApp-Zoom, good (antialiased) rendering-quality and Unicode-awareness are
    inherently available as well... up to you now, which path to go...

    Olaf

  5. #5

  6. #6

    Thread Starter
    Fanatic Member Black_Storm's Avatar
    Join Date
    Sep 2007
    Location
    any where
    Posts
    575

    Re: any user list box like telegram?

    Quote Originally Posted by Schmidt View Post
    A "QT-like class-framework for VB6" is available with the RC5 (when used in conjunction with vbWidgets).

    And the Widget in question which can render such complex Listings with ease (circular clipping of Avatar-Images included),
    is cwVList.

    Nothing stands in your way, to invest about 60-80 lines of code - and be finished with the List-implementation
    in just a few hours (perhaps a day or two, if you're not yet familiar with the framework or the cairo-rendering-calls).

    And since most messenger-Apps also use SQLite as their "Offline-DBstorage", I guess it's a good thing,
    that this is included in the RC5 as well...

    The download-size of Apps which are based on the QT-framework is often in the range of 15-30MB -
    (whilst the download-size of an XCopy-deployable RC5-based App would be about 3-4MB).

    High-DPI-awareness, InApp-Zoom, good (antialiased) rendering-quality and Unicode-awareness are
    inherently available as well... up to you now, which path to go...

    Olaf

    can u send a sample for use like as Qt?

  7. #7
    PowerPoster
    Join Date
    Feb 2006
    Posts
    24,482

    Re: any user list box like telegram?

    You could use the DataRepeater control, or you could just create your own custom list or grid controls.

    Here is a quick and dirty one. I didn't get too fancy with it so it has a couple of raggedy "lights" for each item that the user can click on to change their colors and some random text.

    Not perfect, just a sketch of an idea.

    Name:  sshot.png
Views: 1414
Size:  15.7 KB

    The appearance and behavior is completely up to you. With a little more code, items can even have varying heights among them as required.

    I call these controls "Groids" (grid-oid?) though this one is a simple list more like the standard DataRepeater control.

    Most of the attachment's size is included photos and graphic items.
    Attached Files Attached Files
    Last edited by dilettante; Feb 26th, 2018 at 01:27 PM.

  8. #8
    Fanatic Member
    Join Date
    Aug 2016
    Posts
    673

    Re: any user list box like telegram?

    Quote Originally Posted by dilettante View Post
    You could use the DataRepeater control, or you could just create your own custom list or grid controls.

    Here is a quick and dirty one. I didn't get too fancy with it so it has a couple of raggedy "lights" for each item that the user can click on to change their colors and some random text.

    Not perfect, just a sketch of an idea.

    Name:  sshot.png
Views: 1414
Size:  15.7 KB

    The appearance and behavior is completely up to you. With a little more code, items can even have varying heights among them as required.

    I call these controls "Groids" (grid-oid?) though this one is a simple list more like the standard DataRepeater control.

    Most of the attachment's size is included photos and graphic items.
    Good example and well understood.may be can add .delete. items. sort.... like listboxEx...

    http://leandroascierto.com/blog/face...hoto-uploader/

  9. #9

    Thread Starter
    Fanatic Member Black_Storm's Avatar
    Join Date
    Sep 2007
    Location
    any where
    Posts
    575

    Re: any user list box like telegram?

    i created a sample with #5 and added more than 200 items to listbox and some time vb crashed or problem with memory so this is not good.

    Name:  001.png
Views: 1427
Size:  49.3 KB
    about #7 : i am looking for good graphic,thanks for sample but can better graphic like scollbars like telegram and better hover effect? ( like image slider hover effect in this link (http://leandroascierto.com/blog/cate...rios/page/2/)?
    about #8 : i think this is good but scrollbar theme is like standard scollbar ,any better theme?

  10. #10

    Thread Starter
    Fanatic Member Black_Storm's Avatar
    Join Date
    Sep 2007
    Location
    any where
    Posts
    575

    Re: any user list box like telegram?

    Quote Originally Posted by Schmidt View Post
    A "QT-like class-framework for VB6" is available with the RC5 (when used in conjunction with vbWidgets).

    And the Widget in question which can render such complex Listings with ease (circular clipping of Avatar-Images included),
    is cwVList.

    Nothing stands in your way, to invest about 60-80 lines of code - and be finished with the List-implementation
    in just a few hours (perhaps a day or two, if you're not yet familiar with the framework or the cairo-rendering-calls).

    And since most messenger-Apps also use SQLite as their "Offline-DBstorage", I guess it's a good thing,
    that this is included in the RC5 as well...

    The download-size of Apps which are based on the QT-framework is often in the range of 15-30MB -
    (whilst the download-size of an XCopy-deployable RC5-based App would be about 3-4MB).

    High-DPI-awareness, InApp-Zoom, good (antialiased) rendering-quality and Unicode-awareness are
    inherently available as well... up to you now, which path to go...

    Olaf
    i am waiting for Qt sample in rc5 too

  11. #11

    Thread Starter
    Fanatic Member Black_Storm's Avatar
    Join Date
    Sep 2007
    Location
    any where
    Posts
    575

    Re: any user list box like telegram?

    any other sample?
    any "QT-like class-framework for VB6" is available with the RC5 " ?

  12. #12
    PowerPoster
    Join Date
    Sep 2012
    Posts
    2,083

    Re: any user list box like telegram?

    Maybe the following links are useful to you:

    http://www.vbforums.com/showthread.p...=vbRichClient5

    http://www.vbforums.com/showthread.p...=vbRichClient5

    http://www.vbforums.com/showthread.p...=vbRichClient5

    http://www.vbforums.com/showthread.p...=vbRichClient5

    http://www.vbforums.com/showthread.p...=vbRichClient5

    http://www.vbforums.com/showthread.p...=vbRichClient5

    http://www.vbforums.com/showthread.p...=vbRichClient5

    http://www.vbforums.com/showthread.p...=vbRichClient5

    http://www.vbforums.com/showthread.p...=vbRichClient5

    http://www.vbforums.com/showthread.p...=vbRichClient5

    http://www.vbforums.com/showthread.p...=vbRichClient5

    http://www.vbforums.com/showthread.p...=vbRichClient5

    http://www.vbforums.com/showthread.p...=vbRichClient5

    http://www.vbforums.com/showthread.p...=vbRichClient5

    http://www.vbforums.com/showthread.p...=vbRichClient5

    http://www.vbforums.com/showthread.p...=vbRichClient5

    http://www.vbforums.com/showthread.p...=vbRichClient5

    http://www.vbforums.com/showthread.p...=vbRichClient5

    http://www.vbforums.com/showthread.p...=vbRichClient5

    http://www.vbforums.com/showthread.p...=vbRichClient5

    http://www.vbforums.com/showthread.p...=vbRichClient5

    http://www.vbforums.com/showthread.p...=vbRichClient5

    http://www.vbforums.com/showthread.p...=vbRichClient5

    http://www.vbforums.com/showthread.p...=vbRichClient5


    If I need to do graphics programming, I'll carefully study every example of vbRichClient5.Cairo.

    If you started using vbRichClient5 last year, your project may have been completed. vbRichClient5 can help you save 40%-80% of your workload.

    In addition, there are more examples at www.vbrichclient.com:
    http://www.vbrichclient.com/#/en/Downloads.htm
    Last edited by dreammanor; Feb 28th, 2018 at 11:09 PM.

  13. #13

    Thread Starter
    Fanatic Member Black_Storm's Avatar
    Join Date
    Sep 2007
    Location
    any where
    Posts
    575

    Re: any user list box like telegram?

    i hv vbrichclients samples and ... i am looking for any list view support right to left and like telegram Qt Panel attaches in #1,but when here talked about QT and RC5 so i want know about QT and a sample list box with rc5 and qt used.can u send a sample about qt and list box in rc5?

  14. #14
    PowerPoster
    Join Date
    Jun 2013
    Posts
    7,219

    Re: any user list box like telegram?

    Quote Originally Posted by Black_Storm View Post
    i hv vbrichclients samples and ... i am looking for any list view support right to left and like telegram Qt Panel attaches in #1,but when here talked about QT and RC5 so i want know about QT and a sample list box with rc5 and qt used.can u send a sample about qt and list box in rc5?
    There is existing VList-Demos on the RC5-WebSite: http://vbrichclient.com/#/en/Demos/GUI/ (3 of them, bundled in the vbWidgets-VList-Demo-Zip)

    As for QT - that's a Class-Framework, written in C++ ... (primarily used in C++ and for the K-Desktop-Environment KDE, but GUI-wrapper-libs exist for other languages as well)
    The RC5 (vbRichClient5) does not use or "wrap" QT - it is "similar to it" (a Class-Framework for primarily VB6-users, but it's a COM-lib and can be used in other languages as well).

    Just to make that more clear to you...

    When you talk about a "QT-Panel", then you mean "a QT-Widget-Container".

    And the RC5-framework offers something similar, over:
    - either the cWidgetForm-Class
    - or alternatively via the "ucPanel.ctl" Helper, which can be used to integrate RC5-Widgets into normal VB6-Forms

    Here is, what an RC5-based "VList-approach" can produce on such an ucPanel (which in the ScreenShot below, covers the whole VB6-Form):


    I will not post "the entire Zip" for that... in case you want to go that route, I'd like you "to work a bit" instead

    Here is the code for the ucPanel.ctl, which allows you to use RC5-Widgets on a normal VB6-Form:
    Code:
    Option Explicit 'just a generic little Helper-Control, to make Cairo-Widgets usable on normal VB-Forms
    
    Event ResizeWithDimensions(ByVal NewWidth As Long, ByVal NewHeight As Long)
    
    Public mRoot As cWidgetRoot
    
    Public Property Get Root() As cWidgetRoot
      If mRoot Is Nothing Then Set mRoot = Cairo.WidgetRoot: mRoot.RenderContentIn Me
      Set Root = mRoot
    End Property
    
    Public Property Get Widgets() As cWidgets
      Set Widgets = Root.Widgets
    End Property
     
    Private Sub UserControl_Resize()
      If mRoot Is Nothing Then Exit Sub Else ScaleMode = vbPixels
      If mRoot.Widget.ChildCount Then RaiseEvent ResizeWithDimensions(ScaleWidth, ScaleHeight)
    End Sub
    
    Private Sub UserControl_Show()
      If Not mRoot Is Nothing Then mRoot.Widget.Refresh
    End Sub
    
    Public Sub Cleanup()
      If Not mRoot Is Nothing Then mRoot.Widgets.RemoveAll: mRoot.Disconnect
    End Sub
    Olaf

  15. #15
    PowerPoster
    Join Date
    Sep 2012
    Posts
    2,083

    Re: any user list box like telegram?

    ucPanel.ctl is an extremely handy helper.

    A few days ago, I needed to use RC5.WebKit to test Chrome browser. Although RC5.vbWidget (including cwBrowser) is excellent, very handy for dynamically generate controls and very easy to port to other platforms, it is not the same as traditional VB UC(it's used in a different way than the traditional VB UC). Traditional VB UserControls are directly dragged and dropped from the Toolbox to VB Form. So I chose to encapsulate RC5.cWebKit directly into a UserControl instead of using vbWidget. At that time I was thinking, if there is another version of vbWidget, which is contained in a ucPanel.ctl, it will greatly facilitate the use for VB beginners.

    Of course, if vbWidgets is contained in a ucPanel.ctl, then it is not easy to dynamically generate, and is not easy to port to other platforms.
    Last edited by dreammanor; Mar 3rd, 2018 at 11:39 AM.

  16. #16
    PowerPoster
    Join Date
    Sep 2012
    Posts
    2,083

    Re: any user list box like telegram?

    Hi Olaf, why is mRoot Public? Would it be better to write like this?

    Code:
    Option Explicit 'just a generic little Helper-Control, to make Cairo-Widgets usable on normal VB-Forms
    
    Event ResizeWithDimensions(ByVal NewWidth As Long, ByVal NewHeight As Long)
    
    Private mRoot As cWidgetRoot
    
    Public Property Get Root() As cWidgetRoot
      If mRoot Is Nothing Then Set mRoot = Cairo.WidgetRoot: mRoot.RenderContentIn Me
      Set Root = mRoot
    End Property
    
    Public Property Set Root(widgetRoot As cWidgetRoot)
      Set mRoot = widgetRoot
    End Property
    
    Public Property Get Widgets() As cWidgets
      Set Widgets = Root.Widgets
    End Property
     
    Private Sub UserControl_Resize()
      If mRoot Is Nothing Then Exit Sub Else ScaleMode = vbPixels
      If mRoot.Widget.ChildCount Then RaiseEvent ResizeWithDimensions(ScaleWidth, ScaleHeight)
    End Sub
    
    Private Sub UserControl_Show()
      If Not mRoot Is Nothing Then mRoot.Widget.Refresh
    End Sub
    
    Public Sub Cleanup()
      If Not mRoot Is Nothing Then mRoot.Widgets.RemoveAll: mRoot.Disconnect
    End Sub
    Last edited by dreammanor; Mar 3rd, 2018 at 11:51 AM.

  17. #17
    PowerPoster
    Join Date
    Jun 2013
    Posts
    7,219

    Re: any user list box like telegram?

    Quote Originally Posted by dreammanor View Post
    Hi, Olaf Why is mRoot Public?
    I've forgot to set it to Private (after a change I've made)...

    It was formerly defined as just:
    Public Root As cWidgetRoot
    (without being backed up by an 'm-Variable').

    The (readonly) " Public Property Get Root() " - was introduced later, to ensure an auto-instantiation.

    Your change to Private is the right thing to do - but the Extra-Set-Property is not needed (not wanted) in that Panel-Ctl.

    @Black_Storm
    ... just to make sure there is no misunderstanding...
    I fully intend to finally come up with all the Source-Code for what is shown in the ScreenShot -
    but would like you to make a first step, demonstrating your willingness to really learn how these things work,
    starting with e.g.:
    - incorporating the posted ucPanel.ctl into an empty VB6-Project (along with references to vbRichClient5 and vbWidgets)...
    - followed by "successfully adding and visualizing a first Widget by using ucPanel.Widgets.Add" (against a Widget-class you wrote on your own, or one already included in vbWidgets.dll)

    Olaf

  18. #18
    Fanatic Member
    Join Date
    Apr 2015
    Location
    Finland
    Posts
    679

    Re: any user list box like telegram?

    Is this class really useable, as included in application causes stack error, when running compiled exe, inide works ok.

    <clip>
    Vikamoduulin nimi: StackHash_e1ee
    Vikamoduulin versio: 0.0.0.0
    Vikamoduulin aikaleima: 00000000
    Poikkeuskoodi: c000041d
    Poikkeuksen poikkeama: 74264f69
    Käyttöjärjestelmän versio: 6.1.7601.2.1.0.256.48
    Aluekohtaisten asetusten tunnus: 1035
    Lisätietoja 1: e1ee
    Lisätietoja 2: e1eefadef23b321da72ac6e7ff39ca4d
    Lisätietoja 3: e46a
    Lisätietoja 4: e46a700a1d0bfef2fb1b8bcec0943582
    </clip>

  19. #19

  20. #20

    Thread Starter
    Fanatic Member Black_Storm's Avatar
    Join Date
    Sep 2007
    Location
    any where
    Posts
    575

    Re: any user list box like telegram?

    Quote Originally Posted by Schmidt View Post
    There is existing VList-Demos on the RC5-WebSite: http://vbrichclient.com/#/en/Demos/GUI/ (3 of them, bundled in the vbWidgets-VList-Demo-Zip)

    As for QT - that's a Class-Framework, written in C++ ... (primarily used in C++ and for the K-Desktop-Environment KDE, but GUI-wrapper-libs exist for other languages as well)
    The RC5 (vbRichClient5) does not use or "wrap" QT - it is "similar to it" (a Class-Framework for primarily VB6-users, but it's a COM-lib and can be used in other languages as well).

    Just to make that more clear to you...

    When you talk about a "QT-Panel", then you mean "a QT-Widget-Container".

    And the RC5-framework offers something similar, over:
    - either the cWidgetForm-Class
    - or alternatively via the "ucPanel.ctl" Helper, which can be used to integrate RC5-Widgets into normal VB6-Forms

    Here is, what an RC5-based "VList-approach" can produce on such an ucPanel (which in the ScreenShot below, covers the whole VB6-Form):


    I will not post "the entire Zip" for that... in case you want to go that route, I'd like you "to work a bit" instead

    Here is the code for the ucPanel.ctl, which allows you to use RC5-Widgets on a normal VB6-Form:
    Code:
    Option Explicit 'just a generic little Helper-Control, to make Cairo-Widgets usable on normal VB-Forms
    
    Event ResizeWithDimensions(ByVal NewWidth As Long, ByVal NewHeight As Long)
    
    Public mRoot As cWidgetRoot
    
    Public Property Get Root() As cWidgetRoot
      If mRoot Is Nothing Then Set mRoot = Cairo.WidgetRoot: mRoot.RenderContentIn Me
      Set Root = mRoot
    End Property
    
    Public Property Get Widgets() As cWidgets
      Set Widgets = Root.Widgets
    End Property
     
    Private Sub UserControl_Resize()
      If mRoot Is Nothing Then Exit Sub Else ScaleMode = vbPixels
      If mRoot.Widget.ChildCount Then RaiseEvent ResizeWithDimensions(ScaleWidth, ScaleHeight)
    End Sub
    
    Private Sub UserControl_Show()
      If Not mRoot Is Nothing Then mRoot.Widget.Refresh
    End Sub
    
    Public Sub Cleanup()
      If Not mRoot Is Nothing Then mRoot.Widgets.RemoveAll: mRoot.Disconnect
    End Sub
    Olaf
    i want just create a list box with my descriptions in #1 and my problem not fixed yet,i asked about Qt because i thinked maybe can simple in vb6.
    i ahve not experiance to work with rc5 but i want just fix my problems,for example i did see examples in rc5 demos but was been not like ur attachment images,
    can u send sample code,i dont want use just module and create dunamic form by rc5,i want hv my forms with my controls and then used list too.

    in trick list box i hv some problem and i writed in that thread,i tested manu custom list view like as picasa list box or data repeater or scrollbar support data repeat or like this but all of my porblmes in trick list box is about
    1-right to left problem
    2-scrollbar theme
    3-hover effect for items in list box
    4-background of list box
    5-alternative colors
    6-custom images or buttons

    can u send sample code used in #14

  21. #21
    PowerPoster
    Join Date
    Jun 2013
    Posts
    7,219

    Re: any user list box like telegram?

    Quote Originally Posted by Black_Storm View Post
    ... i dont want use just module and create dunamic form by rc5,...
    You don't have to, since it is possible to "add and host RC5-Widgets" on normal VB6-Forms -
    by using a little Project-Private-UserControl (named ucPanel and saved as ucPanel.ctl)...

    I've already posted the code for that little Control in #14...

    Quote Originally Posted by Black_Storm View Post
    ... can u send sample code used in #14 ...
    As said, I will post the entire Solution finally, when you are willing to learn a few things - by "staying in dialogue with me" here.

    The first thing you could try to understand is, that "direct integration of some new functionality into a larger Project"
    is often not advisable - IMO your "larger integration project" will be better, when it (later) incorporates:
    - separately developed parts
    - which were developed in their own, isolated project
    - then throughly tested (and later also maintained there, in that isolated project)
    Only in a last step will these Components (usually Classes) be moved over into the Main-Project.

    So, please make an isolated Project TestVList.vbp (choose any name you like) - and do the following:
    - ensure references to vbRichClient5 and vbWidgets
    - add a *.bas-module to it, and name it modMain.bas
    - ensure that modMain.bas contains the following (at the moment):
    Code:
    Sub Main()
      Form1.Show
    End Sub
    - now ensure in your ProjectSettings, that your Project indeed starts via Sub Main() (by placing a break-point at Form1.Show)
    - now add a new Private UserControl to your Project - name it ucPanel and paste the code from #14 into it
    - create a new Instance (ucPanel1) on your Form1
    - and finally place the following code in Form1
    Code:
    Option Explicit
    
    Private Lbl1 As cwLabel, Lbl2 As cwLabel
    
    Private Sub Form_Load()
      ucPanel1.Root.BackColor = vbWhite
      
      Set Lbl1 = ucPanel1.Widgets.Add(New cwLabel, "Lbl1", 5, 5, 120, 28)
          Lbl1.Alignment = vbLeftJustify
          Lbl1.InnerSpace = 2
          Lbl1.Caption = "Hello World"
          
      Set Lbl2 = ucPanel1.Widgets.Add(New cwLabel, "Lbl2", 5, 40, 120, 28)
          Lbl2.Alignment = vbRightJustify
          Lbl2.InnerSpace = 2
          Lbl2.Caption = ChrW(&H633) & ChrW(&H644) & ChrW(&H627) & ChrW(&H645) & ChrW(&H20) & ChrW(&H62F) & ChrW(&H646) & ChrW(&H6CC) & ChrW(&H627)
    End Sub
    The result should look like that:


    If you reached this point (your new little TestProject working this way), the rest will become fairly simple...

    Olaf

  22. #22

    Thread Starter
    Fanatic Member Black_Storm's Avatar
    Join Date
    Sep 2007
    Location
    any where
    Posts
    575

    Re: any user list box like telegram?

    i read about ucpanle and downloaded this sample http://www.vbforums.com/showthread.p...=1#post4880025.
    its custom ucpanel and list view example with ur send post.

    i can use http://www.Planet-Source-Code.com/vb...68032&lngWId=1

    or i can use custtom scroll control(its very simple with power full options and i can set any controls for items with design ),refrences:face book project attachment like this :

    Name:  001.jpg
Views: 1199
Size:  21.4 KB
    and result is like :
    Name:  002.png
Views: 1214
Size:  105.3 KB


    but i want see sorce code of #14 and test ,maybe use.
    can u send source code ? maybe i use it maybe not,because i dont like use rc5 in my most projects and usually i dont like use dlls or ocx,but i want just see it.

    most of my questions in forums is about use without other ocx or dlls.

    i can fix my problems with use other options like my sent result image,i hv no time for learn rc5 because i hv no time for product of customer.
    i am just compare options and samples here,so if u are doing talk about learn here,sorry i hv no time,but i am doing try for see other samples "source code" and not talk about it only.
    Attached Files Attached Files
    Last edited by Black_Storm; Mar 4th, 2018 at 08:04 PM.

  23. #23
    PowerPoster
    Join Date
    Jun 2013
    Posts
    7,219

    Re: any user list box like telegram?

    Quote Originally Posted by Black_Storm View Post
    ...i hv no time for learn rc5 because i hv no time for product of customer.
    The solution in #14 includes (is based on) a new cwRepeater-Widget (internally derived from cwVList) - and as such it requires you,
    to implement your own "cw_My_Repeated_Widget"-Class (as a little Container which hosts "Sub-Widgets, which finally make up your repeated Item"):
    - in #14 this "repeated Control" is named cwMsgItem Project-internally ...(hosting 3 cwLabels, 3 cwImage and 2 cwButton for the CheckBoxes)
    - and the cwRepeater-Widget which finally lists and renders such a "repeated Widget", is interacting with an SQLite-Recordset as the bound Datasource

    So, if you are not able to define such a "repeated Item-Widget" on your own (in your own cwItem-Class),
    then the whole approach and example would be of no use to you...
    Therefore my attempts, to make sure you know how to create your own "cwMyWidget"-Class...

    I will post the source for all this (in case others are interested) in a few weeks into the codebank
    (taking somewhat more time, to integrate cwRepeater "officially and properly" into the vbWidgets.dll first).

    As I see it, waiting for others to "post sources that match your problem" already took over a week so far (just in this thread alone).
    If you'd have invested this week into learning how to use "Cairo-Drawing-Commands and the RC5-WidgetEngine",
    you could solve this specific problem in a day (and in the future "other problems like it" in an equally short time).

    That's what libraries are for, they *save you development-time* (making you more competitive in the eyes of your customers),
    so when you write: "I have no time for learn rc5 because i hv no time for product of customer",
    then this is a contradiction in itself (in the long run).

    Olaf

  24. #24

    Thread Starter
    Fanatic Member Black_Storm's Avatar
    Join Date
    Sep 2007
    Location
    any where
    Posts
    575

    Re: any user list box like telegram?

    any other sample "source code" without rc5 ,if any body can help just send sample code if not this thread will be resolved.
    Last edited by Black_Storm; Mar 5th, 2018 at 04:04 PM.

  25. #25
    Fanatic Member
    Join Date
    Apr 2015
    Location
    Finland
    Posts
    679

    Re: any user list box like telegram?

    Quote Originally Posted by The trick View Post
    Tech99, please send me project that causes the error.
    Sorry, for the delay in answering. I found error, causing crash. It wasn't in your class, but other part of code dealing with listbox in the form. However, for some reason VB is not able to catch runtime error, when asm thunking is made. Other than that, compiled exe is somewhat sensitive to crash, when only one Trick classed listbox is in from and declared as an array.

    Code:
    'Set TrickList.ListBox = lstTest(0)
    Set TrickList.ListBox = lstTest 'preferred method without index, if there are only one subclassed lstTest listbox.

  26. #26
    Frenzied Member
    Join Date
    Apr 2012
    Posts
    1,253

    Re: any user list box like telegram?

    @Black_Storm,

    Maybe it's time to think about posting in the Open Positions section of the forum? It seems to me that you aren't really looking for 'sample code' at all but, rather, that you want somebody to provide you with a full custom control that meets your exact functional requirements. Given that you are being paid for this, and are unable to do it for yourself, maybe you should 'take a hit' and outsource this part of your project...
    If you don't know where you're going, any road will take you there...

    My VB6 love-children: Vee-Hive and Vee-Launcher

  27. #27

    Thread Starter
    Fanatic Member Black_Storm's Avatar
    Join Date
    Sep 2007
    Location
    any where
    Posts
    575

    Re: any user list box like telegram?

    any other sample without rc5?

  28. #28
    Fanatic Member
    Join Date
    Apr 2015
    Location
    Finland
    Posts
    679

    Re: any user list box like telegram?

    Quote Originally Posted by Tech99 View Post
    Sorry, for the delay in answering. I found error, causing crash. It wasn't in your class, but other part of code dealing with listbox in the form. However, for some reason VB is not able to catch runtime error, when asm thunking is made. Other than that, compiled exe is somewhat sensitive to crash, when only one Trick classed listbox is in from and declared as an array.

    Code:
    'Set TrickList.ListBox = lstTest(0)
    Set TrickList.ListBox = lstTest 'preferred method without index, if there are only one subclassed lstTest listbox.

    Investicated this bit more, and yes application crashes everytime, when started from other task with command line parameter.
    Ongelman tunniste:
    Ongelmatapahtuman nimi: APPCRASH
    Vikamoduulin nimi: ntdll.dll
    Vikamoduulin versio: 6.1.7601.23455
    Vikamoduulin aikaleima: 573a5463
    Poikkeuskoodi: c0000005
    Poikkeuksen poikkeama: 0001ea26
    Käyttöjärjestelmän versio: 6.1.7601.2.1.0.256.48
    Aluekohtaisten asetusten tunnus: 1035
    Lisätietoja 1: 4ae2
    Lisätietoja 2: 4ae2b85c451a1c8593dd92f23aaa6042
    Lisätietoja 3: 18ab
    Lisätietoja 4: 18ab1868fb8ea56133e26bedf7bc5984

    My recommendation, one should use proper ocx or usercontrol, and do not try thunking assemblies to std windows objects in these days anymore.
    Last edited by Tech99; Mar 13th, 2018 at 01:10 PM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width