Search:

Type: Posts; User: LaVolpe

Page 1 of 13 1 2 3 4

Search: Search took 100.86 seconds; generated 8 minute(s) ago.

  1. Replies
    7
    Views
    256

    Re: Listview Row Color

    Possible? Yes.

    You can subclass the listview and set fore/back colors. One example found here. More examples exist & recommend experimenting.

    You can use Krool's common-controls-replacement...
  2. Re: How is the behaviour of VB6 compiler while comparing two string?

    When talking about equality/inequality, i.e., Str1=Str2 or Str1<>Str2, then first test should probably be string length. If strings are not the same size; then strings cannot be equal.
  3. Replies
    25
    Views
    879

    Re: IPicture interface methods

    IPicture can't support all image formats, it supports bitmaps, icon/cursor, and metafiles. JPGs are converted to bitmaps, GIFs (1st frame) are converted to bitmaps with a transparency mask/color...
  4. Re: VB6: GDIPLUS - how change pixels colors on a faster way

    @passel. The issue isn't necessarily colors as much as efficiency I would think.

    We can iterate the segments of a path, in order added to the path. We can use GdipDrawLine to render the individual...
  5. Replies
    25
    Views
    879

    Re: IPicture interface methods

    You cannot load a PNG via VB's LoadPicture. VB doesn't support PNG/TIFF and some other image formats/subformats.

    If you search the forum, you will find lots of examples of getting a PNG into a...
  6. Re: [RESOLVED] VB6 EXE does not work, but runs from VB6 IDE

    @Niya. Agree except I think @8 is correct vs. @6
    Those DLLImport samples were extracted from a .Net module per the OP. Well a .Net Integer/UInteger = VB Long where a .Net Short/UShort = VB Integer....
  7. Re: [RESOLVED] VB6 EXE does not work, but runs from VB6 IDE

    Take a closer look at the alias in the declaration for example:

    Declare Function mk_Msr_AutoDarkCtrl Lib "mkusb.dll" Alias "_mk_Msr_AutoDarkCtrl@8" _
    (ByVal i As Integer, ByVal ctl As Long)...
  8. Re: VB6: GDIPLUS - how change pixels colors on a faster way

    I once thought about warping images via GDI+ paths. As we know, we can't do it directly because a path can't be created from an image like a brush can. However, we could dissolve the image into...
  9. Re: Help with an error in a simple mouse simulation script

    Simply call your recurring routine from within a timer.

    Inside the timer event:
    1. Disable timer to prevent unwanted re-entrance due to your DoEvents calls
    2. Call your initializeTrainer...
  10. Replies
    36
    Views
    3,057

    Re: [vb6] Per-Monitor DPI Awareness Framework

    That fact gives me something to look at and research. Per-monitor awareness does not apply to Win7 anyway. This means that possibly the framework, in your case, is taking some actions when it...
  11. Replies
    36
    Views
    3,057

    Re: [vb6] Per-Monitor DPI Awareness Framework

    Using your Project1.exe, both @ 100% and 125%, I cannot replicate your screenshots. I am using Win10

    1. I ran the exe @ 100% DPI. It maximized and looked similar to your 1st image in your...
  12. Re: vb6: how use an user type parameter on a class function\sub?

    This seems the easiest solution and a "Friend" scope isn't needed either in that case. In addition, if the class has a privately declared POINTL (or whatever), that DrawImage can Dim its own UDT from...
  13. Re: Help with an error in a simple mouse simulation script

    Don't see anything that would indicate memory leaks related to GetDC(); at least not with the code you posted in #10 above.

    However, you are basically creating an infinite loop and stack...
  14. Replies
    36
    Views
    3,057

    Re: [vb6] Per-Monitor DPI Awareness Framework

    Try it without making the form start-up as maximized.

    There is an issue otherwise and I don't immediately see the cause. The problem appears to be related to messages related to moving into/out...
  15. Replies
    36
    Views
    3,057

    Re: [vb6] Per-Monitor DPI Awareness Framework

    That doesn't help any. There appears to be other things going on in your tests. For example, the option buttons don't have the same Left property value any longer.

    It looks like you are manually...
  16. Re: VB6: GDIPLUS - how change pixels colors on a faster way

    Valuable reference for GDI+ functions: http://www.jose.it-berater.org/gdiplus/iframe/index.htm
    Looking at GdipSetImageAttributesRemapTable the last parameter is an array of COLORMAP structures.
    ...
  17. Replies
    65
    Views
    34,144

    Re: [VB6] Manifest Creator II

    @BobbyAxelrod112. Not really sure what the question is. The steps are fairly straightforward
    1. Create a valid manifest file
    2. Add that manifest to a resource file and rename the resource item, if...
  18. Replies
    36
    Views
    3,057

    Re: [vb6] Per-Monitor DPI Awareness Framework

    A more complete description would be helpful; maybe upload a test project and steps to reproduce the problem. I have some guesses, but don't want to confuse the issue by just blurting them out. Need...
  19. Re: WM_SETREDRAW being incredibly slow for ListView

    This is going to sound odd and is just a curiosity thing... Is there a significant difference when you run your project elevated? Or are your results already from an elevated process? I was...
  20. Replies
    7
    Views
    371

    Re: Truncate the Array

    Either restucture or create a new array and transfer old array items to new in a loop, after first sizing the new array.
  21. Re: how can i get the GDI+ declaration functions\types?

    http://www.differencebetween.info/difference-between-trapezium-and-parallelogram#:~:text=Difference%20between%20Trapezium%20and%20Parallelogram%20Key%20Difference%3A%20A,quadrilateral%20that%20has%20t...
  22. Replies
    7
    Views
    371

    Re: Truncate the Array

    Reconsider how you are dimensioning it. You can only resize a multidimensional array on its last dimension while using the Preserve keyword.

    Dim myarray (110,2) -- won't work for you
    Dim myarray...
  23. Re: how can i get the GDI+ declaration functions\types?

    If the image file cannot be opened exclusively by GDI+ (i.e., open it and lock it), then GdipLoadImageFromFile fails. The error code of 3 does not always mean "out of memory". It seems that GDI+ uses...
  24. Re: Help with an error in a simple mouse simulation script

    You still have code where you are calling GetDC but may not be calling ReleaseDC.
    1) initializeTrainer
    2) Timer_Logout_Timer

    In both of those routines, your ReleaseDC call is inside an IF...
  25. Re: LVM_CREATEDRAGIMAGE truncating half the item

    ImageList_BeginDrag m_lIL, 0, 10, 10
    Have you played with the last 2 parameters above? Per MSDN:
  26. Replies
    4
    Views
    289

    Re: LVS_OWNERDATA and sorting

    The only project where I use virtual listview & sort, the data is not recordset-bound. In my case, the items are initially sorted when read from unsorted source. As suggested, use a fast sorting...
  27. Re: how can i get the GDI+ declaration functions\types?

    One of my favorite sites:
    http://www.jose.it-berater.org/gdiplus/iframe/index.htm
  28. Replies
    21
    Views
    600

    Re: Read background color of a bitmap

    As dilettante asked, what is the goal?

    For example, "PNG" clipboard format is not standard from what I've read. In other words, there is no guarantee it will exist and no guarantee if it exists,...
  29. Replies
    21
    Views
    600

    Re: Read background color of a bitmap

    With image formats that support transparency, you would parse the format to determine a specific pixel location that is 100% transparent. Then you would locate that pixel position in the rendered...
  30. Replies
    21
    Views
    600

    Re: Read background color of a bitmap

    without knowing if transparency can even be applied, this is kind of a question with no good answer.

    For example, look at this image:
    1) If black is "transparent", you see a white vase
    2) If...
  31. Replies
    21
    Views
    600

    Re: Read background color of a bitmap

    A standard bitmap on the clipboard? Out of luck. Any color you choose, via pixel location or color-usage-count, is a guess at best. If you know the content of the bitmap, then you can theoretically...
  32. Replies
    21
    Views
    600

    Re: Read background color of a bitmap

    No, unless you know a pixel offset or know the 'content' of the bitmap.

    Otherwise if image content is unknown, then how would one define background color? You cannot just assume it is the...
  33. Replies
    21
    Views
    1,005

    Re: Problems with IDE and W10

    So, including the ".dll" in the declaration fixed the crashing?
  34. Replies
    21
    Views
    1,005

    Re: Problems with IDE and W10

    What happens if you you declare it like one of these two:

    Private Declare Function APIGetCurrentThreadId Lib "kernel32" Alias "GetCurrentThreadId" () As Long
    Private Declare Function...
  35. Replies
    12
    Views
    618

    Re: VB6 Draw Smooth Text

    If dilettante's suggestion does not fix the problem...


    Compare only at 100% unless your IDE (or compiled exe) is manifested as DPI-aware and/or scales fonts. If your screenshot is from a non-DPI...
  36. Replies
    12
    Views
    618

    Re: VB6 Draw Smooth Text

    DPI was asked about, but not answered. Are you having problems at all DPI settings, i.e., 100%, 125%, etc, or just DPI settings above 100%?
  37. Replies
    21
    Views
    1,005

    Re: Problems with IDE and W10

    32/64 bit shouldn't be a problem since VB runs in a 32 bit process, even on 64 bit machines. There really isn't a lot of information to go on from your description though.

    Many IDE issues can be...
  38. Re: LVM_CREATEDRAGIMAGE truncating half the item

    Out of curiosity, if LV style is default (no checkboxes), does it work as expected?
  39. Re: Can you refer to a recordset by a variable rather than explicitly?

    You could also use a collection, i.e.,

    Dim colRS As Collection ' declared form-level or module-level

    If colRs Is Nothing then Set colRs = New Collection
    colRs.Add rsCustomersBM, "BM"...
  40. Replies
    39
    Views
    1,641

    Re: Load image into STATIC control Win32

    Won't that cause a memory leak.

    In fact, I got the code working, but after a couple of dozens of draging operations, the screen freezes probably a symptom of a memory leak somewhere... This issue...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width