Search:

Type: Posts; User: Elroy

Page 1 of 13 1 2 3 4

Search: Search took 0.04 seconds; generated 19 minute(s) ago.

  1. Replies
    135
    Views
    1,889

    Re: LED.OCX & Windows 11 Pro

    Dave, just as an FYI, I'll be out-of-pocket for a few days (going to Vegas for a few days). Also, maybe someone else will jump in and maybe help with getting it going in the VBA. I'll be back next...
  2. Replies
    4
    Views
    148

    Re: Collection parameter ByRef vs ByVal

    Here's a sample test/illustration:



    Option Explicit

    Private Sub Form_Load()
    Dim c As Collection
    Set c = New Collection
    c.Add "asdf"
  3. Replies
    4
    Views
    148

    Re: Collection parameter ByRef vs ByVal

    It possibly makes a little difference. Objects (including Collections) work a bit differently than, say, a Long, when passing ByRef vs ByVal.

    When passing an object ByRef, you're passing the same...
  4. Replies
    135
    Views
    1,889

    Re: LED.OCX & Windows 11 Pro

    Are we talking about the VBA or VB6?

    In either case, we really need to see the line of code (and some surrounding code) of the error before we could diagnose anything.
  5. Replies
    10
    Views
    322

    Re: add 2 element in array

    It's absolutely for you. In your original post, you're the one who used the GetRows call. Zvoni was just nice enough to do it for you.
  6. Replies
    135
    Views
    1,889

    Re: LED.OCX & Windows 11 Pro

    Hmmm, sorry, I'm not able to test (not having a 32-bit version of MS-Office installed anywhere).

    In the past years, I've done a lot of work in the VBA. However, I've moved almost all of that work...
  7. Re: Looking for a simple function which returns TRUE if a string contains emoji ...

    Seldom mess with it. :) Webpage scraping isn't my thing. *laughs*
  8. Replies
    10
    Views
    322

    Re: add 2 element in array

    GetRows returns a two dimension array. You need to ReDim only the second dimension. In fact, that's the only dimension that's allowed for ReDim.
  9. Re: [RESOLVED] Continue Loop without event interruption

    If you're going to use DoEvents, here's how I think of that call (the DoEvents call).

    I also think of it very similar to calling a function. It's just a function that processes all the events...
  10. Re: Looking for a simple function which returns TRUE if a string contains emoji ...

    haha, yep, that's pretty much how I'd have done it. I still call that a mess. :)
  11. Replies
    135
    Views
    1,889

    Re: LED.OCX & Windows 11 Pro

    Ok ok. :)

    Here's the latest version, setup to compile as an OCX (as per discussed in post #123).
  12. Replies
    135
    Views
    1,889

    Re: LED.OCX & Windows 11 Pro

    Ok, you're right. I just downloaded post #118 and post #123, and they're different.

    Sorry, I'll fix it.
  13. Replies
    135
    Views
    1,889

    Re: LED.OCX & Windows 11 Pro

    Ok, what am I missing? Eduardo, I pulled the code from your post #118, and that's what's in the above OCX project. I even just did a file-compare, and there were no differences, other than the...
  14. Replies
    135
    Views
    1,889

    Re: LED.OCX & Windows 11 Pro

    Oh crud. Ok, I'll fix it.
  15. Re: Looking for a simple function which returns TRUE if a string contains emoji ...

    Hey Eduardo, just as an FYI, this one's all yours. :)

    I thought about copying the string to an Integer array, and then start looking for these things (including the surrogate pairs). But it...
  16. Replies
    135
    Views
    1,889

    Re: LED.OCX & Windows 11 Pro

    Here, I've reconfigured the latest version. I'll outline what I did.


    Copy the LedUserControl.ctl to LedUserControlToOcx.ctl
    Edit this new LedUserControlToOcx.ctl with Notepad (actually NP++)...
  17. Replies
    135
    Views
    1,889

    Re: LED.OCX & Windows 11 Pro

    Ahhh, perfect. You just moved it up to where the property is changed. :)

    Davey, you keeping up? :p

    Also, I've got to run some errands. I'll almost certainly check in later.
  18. Replies
    135
    Views
    1,889

    Re: LED.OCX & Windows 11 Pro

    Dave,

    Just as an FYI, I know you're trying to get some design work done.

    For ALL of these recent changes, to implement them, all you have to do is to open the UC's code window, delete all the...
  19. Replies
    135
    Views
    1,889

    Re: LED.OCX & Windows 11 Pro

    Ok, one more change.

    If both ControlBackStyle=transparent, and LedBackStyle=transparent, you now get the picture in the center of the LED, as it should be.

    The new Select Case for that (when...
  20. Replies
    135
    Views
    1,889

    Re: LED.OCX & Windows 11 Pro

    Well, that was easy enough. I saw the commented out lines, and the new lines.

    Dave, not sure you'll use it, but Eduardo has given you the ability for a more true transparency, in the case where...
  21. Replies
    135
    Views
    1,889

    Re: LED.OCX & Windows 11 Pro

    Ahhh, yeah, that's another level. I believe you're using "regions" to get that done. Again, with the caption, that gets rather complex. I'll let Davey ask for that before I throw myself into that...
  22. Replies
    10
    Views
    383

    Re: Can't get "Class" AddressOf to work

    I'd be happy if I could just use some trial-and-error to get the correct vTable index, crashing my IDE to find it.

    But, aren't there published rules on the order of things in the vTables? If I...
  23. Replies
    135
    Views
    1,889

    Re: LED.OCX & Windows 11 Pro

    Ok, I've added two more properties:


    ControlBackStyle
    LedOffStyle

    Both have two options, Transparent or Opaque.

    If ControlBackStyle is Opaque it used the BackColor property. If...
  24. Replies
    135
    Views
    1,889

    Re: LED.OCX & Windows 11 Pro

    Ok, that's why I keep saying to close your regular form before messing with the UC's code (or designer form). When it does that, just close that form, close the UC stuff, and then re-open the form...
  25. Replies
    135
    Views
    1,889

    Re: LED.OCX & Windows 11 Pro

    Ok, here's the lastest.

    Here's what I've done:

    Added an "Enabled" property.
    Added a "CaptionDisabledColor" property.
    Added a "LedDisabledColor" property.
    Added a "LedOffColor" property....
  26. Replies
    135
    Views
    1,889

    Re: LED.OCX & Windows 11 Pro

    Ok, working on it. Another few minutes.
  27. Replies
    135
    Views
    1,889

    Re: LED.OCX & Windows 11 Pro

    Ahhh, ok, I'll add that. Give me a few minutes. :)

    I'm going to disallow blinking if it's disabled, and I'm also going to add other new properties: Disabled-LED-Color & Disabled-Caption-Color. ...
  28. Replies
    135
    Views
    1,889

    Re: LED.OCX & Windows 11 Pro

    You may ask why I keep saying to "close other forms first". If you simultaneously have a form open that has a custom UC on it, and also have that custom UC open for editing, the IDE sometimes gets...
  29. Replies
    135
    Views
    1,889

    Re: LED.OCX & Windows 11 Pro

    And the Font is a bit different. If you wish to change the default caption font, just open the UC's designer form (closing other forms first), and then change the font of the UC's designer form. ...
  30. Replies
    135
    Views
    1,889

    Re: LED.OCX & Windows 11 Pro

    Good morning Dave,

    Well, another option is to edit the code of the custom UC (being sure to close your other forms first), and edit the defaults.

    Here's the code you'd edit:


    Private Sub...
  31. Replies
    10
    Views
    383

    Re: Can't get "Class" AddressOf to work

    Hi wqweto,

    It's clear that I don't have a deep understanding of the internal structure of an instantiated COM object.

    But it just seems like we should be able to locate the vTable and start...
  32. Replies
    9
    Views
    1,843

    Re: understanding cracking app

    As has been stated, anything that runs on your local machine can be cracked, even if you try to tie it to a MAC address or some other hardware identification, or even if it tries to use server...
  33. Re: Looking for a simple function which returns TRUE if a string contains emoji ...

    Argh, the fact that they're surrogate-pairs just made this whole task a LOT more difficult.

    zlander, maybe you could say more about what you're actually trying to do.
  34. Replies
    135
    Views
    1,889

    Re: LED.OCX & Windows 11 Pro

    I think that's a good idea.



    Good to hear. :)



    Personally, I think it's better to have all the source code to everything, and have it all in one project (if possible).
  35. Replies
    135
    Views
    1,889

    Re: LED.OCX & Windows 11 Pro

    I fixed it. No subclassing needed. Just the following line in the Repaint event:



    mbFullRefresh = mbFullRefresh Or Not RunTime



    New version attached.
  36. Replies
    135
    Views
    1,889

    Re: LED.OCX & Windows 11 Pro

    Ahhh, I figured it out from your notes.

    Upon runtime, it all works fine ... so there's that.

    When you move the control, it's just not getting a refresh during design-time. If you...
  37. Replies
    135
    Views
    1,889

    Re: LED.OCX & Windows 11 Pro

    Also, it's always best to save your pictures as PNG files if you can do that. JPGs also work, but PNGs are better.
  38. Replies
    135
    Views
    1,889

    Re: LED.OCX & Windows 11 Pro

    Dave, these forums have a bug regarding attaching pictures. You have to go to "Go Advanced" (before posting) for it to always work correctly. And I can't see your pictures.
  39. Replies
    135
    Views
    1,889

    Re: LED.OCX & Windows 11 Pro

    I just looked and I forgot to put a "Caption" property in that post #18 version (to change the label's caption), but it might be a good exercise for you to figure out how to do that.

    Basically, a...
  40. Replies
    135
    Views
    1,889

    Re: LED.OCX & Windows 11 Pro

    Ahhh, yeah, I left you messages about how to get started with User-Controls. Both Eduardo and I sort of got carried away with this thing.

    The latest version is using a Windows graphing library...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width