Hi guys,
My next source code project is to implement custom Resolution Width & Height. More when it hits ( login to download attached examples )
K
Resolution
Moderator: Moderators
Resolution
- Attachments
-
- resolution.zip
- (73.89 KiB) Downloaded 1045 times
Looks promising Kjell!
How do you plan to implement it? The current solution with ScreenMode property has got a dependency to the optiondialog, as well as being backwards compatible which I want to be as far as possible. Perhaps two new properties CustomScreenWidth, CustomScreenHeight. If set to zero (default) they are ignored?
How do you plan to implement it? The current solution with ScreenMode property has got a dependency to the optiondialog, as well as being backwards compatible which I want to be as far as possible. Perhaps two new properties CustomScreenWidth, CustomScreenHeight. If set to zero (default) they are ignored?
Hej Ville,
I was planning to use a boolean checkbox to determine whether or not you want to overwrite the ScreenMode property .. but testing if the values are set to zero would do the trick too.
By the way, I'm trying to add a zptInteger2i type ( or something based on TZPointi ), no luck so far .. but I guess that's just a matter of diving into the source a little further. If worse comes to worse I'll just go with 2 integer fields as you described.
Regards,
Kjell
I was planning to use a boolean checkbox to determine whether or not you want to overwrite the ScreenMode property .. but testing if the values are set to zero would do the trick too.
By the way, I'm trying to add a zptInteger2i type ( or something based on TZPointi ), no luck so far .. but I guess that's just a matter of diving into the source a little further. If worse comes to worse I'll just go with 2 integer fields as you described.
Regards,
Kjell
Yes adding a new datatype is pretty hairy and require lots of small changes in many places so I would advice against that . Just from the top of my head you need changes in: streaming, gui, set value, set default value etc etc. And it adds up to a significant amount of code growth so I don't add datatypes unless absolutely necessary. Go for two separate integers is my suggestion.