Search:

Type: Posts; User: LaVolpe

Page 1 of 13 1 2 3 4

Search: Search took 0.45 seconds; generated 21 minute(s) ago.

  1. Replies
    24
    Views
    623

    Re: Problem with controls on an MDI Form

    I think the biggest difference is that MDI is a container. All child forms are contained within that MDI. Minimize the MDI, all child forms come off the screen too. Restore MDI, all child forms are...
  2. Replies
    18
    Views
    407

    Re: runtime error overflow

    "Thread Tools" menu near top of your first posting
  3. Replies
    24
    Views
    623

    Re: Problem with controls on an MDI Form

    MDI forms are not the only type of top level form. Any form that is not a child form is a top-level form.


    Technically it does, via a picture box.


    Hard to believe, but I've never used...
  4. Re: Why is there SetWindowLongA and SetWindowLongW in Windows API?

    @Elroy, you could pass ANSI string parameters As Long.
    But who would want to make that their standard, As Long vs As String, for ANSI?

    Notice, parameters in both APIs are As Long

    Private...
  5. Replies
    28
    Views
    1,987

    Re: [vb6] Fix Palette when IDE Manifested - AddIn

    Ah, gotcha. Like you, I was right clicking on the tree, adding files as needed, for the past several years. It's only been a week or so and I'm already "re-learning" the easier drag/drop method....
  6. Replies
    28
    Views
    1,987

    Re: [vb6] Fix Palette when IDE Manifested - AddIn

    Unsure if you were making a suggestion? :confused:
  7. Re: Why is there SetWindowLongA and SetWindowLongW in Windows API?

    Lots of "and... " posts, so I'll add another. I grouped Strings & UDTs below; even though Strings were talked about earlier.

    When using W type APIs, be very careful with any strings and UDTs...
  8. Replies
    18
    Views
    407

    Re: runtime error overflow

    simple really

    Private Function diff_Calc(ByRef r As clsRecord, ByVal detailRecordNum As Integer) As Variant

    Dim v1 As Long
    Dim v2 As Long

    v1 = Val(F4_Calc(r, detailRecordNum))
    If v1 = 0...
  9. Replies
    15
    Views
    414

    Re: Adjust font size

    IS method performs a QueryInterface call. Basically, VB is asking does ThatObject implement/inherit ThisObject or vice versa. In order to be true, at some point ThatObject must have been...
  10. Replies
    18
    Views
    407

    Re: runtime error overflow

    Didn't expect that. When you get the error, both v1 and v2 are zero. 0 divided by 0 gives you that error.

    You are going to need to step through some of your code and determine where in your f4/lp...
  11. Replies
    15
    Views
    414

    Re: Adjust font size

    See this msdn article.
    https://docs.microsoft.com/en-us/windows/win32/api/ocidl/nf-ocidl-ifont-setratio

    Just FYI. For DPI aware applications, I use the Font.SetRatio quite a bit, passing its...
  12. Replies
    18
    Views
    407

    Re: runtime error overflow

    Was thinking that also at first, but that would be a different error: division by zero
  13. Replies
    18
    Views
    407

    Re: runtime error overflow

    What variable type do your F4 & lp functions return?

    In your results file, jump to the bottom of the list. There are 2 line where only one value printed out. Look at the last entry and 8 lines...
  14. Replies
    19
    Views
    555

    Re: The titlebar with different colors

    Just a question of curiosity. Not sure why it's important that the titlebars are the same gradient/color when other things like the min/max/restore buttons are completely different, as are the...
  15. Replies
    18
    Views
    407

    Re: runtime error overflow

    Ok, but wanted to see those values when you get your error. That could help us explain to you why the error is occurring.
  16. Re: how do we know App is dpiAware applied currently?

    FYI: scalemode shouldn't be a player. If using properties Me.Width, etc, then that scalemode is always Twips.

    I am assuming you are not just aligning forms, you are aligning some component? What...
  17. Re: how do we know App is dpiAware applied currently?

    Not when I tested it otherwise I wouldn't have posted it. In fact, I found it to be visually ugly. The shadow from the borders made it appear like a solid fuzzy black line overlapping Form1 when...
  18. Replies
    18
    Views
    407

    Re: runtime error overflow

    post back the results from your Immediate Window (Ctrl+G), after you add these lines after your DIM statement:

    Debug.Print F4_Calc(r, detailRecordNum); Lp_Calc(r, detailRecordNum)
    If those...
  19. Replies
    24
    Views
    623

    Re: Problem with controls on an MDI Form

    Actually that dark space below the picturebox & where the child forms are confined to is another window, called the MDI Client. When you make the picturebox visible, that pushes the entire MDI Client...
  20. Re: how do we know App is dpiAware applied currently?

    Want to see something neat?

    Add the following to each form (just for testing)

    Private Const DWMNCRP_DISABLED = 1
    Private Const DWMNCRP_ENABLED = 2
    Private Const DWMWA_NCRENDERING_POLICY = 2...
  21. Re: how do we know App is dpiAware applied currently?

    Almost sounds like Win10 includes the shadowing whereas earlier versions did not?
    I'd be glad to take a look-see tomorrow after I get off work & get some sleep. Until then... maybe someone else...
  22. Re: how do we know App is dpiAware applied currently?

    Oh, one more question that will help me & others if they play with this in a bit. Is this a problem in just specific DPIs? or is it also a problem in standard/default 96 DPI (100%)?
  23. Re: how do we know App is dpiAware applied currently?

    Well, that is specific enough. I'll check back tomorrow morning to see if you have this resolved then. I won't have access to a VB box until then.

    In the mean time, is there any change if you show...
  24. Re: how do we know App is dpiAware applied currently?

    There are ways to determine if you are on any operating system. Though without a manifest declaring you are at least Win8.1 compatible, Windows may lie to you when on Win10 and say you are on Vista...
  25. Re: how do we know App is dpiAware applied currently?

    Being DPI aware, but not per-monitor aware, means you are "System DPI Aware". If your app moves to another monitor that has a different DPI setting than the one your app loaded up at, virtualization...
  26. Replies
    24
    Views
    623

    Re: Problem with controls on an MDI Form

    The Activate event of top-level forms, I believe, only applies when moving between other top-level forms in the same project. If you only have one top-level form, you probably are not going to get...
  27. Replies
    5
    Views
    274

    Re: Manifesting my Project

    I'm not on a VB box and won''t be until tomorrow morning.

    Now that you are manifested, there is additional information that is available and maybe can help explain what you are seeing?
    Edited: So...
  28. Replies
    31
    Views
    1,045

    Re: Custom Drawing of the ListView

    With old-style subclassing and an hWnd is subclassed multiple times (whether by your code or along with some compiled ocx), crashes are common because there is no linked-list of sorts to determine...
  29. Replies
    19
    Views
    555

    Re: The titlebar with different colors

    Definitely an option for MDI applications. That at least makes the child & parent have the same non-client look. Unfortunately, but now neither are themed. It's a shame we can't apply some API to the...
  30. Replies
    15
    Views
    414

    Re: Adjust font size

    Here's a possible solution, using built-in StdFont scaling

    Dim sngRatio As Single, oFont As IFont

    Set oFont = Picture1.Font

    ' next 2 lines are used should the font have already...
  31. Replies
    14
    Views
    625

    Re: Re PlanetSourceCode

    Way back, I was a regular on that site and that is where I actually gained most of my initial reputation. Won several monthly contests. As an reward, I think I accepted a couple CDs, but later opted...
  32. Replies
    19
    Views
    555

    Re: The titlebar with different colors

    I think the question is why is the MDI child form's non-client area (titlebar, borders, etc) drawn different than a normal form? Visual appearance isn't the only thing that is different. For example,...
  33. Replies
    24
    Views
    623

    Re: Problem with controls on an MDI Form

    Similar to what OptionBase1 suggested: Maybe create a menu on the MDI form where the menu items perform the execution of whatever those controls would do

    Or are you talking something like a...
  34. Replies
    31
    Views
    1,045

    Re: Custom Drawing of the ListView

    Suggest for testing with manifest
    1. Create a manifest and save it to disk in the same folder as your VB6.exe
    2. Name that manifest: VB6manifested.exe.manifest
    3. Copy your VB6.exe into the same...
  35. Re: [RESOLVED] Need Help Understanding VB6 Functions

    Ugh, couldn't see the forest through the trees ;)
    I removed that portion of the comments from my first reply
  36. Replies
    31
    Views
    1,045

    Re: Custom Drawing of the ListView

    6.0 is comctl32.dll version, not the ocx version. The way we get comctl32 6.0 into our process is via manifesting for common controls. And when that is done, then we also get the rectangle structures...
  37. Re: [RESOLVED] Need Help Understanding VB6 Functions

    Depends on how huge or small the line is, I would think.
  38. Replies
    31
    Views
    1,045

    Re: Custom Drawing of the ListView

    @fafalone. I think he is commenting with regards to re-usable code. In that context, we obviously wouldn't want to hardcode code page names.
  39. Re: Need Help Understanding VB6 Functions

    One suggestion. Place break points among the code. Then to see the values of current variables
    1. Use Immediate Window (Ctrl+G) & print out variable's value: Print mLine
    2. Use Locals Window (Menu:...
  40. Re: Need Help Understanding VB6 Functions

    @dday9

    Regarding IF structures; these are valid

    If condition = True Then doSomething
    ' no else wanted therefore not needed

    If condition=true Then doSomething Else doSomethingElse
    ' above...
Results 1 to 40 of 491
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width