Search:

Type: Posts; User: dilettante

Page 1 of 13 1 2 3 4

Search: Search took 1.20 seconds.

  1. Replies
    10
    Views
    284

    Re: Problem with controls on an MDI Form

    The MDIForm class has a Picture property you can assign to.

    But if you want to overlay text on an image you'll want to use some "canvas" class that you can load an image into and then draw text on...
  2. Replies
    5
    Views
    206

    Re: Manifesting my Project

    Sorry. I should have read closer and realized this is yet another thread in your quest to turn a ListView locked in report mode into an MSHFlexGrid substitute. I'll bow out.
  3. Replies
    5
    Views
    206

    Re: Manifesting my Project

    You are using CheckBox controls incorrectly. You probably want something more like:


    Private Sub Check3_Click()
    gOnZo = Check3.Value = vbChecked
    End Sub
  4. Replies
    6
    Views
    241

    Re: Part of a form to be scrollable

    Or use Frame controls. They're lighter weight than a PictureBox.
  5. Replies
    6
    Views
    188

    Re: Adjust font size

    StdFont.Size is always in Points. Never Pixels.

    You also "Me, Me, Me" a lot but then you omit it from Cls. Weird.
  6. Replies
    16
    Views
    409

    Re: The titlebar with different colors

    It isn't just the colors, MDI Child windows also still get the antique-looking Aero styling.
  7. Re: [RESOLVED] Need Help Understanding VB6 Functions

    Mid() and Mid$() are implemented using property-like syntax for both Get and Let.

    Perfectly valid:


    Y = Mid$(Z, 2000, 3)
    Mid$(X, 15, 3) = Y
  8. Re: Need Help Understanding VB6 Functions

    Not true. It can read lines from a CR-delimited file (for compatibility with old Apple standards) just fine.

    Though you're right that standards-breaking LF-delimited text lines are another issue....
  9. Replies
    16
    Views
    409

    Re: The titlebar with different colors

    I think it is as simple as MDI being deprecated, and the plumbing that implements it just not being updated. They keep it working but that's about it.

    You see the same thing in C++ and Delphi...
  10. Replies
    10
    Views
    284

    Re: Problem with controls on an MDI Form

    Sounds like your PictureBox should be yet another MDI Child Form instead. Perhaps you want something like an optionally-dockable tool window instead of permanently docking that group of controls,...
  11. Replies
    4
    Views
    163

    Re: Range extender for Xfinity router

    Er, the cheaper units do have less RAM and less powerful processors, which can limit the number of simultaneous clients they can handle to ~ 20 or so. But many home routers can poop out at 20 to 40...
  12. Replies
    4
    Views
    163

    Re: Range extender for Xfinity router

    WiFi repeaters work, but they can have their troubles too. That might be why "mesh router" packages have become popular: one vendor, preconfigured to work in a group.

    If you are relying on an...
  13. Replies
    10
    Views
    490

    Re: [RESOLVED] Registry Name from Handle

    The only thing iffy remaining is doing signed arithmetic in a pointer expression. That's really rarely an issue though in a normal VB program without LARGEADDRESSAWARE linking.
  14. Replies
    16
    Views
    908

    Re: [VB6] GDI Path clipping

    Some cases like painting from an image dropping out its transparency color can more easily be accomplished using TransparentBlt() instead.

    That's not the same as using a second "cookie cutter" or...
  15. Replies
    16
    Views
    908

    Re: [VB6] GDI Path clipping

    Yes, these are very basic operations for the most part. Even the MaskBlt() examples are pretty trivial.

    Perhaps there is a simpler way to extract a mask from an image? I'm also not sure whether...
  16. Re: Form border width on Win10 vs Win7

    Probably needs a call to UxTheme.dll's GetThemeSysSize()?
  17. Replies
    16
    Views
    908

    Re: [VB6] GDI Path clipping

    Alligator on the floor? We don't want that. Put him back in the swamp!

    And the reeds stick up there so we'll want to poke those up as well:


    178162
  18. Replies
    4
    Views
    232

    Re: Manifest OCX

    By "manifested" you seem to be trying to say you want the Common Controls 6 assembly selected for your OCX separately from its clients.

    Assembly selection is normally per-process so I'm not sure...
  19. Replies
    16
    Views
    908

    Re: [VB6] GDI Path clipping

    But having the 'gator stand on his mask color is pretty tacky, isn't it? Let's give him a floor to stand on in that hole:


    178160

    Now we've combined a 4th image into the whole (no pun...
  20. Replies
    16
    Views
    908

    Re: [VB6] GDI Path clipping

    Here's another technique, based on MaskBlt().

    We have a backdrop image (large pastel bars), a star mask "hole" image, and an alligator. We put the alligator onto the backdrop "poking" through a...
  21. Replies
    3
    Views
    211

    Re: viewing objects in the VB6 IDE

    I suppose you might cobble something together to be invoked from the Immediate Window, but there are many things that can go wrong.

    You wouldn't want to disturb the current row pointer, so you...
  22. Replies
    9
    Views
    311

    Re: Foreign Languages

    I can imagine. Probably looking for more insults to hurl at me in the Chit Chat.
  23. Replies
    9
    Views
    311

    Re: Foreign Languages

    I think DBCS languages are probably a bigger can of worms.
  24. Replies
    9
    Views
    311

    Re: Foreign Languages

    I don't read Hebrew and cribbed those text snippets from some web site. Apologies if they spell out something obscene!
  25. Replies
    9
    Views
    311

    Re: Foreign Languages

    It can be hard to track down the CharSet values.

    The basic trick is to "misencode" the data... such that upon use the mangled "Unicode" in the String gets translated back to "ANSI" with the target...
  26. Replies
    16
    Views
    908

    Re: [VB6] GDI Path clipping

    There is almost no end to the stunt effects you can accomplish, and some are quite simple to achieve:


    Option Explicit

    Private Sub Form_Load()
    PaintPicture Picture1.Picture, 0, 0
    ...
  27. Replies
    9
    Views
    311

    Re: Foreign Languages

    There are a few stunts we can sometimes use:


    Option Explicit

    Private Sub Control2Hebrew(ByRef Control As Control)
    Const HEBREW_CHARSET As Integer = 177

    Control.Font.Charset =...
  28. Replies
    1,300
    Views
    42,474

    Re: Corona virus, China major city lockdowns, etc.

    It was funny how hard they tried to upsell him when he bought a pair. He even admitted somebody compared him to Hannibal Lecter.
  29. Replies
    1,300
    Views
    42,474

    Re: Corona virus, China major city lockdowns, etc.

    Practical, good for a chuckle, or a complement to those clown shoes you've been wanting to get more use out of?


    https://www.youtube.com/watch?v=dDnw_SUHjCk
  30. Replies
    100
    Views
    2,104

    Re: Hong Kong, Portland and the Moral Low Ground

    Oh, I get it.

    You parrot any nonsense that fits your narrative and reject any facts that don't Then you turn and start parroting additional nonsense hoping to cover your exposed lies. When that...
  31. Replies
    16
    Views
    908

    Re: [VB6] GDI Path clipping

    Here's another easy effect, though perhaps an obvious one: "pixelation."


    Option Explicit

    Private Enum StretchBltModes
    [_SBMFAILED] = 0
    BLACKONWHITE = 1 'Performs a Boolean AND...
  32. Replies
    10
    Views
    490

    Re: Registry Name from Handle

    Shouldn't:


    GetKeyNameFromHandle = Space$(lLength \ 2)

    be:


    GetKeyNameFromHandle = Space$((lLength - 4) \ 2)
  33. Replies
    13
    Views
    409

    Re: msinfo32.exe (XP to Windows 10)

    No idea why it makes sense for a program to do this at all, but:


    Private Sub Command1_Click()
    Shell "msinfo32"
    End Sub

    All done.

    It is already on the Path (environment variable)...
  34. Replies
    100
    Views
    2,104

    Re: Hong Kong, Portland and the Moral Low Ground

    What was insincere about posting two examples of Federal cops in Portland where you can see their uniforms identify them as police?

    Bullshit arguments are falling like flies in this thread.
  35. Replies
    100
    Views
    2,104

    Re: Hong Kong, Portland and the Moral Low Ground

    Actually reason has prevailed.

    Portland has requested that the Oregon State Police come in to defend Federal property against the criminals and eventually the DHS cops won't have to be there in...
  36. Replies
    100
    Views
    2,104

    Re: Hong Kong, Portland and the Moral Low Ground

    That was a cute bit. The movie is brimming with them. You can still find those who haven't seen it, and watching with them was always fun.

    Not so much now that we're all barricaded at home. ...
  37. Re: [RESOLVED] Call Hide() but the Form is still activated on Win10

    Not sure where I got it from. I think it was some old Microsoft example written in C within the MSDN documentation.
  38. Replies
    1,300
    Views
    42,474

    Re: Corona virus, China major city lockdowns, etc.

    You might be able to grow salad greens at least. And get in several crops of them a season. Leaf lettuce, mustard greens, baby kale, etc.

    And usually people can get decent green onions. There...
  39. Replies
    10
    Views
    378

    Re: Shape Control issue

    Drawing this "border" works fine here:


    Option Explicit

    Private Sub Repaint()
    AutoRedraw = True
    Line (0, 0)-(ScaleWidth - 1, ScaleHeight - 1), , B
    AutoRedraw = False
    Set...
  40. Replies
    1,300
    Views
    42,474

    Re: Corona virus, China major city lockdowns, etc.

    I assume you are talking about green beans/string beans rather than dry beans. Most people don't really maintain enough garden space to make drying beans for storage practical.

    But you could...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width