08-28-2009 02:32 PM
I am tryin to create a system styled graph, replacing all the decoration with system decoration and other stuff, however one of the most convenient parts of a graph (the x-scale scroll-bar) cannot be replaced with a system one, since I cannot copy a system scrollbar onto the clipboard. Has anyone succeeded in doing so?
Ton
08-28-2009 05:05 PM
I haven't been able to figure out how to replace components within a compound component such as a graph either.
The best approach I could think of would be creating an XControl and using distinct controls and property nodes but that would be significantly more work.
08-31-2009 02:52 PM
I think this came in one of the 8.x versions. I had some serious issues with control customization that was lost between 7.1 and 8.x. Sometimes I have to make the control in 7.1 and hope 8.x doesn't screw up the import (it does sometimes). Attached is an XY Graph and a Waveform Graph which has everything (I think) converted to a system style. I did this several years ago, so you may wish to confirm the buttons for the tools are truly system and not just bitmaps.
09-01-2009 01:02 AM
HI Matthew,
this looks impressive:
On windows XP, could you tell how you achieved the replacing of the buttons and scrollbar?
Ton
09-04-2009 09:29 AM
Ton,
I am having trouble figuring out how I did the scrollbar, so it may take me a little while to figure it out again. If I realized I was performing a minor miracle, I would have documented it.
For the buttons, they aren't too difficult.
If I can figure out what I did for the scrollbar, I will let you know.
09-05-2009 11:54 AM
Christtian helped me figure out how I managed to do it - I didn't! The classic graphs use a system scrollber for the X scrollbar. So I must have started with that and never changed the scrollber. It is interesting that the scrollbar for the new Plot Legend is the 3-D scrollbar (even in the classic control).
I did see that the buttons in the Grpah Pallette are not safe when the theme is changed since I can't customize them as booleans and can only replace the images.