Background color line graph widget
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Posts: 11
- Joined: Thu Aug 23, 2018 2:14 pm
Background color line graph widget
Hi all,
I would like to change the background color of a line graph widget. If I've seen correctly for other widgets, there is no such "background color" or "opaque" property yet. Is there a way of changing the background for a line graph?
Thanks for your ideas.
I would like to change the background color of a line graph widget. If I've seen correctly for other widgets, there is no such "background color" or "opaque" property yet. Is there a way of changing the background for a line graph?
Thanks for your ideas.
Re: Background color line graph widget
Hi Summertime01,
if the inspector does not supply a setting for this, then there is no setting for this. But it is not forbidden to put an opaque graphic behind your widget, the user won't tell the difference!
Best
Klaus
if the inspector does not supply a setting for this, then there is no setting for this. But it is not forbidden to put an opaque graphic behind your widget, the user won't tell the difference!
Best
Klaus
-
- Posts: 11
- Joined: Thu Aug 23, 2018 2:14 pm
Re: Background color line graph widget
Hi Klaus,
thank you for this idea!
I'm using the new control handler for the widget though, so that the user may resize and move the graph.
http://livecodeshare.runrev.com/stack/902
I imagine it to be difficult to move/resize both the widget and the opaque graphic underneath at the same time. Do you have any idea for that?
Thanks.
thank you for this idea!
I'm using the new control handler for the widget though, so that the user may resize and move the graph.
http://livecodeshare.runrev.com/stack/902
I imagine it to be difficult to move/resize both the widget and the opaque graphic underneath at the same time. Do you have any idea for that?
Thanks.
Re: Background color line graph widget
I don't use widgets, so I may be completely off on this, but with plain graphics you would do something like (psuedo code) ~
where the widget would be object x and the graphic would be object y.
Do widgets have that same type of setting? If they do, you could call that handler after the background is resized.
Code: Select all
set the width of [object x] to the width of [object y]
Do widgets have that same type of setting? If they do, you could call that handler after the background is resized.
Re: Background color line graph widget
Maybe a "resizecontrol" handler in the widget will do the trick?
-
- VIP Livecode Opensource Backer
- Posts: 2262
- Joined: Thu Feb 28, 2013 11:52 pm
- Location: Göttingen, DE
Re: Background color line graph widget
I have no time for a pull request (probably try to learn in the next weeks), meanwhile you could use the following.
This will do what you want.
Please note.
Of course, I had to use another signature (kind "livecode.community.hermann.linegraphtempii") because I cannot use kind "com.livecode.widget.linegraph".
- Change the ending of the attached file from "zip" to "lce" (do NOT unzip).
- Add the widget: Locate this lce-file with the Extension Manager (use the plus at topright).
- Restart LiveCode.
- properties "showXLabels" and "showYLabels"
- property "graphBackColor"
This will do what you want.
Please note.
Of course, I had to use another signature (kind "livecode.community.hermann.linegraphtempii") because I cannot use kind "com.livecode.widget.linegraph".
- Attachments
-
- livecode.community.hermann.linegraphtempii.1.2.1.zip
- (37.08 KiB) Downloaded 166 times
shiftLock happens