Visual Basic Foro

Programación => Visual Basic 6 => Mensaje iniciado por: cliv en Julio 09, 2010, 02:31:50 am

Título: clsSKINNER apply to ActiveReport and Toolbar Subclass ........
Publicado por: cliv en Julio 09, 2010, 02:31:50 am
Can clsSkinner be apply to ActiveReport windows..?
Toolbar in ActiveReport can be subclass to aply a skin (change color..)...?

http://img96.imageshack.us/img96/1704/20100709082741.png

Título: Re:clsSKINNER apply to ActiveReport and Toolbar Subclass ........
Publicado por: coco en Julio 09, 2010, 07:39:55 pm
Can clsSkinner be apply to ActiveReport windows..?
Toolbar in ActiveReport can be subclass to aply a skin (change color..)...?

http://img96.imageshack.us/img96/1704/20100709082741.png



Does the activereport object has a "hwnd" property? If it hasn't that, you must find the handle of the window. Then, you just create a new clsSkinner and call objSkinner.HookForm hwnd_of_active_rpt and thats it.

The toolbar stuff I think is problem of manifests, try to add a manifest to VB6, and later, to your .exe.
Título: Re:clsSKINNER apply to ActiveReport and Toolbar Subclass ........
Publicado por: cliv en Julio 12, 2010, 02:26:14 am
Thank you...
I try and active report can be skinned...but indeed the main problem remain toolbar.
Título: Re:clsSKINNER apply to ActiveReport and Toolbar Subclass ........
Publicado por: coco en Julio 12, 2010, 04:44:00 am
Thank you...
I try and active report can be skinned...but indeed the main problem remain toolbar.

What do you want to do with the toolbar? I mean, the clsSkinner doesn't apply any skin to that control. You want the system look (manifest & uxthemes?)

Título: Re:clsSKINNER apply to ActiveReport and Toolbar Subclass ........
Publicado por: cliv en Julio 12, 2010, 09:27:28 am
I know clsskinner doesn't apply...
i want to create a skin for active report toolbar...like :
http://www.recursosvisualbasic.com.ar/htm/ocx-componentes-activex-dll/212-toolbar-con-skin.htm

....or maybe only change background gradient color for toolbar.

PS
I also found this:
http://www.vbforums.com/showthread.php?t=381167
...but i don't know if i can apply to ative report toolbar (Toolbar not have hwd properties).

Título: Re:clsSKINNER apply to ActiveReport and Toolbar Subclass ........
Publicado por: coco en Julio 12, 2010, 02:57:20 pm
I know clsskinner doesn't apply...
i want to create a skin for active report toolbar...like :
http://www.recursosvisualbasic.com.ar/htm/ocx-componentes-activex-dll/212-toolbar-con-skin.htm

....or maybe only change background gradient color for toolbar.

PS
I also found this:
http://www.vbforums.com/showthread.php?t=381167
...but i don't know if i can apply to ative report toolbar (Toolbar not have hwd properties).



Yes, I can tell you that it have handle. You have to find it enumerating child windows of the report, and looking for each ClassName, (API: GetClassName) and find "ToolbarWindow32" or something similar, and then call SubClassToolBar method of cSubclassToolbar of the first link. Personally, I don't know if it's going to work, because the toolbars may have another ClassName, and for that, you will need change some code of cSubclassToolbar.

I haven't active reports to try it, so you have to do it by your way.