Hi,
I would like to create a toolbar with buttons that have a custom color
background but also can have the pop up menu property. (As seen on many web
layouts).
Object Set Rgb Color does not allow me to change the background color of
buttons, just the text color.
If I use a custom button type
Hi,
If you set the platform to Printing on the Appearance/Platform setting, you
lose the gradation and can set the color using object commands
Tom DeMeo
> On Aug 29, 2016, at 3:00 PM,Mitchell Shiller wrote:
>
> Hi,
>
> I would like to create a toolbar with buttons that have a custom colo
> Hi,
>
> If you set the platform to Printing on the Appearance/Platform setting, you
> lose the gradation and can set the color using object commands
>
> Tom DeMeo
I can’t seem to get the fill color of the button to change. Font color yes,
fill no.
Any other ideas or am I missing something.
Mitchell,
I think you will need to create some graphic elements to use as backgrounds
for your buttons to achieve this. Colored buttons aren't part of anyone's
standard UI which is why, I think, 4D doesn't support them. Find or make up
what you need, put it in the Resources folder and there you go.
Hi Mitch,
Not sure what the problem is. I created a demo. Download the link below. It has
one project form with one button, with the object’s Appearance Platform set to
“Printing". I change the color on load in the object method of the button. It
works for me in 15 on OSX and Windows.
htt
Thanks Tom.
What I learned is that OBJECT SET COLOR works with regular buttons as your demo
shows.
However, it does not work with 3D Buttons. I want to display an icon at the
same time.
So I will roll my own.
Mitch
**
4D Inter
> Le 1 sept. 2016 à 04:30, Mitchell Shiller a écrit :
>
> Thanks Tom.
>
> What I learned is that OBJECT SET COLOR works with regular buttons as your
> demo shows.
> However, it does not work with 3D Buttons. I want to display an icon at the
> same time.
> So I will roll my own.
Hi Mitchell,
Merci Arnaud… mais (but)
Custom buttons do not allow you to have a popup menu feature. So I can get
most of what I want but not all.
BTW, it is not to hard to create my own- using a text variable and the form
events:On Mouse Enter, On Mouse Leave and On Clicked. I can create a highlight
effe
Mitch:
I think the way to get all that you want is to create an SVG object. Within
this Object we had a two column pallet of buttons, where the users could:
change the colours, and on the fly we could change background colour, text
colour, text style. They could have popular or not on the fly.
Mitch,
It's easy to roll your own menus on the fly for buttons or anything else
for that matter. I have dozens of them.
For simple lists I use the popup menu command:
$menu:="Item 1;Item2;Item3"
$result:=Pop up menu($menu)
Case of
: ($result>0)
// do something
End case
For more involved men
10 matches
Mail list logo