Subject Re: [IBO] Jason, TIB_Currency.CreateParams please apply patch (IBO 4.6.a)
Author Marco Menardi
--- In IBObjects@yahoogroups.com, "Jason Wharton" <jwharton@...> wrote:
>
> I would like to do a fix that is 100% for all versions of Windows.
> Is it possible that some additional effort could be put into this
issue by
> those having other older versions of Windows to check this on?
> I only have XP these days.
>
> I'm going to go ahead and implement the suggested fix here, but I
would much
> rather do it in a way that doesn't break right alignment for pre-win98
> systems.
>
> Jason
>

Hi Jason :)
I've no idea, and I've Win2000 or XP in a Virtual Machine for testing.
In addition, having to deal with Win API is nothing you can be sure
about the result.
Maybe a solution would be a way to know the guest OS at runtime...
I don't think there are people that invest in new releases of IBO and
have programs running in Windows95 (with win98 should work fine). If
you agree, you could keep the current code in the source but commented
so they can uncomment it if needed (or just have the control left
alingning the numbers, not that bad).
Btw, these problems are of all TIB_CustomEdit when ES_MULTILINE is
applied (i.e. in TIB_Edit when ButtonStyle <> ebsNone), but for those
controls you can't avoid ES_MULTILINE otherwise you can't draw the
embedded button either. Since IB_Currency has no button, there is ho harm.