UI Interest Group Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Replace a scroll-bar inside a graph object with a system scroll-bar

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

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 1 of 6
(7,178 Views)

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.

0 Kudos
Message 2 of 6
(4,190 Views)

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.

Download All
0 Kudos
Message 3 of 6
(4,190 Views)

HI Matthew,

this looks impressive:

Waveform Graph Control.ctl_FP.png

On windows XP, could you tell how you achieved the replacing of the buttons and scrollbar?

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 4 of 6
(4,190 Views)

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.

  1. Drop a standard graph on the front panel and customize it.
  2. Change to Customize Mode in the control editor
  3. For the Scale Legend:
    • Select any of the buttons.
    • Goto Edit->Customize Control...
    • Customize it to your liking
    • Replace the orginal control.
    • Repeat for the other buttons
  4. For the Graph Pallette:
    • Select one of the buttons
    • Use the context menu to modify the images.  These are the buttons you may have trouble with following theme color changes.  I basically did some image editing to get the pictures "right".

If I can figure out what I did for the scrollbar, I will let you know.

0 Kudos
Message 5 of 6
(4,190 Views)

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.

0 Kudos
Message 6 of 6
(4,190 Views)