Custom Theme Support Sample |
Post Reply |
Author | |
idolpx
Newbie Joined: 24 February 2005 Status: Offline Points: 20 |
Post Options
Thanks(0)
Posted: 20 March 2005 at 11:01pm |
Is there a sample that explains how to create custom themes like the MS Money theme shown at the following links in VB6?
http://www.codejock.com/products/commandbars/tour_01.asp http://www.codejock.com/products/commandbars/tour_02.asp Edited by idolpx |
|
Boyd
Senior Member Joined: 08 December 2003 Location: United States Status: Offline Points: 285 |
Post Options
Thanks(0)
|
The MS Money theme cannot be created using the ActiveX version of the controls. You can switch between the various built-in themes and change the color scheme, but you cannot create a new theme that isn't based on one of the original, built-in themes. |
|
ianp
Moderator Group Joined: 19 December 2003 Location: United Kingdom Status: Offline Points: 119 |
Post Options
Thanks(0)
|
Although the MS Money theme is not built into the ActiveX control, you can (or used to be able to) modify the themes using setspecialcolor. Using the code in hoanganh's post (http://forum.codejock.com/forum_posts.asp?TID=403#3522) I was able to create the office2003 theme on windows 2000 workstations. Since the introduction of the CommandBarsGlobalSettings.ColorManager.SystemTheme methods in 9.6, I have not tried it modifying the themes but I would think it still works. I would imagine if you experiment with the colors you could recreate the MS Money look to some degree. Let us know how you get on UPDATE: Version 9.6 has increased the ability to create custom themed toolbars (or indeed custom themes for just about all CodeJock controls). For more details look up the SetColors method in the Help. To begin to illustrate a MS Money implementation, here is some code to get you started. It would be great if you could post your progress...
Edited by ianp |
|
MrCairo
Newbie Joined: 21 March 2005 Status: Offline Points: 3 |
Post Options
Thanks(0)
|
thanks for the example mc |
|
idolpx
Newbie Joined: 24 February 2005 Status: Offline Points: 20 |
Post Options
Thanks(0)
|
Yeah... thanks for the sample. I'll try it out. The goal is to give my users the ability to change the look and feel of the program. It would be nice if they could specify an image for the background of the commandbar. Either a static image or a tiled image.
|
|
ianp
Moderator Group Joined: 19 December 2003 Location: United Kingdom Status: Offline Points: 119 |
Post Options
Thanks(0)
|
I'm not sure that tiled images are possible, which is going to make replicating the toolbar element of the MS Money Theme difficult (or impossible), so I would submit a feature request. Also, I had a look in the samples again and there is a good demo of the customization options in the CommandBars MDISample, take a look. Edited by ianp |
|
idolpx
Newbie Joined: 24 February 2005 Status: Offline Points: 20 |
Post Options
Thanks(0)
|
How do they do it in the samples below? http://www.codejock.com/products/commandbars/tour_01.asp |
|
Devin Dazzle
Newbie Joined: 19 October 2004 Location: Denmark Status: Offline Points: 13 |
Post Options
Thanks(0)
|
Those examples are most likely based on the C++ MFC source code. The ActiveX version does not have all the functionality that the MFC code does (yet?). If you take a look at the development history of the Xtreme Suite controls you will se that each new update brings a lot more functionality. Hopefully we will se a lot of improvements when version 10 is released (can't wait :) |
|
Best Regards
Kim Pedersen, vbCode Magician http://www.vbcodemagician.dk |
|
idolpx
Newbie Joined: 24 February 2005 Status: Offline Points: 20 |
Post Options
Thanks(0)
|
Yes... I hope to see more functionality in the ActiveX controls as well.
If anyone has any other ideas on how to Custom Theme the commandbar and dockingpanes let us know! :) |
|
alfredorcamara
Newbie Joined: 02 April 2005 Location: Brazil Status: Offline Points: 1 |
Post Options
Thanks(0)
|
Private Sub Form_Load() Function fnCriarMenu() '----------------------------------------------------------- ---------------------------------------- '----------------------------------------------------------- ----------------------------------------
Function fnConfiguraCor() 'Cor de Fundo do menu 'Cor do Separador 'Barra Esquerda do Menu ativo 'Não sei 'Pontos inicial do menu 'Cor das opções do menu quando está selecionada 'Cor da borda das opções do menu quando está selecionada 'não sei 'Cor de fundo do menu quando aberto 'Cor da Borda do Menu 'Cor da Sombra do menu 'Modifica Texto 'Cor do texto do menu principal 'RGB(112, 112, 112) => Cor do texto desabilitado CommandBars.GlobalSettings.ColorManager.SetColor XPCOLOR_HIGHLIGHT_TEXT, RGB(255, 223, 127) 'Outras Configurações End Function Obs: Não está completamente pronto, falta terminar algumas coisas. Mas acho que tem como ficar igual ao o Money Edited by alfredorcamara |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |