LinkLabel - Libary

Discussion in 'Additional Libraries' started by hoffi, May 14, 2007.

  1. hoffi

    hoffi Member

    Hi,

    I had a little bit time today and so I decided to build a libary that includes a "link"-label. Its a label with click-event and the style of an link. Tested on an cf 2.0 device but it should run on cf 1.0 too.
    Let me know if anything not work (Its my first libary :) )!

    bye for now
     

    Attached Files:

  2. specci48

    specci48 Well-Known Member Licensed User

    Hello hoffi,

    :sign0098:

    My additional question:
    Could you extend your library with a label that looks like a normal label (no underscore)?
    My additional wish:
    Maybe Erel could import this feature(s) in his formlib for version 5.00, so we don't have to import so many libraries?


    Thumbs up

    specci48
     
  3. Cableguy

    Cableguy Expert Licensed User

    Hi, Hoffi

    Great job,
    As Specci48 mentioned, is it possible to add a lbl1.underline=True/False like parameter?

    it woul be very usefull in some situations when we need a clickable label without the underlinning...

    BTW: If its possible can you make the sourcecode available? I'm trying to start in dll creation but not quite sure were to start...I have VS2005Pro...
     
  4. hoffi

    hoffi Member

    Thanks :)

    I have added the underline parameter.
    The sourcecode and new libary are attached. I use VS2005Pro too :sign0060:. You can ask me if you have problems with dlls. I will try to help you.

    bye for now
    hoffi
     

    Attached Files:

  5. Erel

    Erel Administrator Staff Member Licensed User

    :sign0098:.
    BTW, it is not necessary to create a public event for events that are not used from Basic4ppc (like the Paint event here).
    If you do need several public events then you need to create an eventObject for each one (you can name it whatever you like).
     
  6. Juergen

    Juergen Member Licensed User

    can you create a short text file with the explanation of the properties? I will include this in the manual files
     
  7. hoffi

    hoffi Member

    Hi all,

    Thank you Erel!

    Yes of course. I will write the text in the next days and upload it here.

    bye for now
    hoffi
     
  8. dlfallen

    dlfallen Active Member Licensed User

    I like this control a lot. Thank you for creating it and sharing it with us!

    One question: is there anyway to change the font size? The ability to change that property would be quite nice.

    -dlfallen
     
  9. hoffi

    hoffi Member

    Hi,

    Thank you dlfallen!

    I attached the newest Dll with two new features:
    - Fontstyle bold is supported
    - The fontsize is changeable

    bye for now
    hoffi
     

    Attached Files:

  10. Cableguy

    Cableguy Expert Licensed User

    Litle by litle, what started as atryout library as grown to be a full grown one.
    Congratulations Hoffi!!!:sign0060:
     
  11. dlfallen

    dlfallen Active Member Licensed User

    Thanks Hoffi! Great job, and very useful!!!

    -dlfallen :sign0098:
     
  12. hoffi

    hoffi Member

    Hi,

    Thanks :)
    I think the next libary will come soon. :sign0060:

    Juergen: I have attached the manual.

    bye for now.
    hoffi
     

    Attached Files:

  13. Cableguy

    Cableguy Expert Licensed User

    Erel

    I think this one deserves a place on the Basic4PPC anoucements lane...Don't You?

    Hoffi ::sign0098:
     
  14. Erel

    Erel Administrator Staff Member Licensed User

    I agree. It's "sticky" now.
     
  15. Juergen

    Juergen Member Licensed User

    @Hoffi
    thanks for the textfile, I will include it in the next version of my manual.
    But it will need a little bit time due to the presentation of the B4PPC-version 5.
     
  16. pochero

    pochero Member Licensed User

    Very useful for my this library, but it could be sublime with the text-alignment property. Thank you.

    TextAlignment:
    TopLeft 0
    TopCenter 2
    TopRight 1

    Example:
    lbl1.TextAlignment = 1
     
  17. corwin42

    corwin42 Expert Licensed User

    This is really a nice little Control but it is missing the Name property so you can't handle the Click-Event of many LinkLabels in just one Sub.

    @hoffi:
    I don't know if you still want to improve this Library because the thread is quite old now. If so coul you please add the Name property?

    Is the Source of the current version available to merge this library into an executable?

    @Cableguy
    Will you add this Library to the List of Library Versions?

    Greetings,
    Markus
     
  18. agraham

    agraham Expert Licensed User

    You should be able to using "Sender" in your event Sub to identify the control.
     
  19. corwin42

    corwin42 Expert Licensed User

    Oops, forget my Question.

    If I use just Sender then I get the (lowercase) name of the object.

    Greetings,
    Markus
     
  20. agraham

    agraham Expert Licensed User

    Is that a problem :confused:

    Try this source for merging that I have reverse engineered from the dll.
     

    Attached Files:

Loading...