Source language: Translate to:

hpwColorMemo question

Questions about NeoBook PlugIns

Moderator: Neosoft Support

hpwColorMemo question

Postby Frank » Tue Nov 27, 2007 5:55 am

Hello Hans-Peter,

When using this plug-in it seems as if the ColorMemo control does not fit entirely in its parent (e.g. a Neobook rectangle)

The foot of the Vertical Scrollbar is missing and when using a Horizontal Scrollbar it is only partially visible.

Is there something that can be done about this?

BTW, I'm using Windows XP (SP2) up to its current updates

Regards,
Frank

Nil Volentibus Arduum
Frank
 
Posts: 57
Joined: Tue May 24, 2005 1:46 am

Postby HPW » Tue Nov 27, 2007 6:32 am

When I change the Page action in the demo-pub to:

hpwColorMemoSetVar "[hpwMemoScrollBars]" "ssBoth"

I get both scrollbars visible.
So I am not sure where the problem is.
So maybe you should send/post a pub (stripped down) to reproduce the problem.

When you find a hard bug, I have a problem to fix it, because the original developer of the component 'colormemo' went out of business.

http://www.balticsolutions.com/

I had tried to buy the component with source in the past, but had no luck with his offer, since he does not deliver it. I had to call kagi for a refund of my order. I get the money back but no source. So I have to live with the binary-component (the freeware). Now I know to never use a component without its source. :-(
Hans-Peter
User avatar
HPW
 
Posts: 2510
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Postby Frank » Tue Nov 27, 2007 7:08 am

Hello Hans-Peter,

Thank you for getting back so quickly.

hpwColorMemoSetVar "[hpwMemoScrollBars]" "ssBoth"

I get both scrollbars visible.


Yes, they are both visible, but not completely...
It looks as if the last part (or even the last line if you want, because the cursor is cut off too) of the component is just not visible, although both scrollbars work.

I had tried to buy the component with source in the past, but had no luck with his offer, since he does not deliver it. I had to call kagi for a refund of my order. I get the money back but no source. So I have to live with the binary-component (the freeware). Now I know to never use a component without its source.


I'm sorry to hear this. At least you're one of the lucky guys who get their money back when things go wrong...

Thanks,
Frank

Nil Volentibus Arduum
Frank
 
Posts: 57
Joined: Tue May 24, 2005 1:46 am

Postby Frank » Tue Nov 27, 2007 7:17 am

Hello again,

Hans-Peter I found the solution, well sort of...

When changing Windows XP's theme into 'Classic' the scrollbars are visible like they should be!

Probably the component doesn't like Windows XP (and up ??!!)

Regards,
Frank

Nil Volentibus Arduum
Frank
 
Posts: 57
Joined: Tue May 24, 2005 1:46 am

Postby HPW » Tue Nov 27, 2007 7:53 am

Thanks for the additional investigation.
I can reproduce it now.
When I will find a code-snippet to detect the running theme on XP I could compensate that in the plugin, because this would happen outside the binary component.

I will check.
Hans-Peter
User avatar
HPW
 
Posts: 2510
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Postby Frank » Tue Nov 27, 2007 8:28 am

Hello Hans-Peter,

When I will find a code-snippet to detect the running theme on XP I could compensate that in the plugin, because this would happen outside the binary component.


Yes that would be great - good luck !

Vielen Dank und wie üblich: hervorragende Unterstützung !!

Regards,
Frank

Nil Volentibus Arduum
Frank
 
Posts: 57
Joined: Tue May 24, 2005 1:46 am

Postby Frank » Tue Nov 27, 2007 10:52 am

Hello Hans-Peter,

perhaps this will help:

There are 2 API's that can be used for activating and deactivating XP styles for a single control:

'ActivateWindowTheme' and 'DeactivateWindowTheme' in 'UXTHEME.DLL'

With 'EnableTheming' (Boolean) you can even use this as a global function (enable or disable) if an XP theme is enabled.

It's 'only' your job to convert this to Delphi...

Regards,
Frank

Nil Volentibus Arduum
Frank
 
Posts: 57
Joined: Tue May 24, 2005 1:46 am

Postby HPW » Tue Nov 27, 2007 11:36 am

Thanks Frank for the hints.
I found a delphi snippet for theme detection.

But it turns out that I had a simple bug in the colormemo plugin which cause the size problem in xp-luna.
So it could be fixed without adding much code.
So try it out.
Hans-Peter
User avatar
HPW
 
Posts: 2510
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Postby Frank » Tue Nov 27, 2007 11:48 am

Hans-Peter,

It works like a charm.

THANK YOU VERY MUCH !!!!!!!!!!!!!!!!

Regards,
Frank

Nil Volentibus Arduum
Frank
 
Posts: 57
Joined: Tue May 24, 2005 1:46 am

Postby Frank » Wed Nov 28, 2007 2:26 am

Sorry to bother you again Hans-Peter...

It seems the ColorMemo control doesn't AutoResize...

Could you please have another look at it??

Thanks,
Frank

Nil Volentibus Arduum
Frank
 
Posts: 57
Joined: Tue May 24, 2005 1:46 am

Postby HPW » Wed Nov 28, 2007 3:21 am

Since I never used it myself with resizing and it is relativ old, it has currently no support for it.
But I will have a look at it.
Hans-Peter
User avatar
HPW
 
Posts: 2510
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany


Return to PlugIn Discussions

Who is online

Users browsing this forum: No registered users and 1 guest