1. Size of the MonthCalendar
- Posted by sergelli Jun 22, 2013
- 2179 views
Hello
I use MonthCalendar inside an old program.
it has worked well with Eu311
To adjust the size of the calendar, it was sufficient to change the window size and the font size, like this...
setFont(id,"Courier New",12,Bold)
...and the size of the calendar, was also changed.
Now, I did some implementations using resources EU4 and is experiencing a problem.
When using Eu4, nothing happens if the font size is changed and the calendar is showing up with a very small size
How do I change the size of a calendar, with EU4?
Thanks in advance
2. Re: Size of the MonthCalendar
- Posted by sergelli Jun 23, 2013
- 2140 views
In addition: The problem is occurring only on Windows Seven.
I have other machines working with Windows XP and Wine, in them is possible to adjust the size of the calendar.
Anyone know how I should do to inform the calendar work well with Windows Severn? Am I doing something wrong?
3. Re: Size of the MonthCalendar
- Posted by jimcbrown (admin) Jun 23, 2013
- 2141 views
In addition: The problem is occurring only on Windows Seven.
I have other machines working with Windows XP and Wine, in them is possible to adjust the size of the calendar.
Anyone know how I should do to inform the calendar work well with Windows Severn? Am I doing something wrong?
Hmm... I see conflicting information here.
This says it's a simple fix:
But these say it's by design and can't be fixed.
4. Re: Size of the MonthCalendar
- Posted by sergelli Jun 23, 2013
- 2143 views
What Hell would is this Microsoft ! ? :)
On the other hand, the problem does not occur by running the program with Eu311, even using Windos Seven
Do not have a simple solution, adjusting the EU4? ?
5. Re: Size of the MonthCalendar
- Posted by andi49 Jun 24, 2013
- 2116 views
hi
What Hell would is this Microsoft ! ? :)
On the other hand, the problem does not occur by running the program with Eu311, even using Windos Seven
Do not have a simple solution, adjusting the EU4? ?
As far as i know this problem is with the Visual Styles that come with WinXP and later.
The EU3.x binaries come without an 'manifest.xml' compiled in to the resources.
So Visual Styles are disabled by default.
The Eu4.x binaries come with Visual Styles enabled by default.
Visual Styles change the appearence of the Controls (make them look nicer, maybe...)
and they olso change the way they are controlled.
You, can proof this if you translate (compile, not bind) your program and check if it works.
If you like to handle them the old way you have the option to built Eu4.x binaries without the 'manifest.xml' resource.
But then your programs may look a little oldfashioned (like with Eu3.x).
My tinewg.exw has a function SetWindowTheme(). With this you can disable Visual Styles for individual Controls.
At least for me it worked for the MonthCalender Control.
You should be able to rip it off tinewg and use it for your program.
Andreas
6. Re: Size of the MonthCalendar
- Posted by BRyan Jun 24, 2013
- 2060 views
I think this whole problem came about because of different versions of comctrl.dll winxp uses a different version of this DLL for month calendar class. Win 7 and Vista use other version of this DLL month calendar class. Of course Micro Soft used the same class name in all the versions. Even though versions have different features.
7. Re: Size of the MonthCalendar
- Posted by BRyan Jun 24, 2013
- 2109 views
I think this whole problem came about because of different versions of comctrl.dll winxp uses a different version of this DLL for month calendar class. Win 7 and Vista use other version of this DLL month calendar class. Of course Micro Soft used the same class name in all the versions. Even though versions have different features.
I meant comctl32.dll
8. Re: Size of the MonthCalendar
- Posted by andi49 Jun 26, 2013
- 2064 views
Hi
I think this whole problem came about because of different versions of comctrl.dll winxp uses a different version of this DLL for month calendar class. Win 7 and Vista use other version of this DLL month calendar class. Of course Micro Soft used the same class name in all the versions. Even though versions have different features.
I meant comctl32.dll
For sure you are correct with this. comctl32.dll is the problem.
But at least comctl32.dll (the Version with VisaulStyles Ver 6+) is not enabled by default. You have to enable it in your program.
Or, in the case of Eu4.x, it is enabled in the interpreter of your Eu program.
There are differnt ways to handle this and disabling VisualStyles (namly CommonControl V6) is not the solution to all problems
but it may help.
You may check this link on MSDN for further information http://msdn.microsoft.com/en-us/library/windows/desktop/bb773175%28v=vs.85%29.aspx
Andreas
9. Re: Size of the MonthCalendar
- Posted by andi49 Jun 26, 2013
- 2090 views
[...]
If you like to handle them the old way you have the option to built Eu4.x binaries without the 'manifest.xml' resource.
[...]
Quote myself seems a little silly ;)
I have built Eu4.0 binaries (from the latest Mercury repo) and there are here: http://euphoria.indonesianet.de/eu4testpack.zip
The binaries are built without the 'eu.manifest' so they do not activate VisualStyle by default.
The bins are for testing, i havent't tested this binaries (exepct for just starting them)
Before i forget, these are WIn32 binaries and you have to create/edit the eu.cfg in the bin directory yourself.
Andreas
10. Re: Size of the MonthCalendar
- Posted by sergelli Jun 27, 2013
- 1936 views
Thank you, Andreas.
The Eu4TestPack is working perfectly and the mounthCalendar can be used with Windows Seven, unrestricted.
Problem solved, until the next version of the EU4?
Who has to definitely fix this bug, Microsoft or EU4?
11. Re: Size of the MonthCalendar
- Posted by andi49 Jun 28, 2013
- 1886 views
Hi
[..]
Who has to definitely fix this bug, Microsoft or EU4?
no one. It's not a bug it's a feature ;)
CommonControls Version6 and up offers some extensions to the commoncontrols (like splitbuttons and syslink and ribbons and visualstyles etc.)
These extensions produce incompatibilty to the legacy controls (Ver.5.82 and earlier). Microsoft just offers a fallback to the, over a decade old, legacy controls
and gives the option to run old programs.
I think we couldn't blame MS for this, becouse the problem is with the wrappers for Euphoria. And maybe with Euphoria itself not keeping up to date.
I wouldn't even try to run a GUI binary from the year 2000 on an actual Linux System. But I'am really sure a lot of the Win32 binaries from 2000 still work on Win8 ;)
Andreas
12. Re: Size of the MonthCalendar
- Posted by jimcbrown (admin) Jun 28, 2013
- 1875 views
I wouldn't even try to run a GUI binary from the year 2000 on an actual Linux System.
I do this all the time without issue.
13. Re: Size of the MonthCalendar
- Posted by andi49 Jun 28, 2013
- 1863 views
I wouldn't even try to run a GUI binary from the year 2000 on an actual Linux System.
I do this all the time without issue.
okay, i will give it a try now. Maybe I'am wrong.
But my experience is that binaries do not work (bcouse of updated libs).
I do not talk about recompiling the sources.
I have Apllixware 4.3.7, i will give it a try.
Andreas
14. Re: Size of the MonthCalendar
- Posted by jimcbrown (admin) Jun 28, 2013
- 1887 views
I wouldn't even try to run a GUI binary from the year 2000 on an actual Linux System.
I do this all the time without issue.
okay, i will give it a try now. Maybe I'am wrong.
But my experience is that binaries do not work (bcouse of updated libs).
I do not talk about recompiling the sources.
I have Apllixware 4.3.7, i will give it a try.
Andreas
I have not tried Apllixware, so YMMV.
Generally, the updated libraries should be backwards compatible at the binary API level with the older versions.
Of course there are cases where this is not possible. But when this happens, the library generally changes its name and you can have both installed side by side on the same system. E.g. GTK1 and GTK2.
Of course, if you have only GTK2 installed and try to run a binary compiled against GTK1, it won't work. You'd need to install the older libraries to get this to work.
There is an easier way, however: If you have an older system lying around, you can convert the dynamic binary into a static one with http://statifier.sourceforge.net/ and then run the static binary on the newer system.
15. Re: Size of the MonthCalendar
- Posted by andi49 Jun 28, 2013
- 1877 views
Hi
I do not want to start a flamewar about linux
Binaries on Linux are really not easy to handle
btw this words here are typed on Slackware
I just want to say, not everything on Windows is bad becouse it want work anymore after 10 years
I just want to say it is not better on an other *here Linux( OperatingSystem(
Applixware seems to be bound to the Linux Installation that|s on the CD *Suse 5.x
Let say it like this,for an 'normal user' it is easier to run an old program on windows than on Linux
16. Re: Size of the MonthCalendar
- Posted by jimcbrown (admin) Jun 28, 2013
- 1874 views
Binaries on Linux are really not easy to handle
For dynamically linked binaries, I would agree. But, dynamically linked binaries are not easy to handle anywhere.
Let say it like this,for an 'normal user' it is easier to run an old program on windows than on Linux
I can take a copy of /bin/ls or /bin/cp from a RedHat 6.0 distro and run it on Ubuntu Jaunty without any issues.
Of course, things get more complicated when many libraries are involved. Most windoze apps dealt with this in the past by bundling everything they needed together, leading to DLL hell.
On Linux/GNU the philosophy is different. Instead, the distro is suppose to maintain the program, and provide a seamless upgrade when necessary.
Both approaches have their respective upsides and downsides.
Applixware seems to be bound to the Linux Installation that|s on the CD *Suse 5.x
Sorry to hear that. Of course, different applications will have varying levels of success. YMMV.
I just want to say, not everything on Windows is bad becouse it want work anymore after 10 years
WindowsWasher (a 3.1 program that was sort of a spiritual predecessor of TweakUI, designed to check for and fix various inefficiencies) would run on 95 but it had all kinds of issues (like not being able to show more than 2GB for a hard disk's size). TweakUI can crash on Windows 8. If you attempt to run Visual Studio 2005 under Windows 7 64bit, you get a warning that there are known problems with running that application under that OS. Some games for older versions of Windoze don't run on their modern counterparts unless one resorts to the extreme measure of using binary patches on the machine code (e.g. http://forums.guru3d.com/showthread.php?t=315982 )
Nevermind trying to run anything that requires a custom VxD.
Conversely, I found it easy to install and run an over 10 year old version of corel wordperfect for linux(/gnu) under a modern distro.
There are cases where 10 year old apps will work out of the box with modern versions of Windoze. There are cases where 10 year old apps will not work out of the box with modern versions of Windoze.
Likewise, there are cases where 10 year old apps will work with Linux/GNU, and cases where they won't.
I just want to say it is not better on an other *here Linux( OperatingSystem(
I think there actually are differences between different distros, based on the level of support they give.
17. Re: Size of the MonthCalendar
- Posted by andi49 Jun 28, 2013
- 1853 views
For going back to the topic of this thread.
Wouldn't it be an option (for the next release of Euphoria) to put the
'eu.manifest' into 'euiw.exe.manifest.xml' instead of compiling it to the resources?
This would give the user the option to delete this file and use the old Commonsontrols for use with win32lib?
Andreas