PellesC port of Mctrl by Martin Mitas (quick & dirty)

Started by frankie, February 02, 2015, 12:13:41 AM

Previous topic - Next topic

frankie

This is a quick and dirty port of controls library from Martin Mitas.
It is a nice lib, but a little bit bloated for my preferences.
I already cut away something, and when I'll have time I'll change something else...  ;)
As usual because the size is large I've loaded it in two pieces.

P.S. Use 7Zip to extract files!
"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide

frankie

#1
Second chunk... Use 7Zip to extract!

P.S. Here you'll find also a newer version of Uxteme.h than that shipped with PellesC V8.
"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide

czerny

I can not open your zips. 7zip doesn't like them and the XP buildin unzipper is only able to extract view of them.

frankie

#3
I used a different tool, that probably is not compatible.  >:(
Now I have reloaded files using the more standard and easily available 7Zip.
I'll modify also teh SQLite64 that maybe have the same problem even if no comments were posted. About this I would add a word about contributions: who spend time to make something available to the others get no reward, so it would be polite at least to thank for that posting a replay. Even negative comments are welcome because could help to make a better job.
The silence is discomforting...
"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide

czerny

I have made a quick test (XP SP 3):

Everything compiles ok (could not test 64-bit code).

My virus scanner says that 'ex_html' is affected by 'Suspicious.Cloud.5'.
The expand button in ex_expand is not visible.
ex_menubar looks strange.

frankie

#5
I think this is an XP problem with themes.
Below you can see as they appears on 7.
Anyway the library is a little bit messed up, I just made it compile under PellesC :(
I'll fix it someway when I'll have time ...

P.S. My kaspersky says no viruses here...
"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide

czerny

I have usually klassic style switched on. If I switch to XP-style, the expand example is ok, I don't know if the control is designed to work in klassic style too.
The second test example is broken in XP-style too.

frankie

"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide

czerny

There are manifests already included.

I am at home now and tried to compile this with Pelles 7 RC 4 and win2k.

GdiAlphaBlend is not found!
Should be in wingdi.h but it isn't.
It is not in the Pelles C 8 header files, too!
I wonder, why the project compiled with Pelles C 8.

Another problem. I am not sure if this was ok with XP. In ex-treelist2 the background transparency with the yellow icons is not handled.

Bitbeisser

#9
Quote from: czerny on February 02, 2015, 08:39:23 AM
I can not open your zips. 7zip doesn't like them and the XP buildin unzipper is only able to extract view of them.
7-Zip 9.38 works just fine for me...

Windows build-in ZIP extractor doesn't work for split archive files to begin with, regardless of which Windows version you are using...

Ralf

czerny

One of the errors in MCTRL are icons with not working trancparency!
I am trying to collect informations about image trancparency in the windows environment.

There is the rule, that the color of the upper left pixel is the trancparency color.
I have also found the rule, that the magenta parts of the image are transparent.
Last but not least are there 32-bit icons/images with alpha channel.

In Pelles C's icon editor there is a special color named screen color and in 16 color mode a special pixel with a cross in it (not clear, how to set such a pixel).

Can someone bring some light on this, please? Which OS supports which methode?

frankie

Quote from: czerny on February 02, 2015, 05:45:58 PM
There are manifests already included.

I am at home now and tried to compile this with Pelles 7 RC 4 and win2k.

GdiAlphaBlend is not found!
Should be in wingdi.h but it isn't.
It is not in the Pelles C 8 header files, too!
I wonder, why the project compiled with Pelles C 8.

Another problem. I am not sure if this was ok with XP. In ex-treelist2 the background transparency with the yellow icons is not handled.
In version 8 Pelle updated the headers, moreover some definitions depends on WINNT version.
Mctrl compiles some parts only if os version is >=600, many thing in Mctrl were not available at time of Win2k...
"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide

czerny

Quote from: frankie on February 03, 2015, 12:07:52 PM
In version 8 Pelle updated the headers, moreover some definitions depends on WINNT version.
Mctrl compiles some parts only if os version is >=600, many thing in Mctrl were not available at time of Win2k...
'many things'? What do you mean exactly? AlphaBlend etc. is very old (win98 I think). And background transparency of icons is not a windows 8 feature!

frankie

Quote from: czerny on February 03, 2015, 02:29:11 PM
'many things'? What do you mean exactly? AlphaBlend etc. is very old (win98 I think). And background transparency of icons is not a windows 8 feature!
Many things related to themes, that were optional in XP
"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide

czerny

Which of the problems, we have found so far, are related to themes?