Search:

Type: Posts; User: LaVolpe

Page 1 of 13 1 2 3 4

Search: Search took 1.14 seconds.

  1. Thread: Thanks....

    by LaVolpe
    Replies
    18
    Views
    415

    Re: Thanks....

    It's more purple than marroon; a deep purple -- like smoke on the water ;)
  2. Thread: Thanks....

    by LaVolpe
    Replies
    18
    Views
    415

    Re: Thanks....

    But when you've lived a 1/2 century and longer, sometimes you throw caution to the wind. Sammi's ride & my ride :)

    178796
  3. Thread: Thanks....

    by LaVolpe
    Replies
    18
    Views
    415

    Re: Thanks....

    Though the 1st part of your statement is true, I don't think the 2nd part is the case here. Many of us have known Sammi on this site for years & years. We know he's no spring chicken. We know he...
  4. Thread: Thanks....

    by LaVolpe
    Replies
    18
    Views
    415

    Re: Thanks....

    Good on you. Many of us that are a bit younger than you already have that check-engine-light lit
  5. Thread: Thanks....

    by LaVolpe
    Replies
    18
    Views
    415

    Re: Thanks....

    That's all? You're welcome.

    My mind went directly to a dark place when I saw the thread title; thinking something medical. And embedded into the 'thank you', a fairwell. Phew.
  6. Replies
    5
    Views
    258

    Re: DPI Aware question

    FYI: DPI virtualization on modern systems is not static. An app can move into and out of virtualization as DPI changes.

    Oh, regarding unmanifested apps. There is one gotcha & possibly another.
    ...
  7. Re: Problem with combo box with its Style property set to "0 - Dropdown combo"

    Here's a simple auto-fill type solution that will update the listindex as typing occurs. Not bullet proof, needs a bit of work. For example, try backspacing after typing the letters "ti"

    .. Combo1...
  8. Replies
    10
    Views
    312

    Re: Mouse move API problem.

    FYI: SetCursorPos simply moves the mouse, it doesn't add any mouse move events to active threads. Mouse_Event however does and those events are processed by the system as applicable, i.e., keeping...
  9. Replies
    5
    Views
    258

    Re: DPI Aware question

    Except XP. It didn't have manifests for awareness, system settings only.
  10. Replies
    5
    Views
    258

    Re: DPI Aware question

    Those can't really determine if you're app is virtualized, only if the system DPI is same as what VB's internal DPI is. In most cases when DPI > 150%, system DPI is not same as VB's internal DPI when...
  11. Re: Problem with combo box with its Style property set to "0 - Dropdown combo"

    When style is 0, simply typing an item into the cbo text box (or setting text via code) does not change its ListIndex value. On LostFocus or Validate, you might want to see if the new text exists in...
  12. Re: Proof of concept for handling DPI per monitor V2 transparently... or almost

    VB may be aware, but not all controls (ocxs) are. Many VB built controls and apps aren't even system-DPI-aware because coders do things like hardcode 15 twips per pixel. But that's the fault of the...
  13. Re: Change the text of the Common Dialog button

    The biggest difference between my version and fafalone's is that his uses a typelib and mine does not; but does allow subclassing and customizing not available via a typelib directly.
  14. Re: Proof of concept for handling DPI per monitor V2 transparently... or almost

    I've looked over you last few replies and can see some definite problems. I plan on playing with this over the weekend. Regarding the sizes and positions reported from the UCs to/from the form, there...
  15. Replies
    10
    Views
    312

    Re: Mouse move API problem.

    That's not quite descriptive.

    P.S. Why are you moving the mouse then using SetCursorPos. Can't believe that didn't trigger with me earlier. Use one or the other; definitely don''t use both.
    ...
  16. Replies
    5
    Views
    178

    Re: Click event

    Ensure AutoRedraw is true, or put that code in the picturebox's Paint event. Also, you don't need the parentheses
  17. Re: [RESOLVED] GDI Scaling, ImageLists, ListView

    You probably know, but just in case. LoadResPicture(bitmap) returns DDB. Unlikely in modern systems using 32bit resolution, but that could change image colors. Don't know if that type of scenario...
  18. Replies
    10
    Views
    312

    Re: Mouse move API problem.

    parameters are in wrong order

    mouse_event MOUSEEVENTF_MOVE, 0, 0, x, y
    should be:

    mouse_event MOUSEEVENTF_MOVE, x, y, 0, 0
    look again at the parameters in the API declaration.
  19. Replies
    5
    Views
    178

    Re: Click event

    Use a picturebox instead of a textbox? A picturebox can be made to look exactly like a textbox. And you can add text to a picturebox via its .Print method and positioning the text via its .CurrentX &...
  20. Re: What good is a command button's Value property?

    Click is an event, Value is a method/property. Standard code flow does not call events, it raises events and calls methods.

    It has one advantage. You can call the click from outside the form,...
  21. Replies
    6
    Views
    225

    Re: RtlMoveMemory ByVal 0, ByVal 1, 1

    If you google using these terms, your first hit should get you the bas-module I created: lavolpe SetUnhandledExceptionFilter

    You can look over the module comments. Looks like I wrote that back in...
  22. Re: Change the text of the Common Dialog button

    There's three styles now: oldest style (pre-XP?), old-style (pre-Vista), current style (Vista+). Here are some comments from another site. I'm not on a VB box now, so can't verify myself, but those...
  23. Replies
    6
    Views
    225

    Re: RtlMoveMemory ByVal 0, ByVal 1, 1

    I played with that exception filter API decades ago. I managed to get it work most of the time, but not always. It definitely reduced the crashes even with CopyMemory/RtlMoveMemory blunders. However,...
  24. Re: Proof of concept for handling DPI per monitor V2 transparently... or almost

    Given up on trying to get the double move to stop. On my system, the double move is very evident. On a newer system, the double move is so fast that if you weren't paying attention, you wouldn't even...
  25. Re: Change the text of the Common Dialog button

    Only way I really recognized it was due to the combobox near the "Make" button. GetOpenFileName can still be used, but unfortunately, once the OFNHookProc is in play, the dialog goes back to...
  26. Re: Change the text of the Common Dialog button

    That's the modern equivalent, available since Vista: IFileDialog

    There are several variations of that in the code bank. Here is mine:...
  27. Re: Proof of concept for handling DPI per monitor V2 transparently... or almost

    Probably using GDI-scaling?

    In task manager, details tab, right click on one of the tabs and choose "Select Columns". Scroll more towards bottom of popup window and find/check "DPI awareness"....
  28. Re: Proof of concept for handling DPI per monitor V2 transparently... or almost

    But not in the cmd prompt window, which is unaware. But that's a Windows app & they may have workarounds built in. I'm curious as to why it appears on my machine a constant offset of -8, -31,...
  29. Re: Proof of concept for handling DPI per monitor V2 transparently... or almost

    So how is your UC going to be organized? One for the entire project, hosted on the main form? One per form?
  30. Re: Proof of concept for handling DPI per monitor V2 transparently... or almost

    The form creation must occur before the controls, correct? Well, once you get that CBT hook notification that a top-level window is being created, couldn't you set thread awareness at that point,...
  31. Re: Proof of concept for handling DPI per monitor V2 transparently... or almost

    Wonder what those magic offset numbers are? We figure that out and the form double-moving-issue is history.

    P.S. You chose to create controls dynamically in unaware context while I used a...
  32. Re: Proof of concept for handling DPI per monitor V2 transparently... or almost

    You got that with an unaware-context? I didn't see WM_GETDPISCALEDSIZE or WM_DPICHANGED in my tests. Or are those from moving to another monitor while unaware too?
  33. Re: Proof of concept for handling DPI per monitor V2 transparently... or almost

    That message didn't come to VB. I was using Spy++ on the form.
  34. Re: Proof of concept for handling DPI per monitor V2 transparently... or almost

    The values for WM_WINDOWPOSCHANGING were correct in every message & several were triggered. The X,Y and size didn't change in any one of them. But a WM_MOVE was posted with the X,Y offset to what...
  35. Re: GDI Scaling, ImageLists, ListView

    Leandro had no issues with non-square images but I did. It might have been something I did during my testing. I never went back to try to replicate that problem
  36. Re: Proof of concept for handling DPI per monitor V2 transparently... or almost

    While you were replying, I edited my reply. Your notes didn't register right away.

    Maybe that double sizing due to unawareness is related to GetWindowPlacement values? Might play with...
  37. Re: GDI Scaling, ImageLists, ListView

    Gotcha & sorry for butchering your name in my last reply :eek:

    So, you are suggesting to scale the image larger, within the stdPicture, but leave the ImageList ImageWidth/Height properties the...
  38. Re: Proof of concept for handling DPI per monitor V2 transparently... or almost

    Oh, recall when we were theorizing that we could display some forms unaware while other forms could be PMV2. Not so simple, at least not in VB.

    That jumping around doesn't look professional at...
  39. Re: Proof of concept for handling DPI per monitor V2 transparently... or almost

    See my edited reply also. In principle? Yes. Practical, not yet. Likely gonna need to manually set the X,Y position of such controls after DPI changes and set it via APIs.
  40. Re: Proof of concept for handling DPI per monitor V2 transparently... or almost

    Some odd graphics artifacts and other observations

    - @ 100% dpi, run project & click button to use SetThreadDpiHostingBehavior
    - Change dpi to 150% (modern Win10 doesn't require logoff)
    -...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width