NO

Author Topic: PellesC port of Mctrl by Martin Mitas (quick & dirty)  (Read 11348 times)

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 2113
PellesC port of Mctrl by Martin Mitas (quick & dirty)
« on: February 02, 2015, 12:13:41 AM »
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!
« Last Edit: February 02, 2015, 11:03:10 AM by frankie »
"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 2113
Re: PellesC port of Mctrl by Martin Mitas (quick & dirty)
« Reply #1 on: February 02, 2015, 12:14:16 AM »
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.
« Last Edit: February 02, 2015, 11:03:53 AM by frankie »
"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide

czerny

  • Guest
Re: PellesC port of Mctrl by Martin Mitas (quick & dirty)
« Reply #2 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.

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 2113
Re: PellesC port of Mctrl by Martin Mitas (quick & dirty)
« Reply #3 on: February 02, 2015, 11:05:16 AM »
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...
« Last Edit: February 02, 2015, 11:20:01 AM by frankie »
"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide

czerny

  • Guest
Re: PellesC port of Mctrl by Martin Mitas (quick & dirty)
« Reply #4 on: February 02, 2015, 12:05:54 PM »
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.

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 2113
Re: PellesC port of Mctrl by Martin Mitas (quick & dirty)
« Reply #5 on: February 02, 2015, 12:45:32 PM »
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...
« Last Edit: February 02, 2015, 12:48:25 PM by frankie »
"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide

czerny

  • Guest
Re: PellesC port of Mctrl by Martin Mitas (quick & dirty)
« Reply #6 on: February 02, 2015, 03:25:58 PM »
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.

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 2113
Re: PellesC port of Mctrl by Martin Mitas (quick & dirty)
« Reply #7 on: February 02, 2015, 04:12:02 PM »
Try adding a manifest resource.
"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide

czerny

  • Guest
Re: PellesC port of Mctrl by Martin Mitas (quick & dirty)
« Reply #8 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.

Offline Bitbeisser

  • Global Moderator
  • Member
  • *****
  • Posts: 772
Re: PellesC port of Mctrl by Martin Mitas (quick & dirty)
« Reply #9 on: February 02, 2015, 07:01:42 PM »
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
« Last Edit: February 02, 2015, 07:04:38 PM by Bitbeisser »

czerny

  • Guest
Re: PellesC port of Mctrl by Martin Mitas (quick & dirty)
« Reply #10 on: February 03, 2015, 08:05:30 AM »
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?

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 2113
Re: PellesC port of Mctrl by Martin Mitas (quick & dirty)
« Reply #11 on: February 03, 2015, 12:07:52 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

  • Guest
Re: PellesC port of Mctrl by Martin Mitas (quick & dirty)
« Reply #12 on: February 03, 2015, 02:29:11 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!

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 2113
Re: PellesC port of Mctrl by Martin Mitas (quick & dirty)
« Reply #13 on: February 03, 2015, 02:59:18 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

  • Guest
Re: PellesC port of Mctrl by Martin Mitas (quick & dirty)
« Reply #14 on: February 03, 2015, 03:23:58 PM »
Which of the problems, we have found so far, are related to themes?