Autor Tema: clsSKINNER apply to ActiveReport and Toolbar Subclass ........  (Leído 4445 veces)

0 Usuarios y 1 Visitante están viendo este tema.

cliv

  • Kilobyte
  • **
  • Mensajes: 69
  • Reputación: +1/-2
    • Ver Perfil
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


coco

  • Administrador
  • Terabyte
  • *****
  • Mensajes: 548
  • Reputación: +63/-3
    • Ver Perfil
Re:clsSKINNER apply to ActiveReport and Toolbar Subclass ........
« Respuesta #1 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.
'-     coco
(No me cabe: Java, Python ni Pascal)
SQLite - PIC 16F y 18F - ARM STM32 - ESP32 - Linux Embebido - VB6 - Electronica - Sonido y Ambientacion

cliv

  • Kilobyte
  • **
  • Mensajes: 69
  • Reputación: +1/-2
    • Ver Perfil
Re:clsSKINNER apply to ActiveReport and Toolbar Subclass ........
« Respuesta #2 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.

coco

  • Administrador
  • Terabyte
  • *****
  • Mensajes: 548
  • Reputación: +63/-3
    • Ver Perfil
Re:clsSKINNER apply to ActiveReport and Toolbar Subclass ........
« Respuesta #3 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?)

'-     coco
(No me cabe: Java, Python ni Pascal)
SQLite - PIC 16F y 18F - ARM STM32 - ESP32 - Linux Embebido - VB6 - Electronica - Sonido y Ambientacion

cliv

  • Kilobyte
  • **
  • Mensajes: 69
  • Reputación: +1/-2
    • Ver Perfil
Re:clsSKINNER apply to ActiveReport and Toolbar Subclass ........
« Respuesta #4 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).

« última modificación: Julio 12, 2010, 09:37:59 am por cliv »

coco

  • Administrador
  • Terabyte
  • *****
  • Mensajes: 548
  • Reputación: +63/-3
    • Ver Perfil
Re:clsSKINNER apply to ActiveReport and Toolbar Subclass ........
« Respuesta #5 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.
'-     coco
(No me cabe: Java, Python ni Pascal)
SQLite - PIC 16F y 18F - ARM STM32 - ESP32 - Linux Embebido - VB6 - Electronica - Sonido y Ambientacion