Search:
Type: Posts; User: LaVolpe
Search:
Search took 1.41 seconds.
-
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...
-
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.
-
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...
-
@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...
-
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...
-
@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....
-
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)...
-
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...
-
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...
-
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...
-
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...
-
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...
-
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...
-
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...
-
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...
-
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.
...
-
@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...
-
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...
-
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...
-
Either restucture or create a new array and transfer old array items to new in a loop, after first sizing the new array.
-
http://www.differencebetween.info/difference-between-trapezium-and-parallelogram#:~:text=Difference%20between%20Trapezium%20and%20Parallelogram%20Key%20Difference%3A%20A,quadrilateral%20that%20has%20t...
-
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...
-
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...
-
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...
-
ImageList_BeginDrag m_lIL, 0, 10, 10
Have you played with the last 2 parameters above? Per MSDN:
-
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...
-
One of my favorite sites:
http://www.jose.it-berater.org/gdiplus/iframe/index.htm
-
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,...
-
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...
-
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...
-
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...
-
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...
-
So, including the ".dll" in the declaration fixed the crashing?
-
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...
-
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...
-
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%?
-
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...
-
Out of curiosity, if LV style is default (no checkboxes), does it work as expected?
-
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"...
-
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...
|
Click Here to Expand Forum to Full Width
|