Gradient (5.x only)

Top  Previous  Next

Warning: When you use the gradient with Toolbars in Clarion 6.x you might see phantom buttons inside the Toolbar or having other problems with the Toolbar. If you are going to work with Clarion 6.x and Toolbars, we strongly suggest you NOT to use gradient as background for your Frame. Use a random or fixed wallpaper instead.

 

When you enter this button, you will see only one option, "Enable background Gradient fill for Frame". When activating this option, if your program has a menu type "Frame", you will be able to specify a gradient as background for it.

The gradient will be horizontal, and you will be able to specify the color upper and lower color in the local extension of the Frame.

If you chose the same color for both cases, you would obtain a block of solid color, which would not have much sense (nevertheless, you can do it).

As the gradient is drawn by the operating system, it is generally faster and of greater quality than to show any graphic wallpaper that have a gradient. Lamentably, when used in a common window the gradient covers all the other controls, reason why it only can be used like background in a menu of the "Frame" type.

The gradient refreshes itself only when there is a message to the operating system, which causes that while you navigate by the menus of the Frame (or if you open and move a SDI window over the Frame as well), the gradient will not refresh and there will be parts of the same color of the background at sight. If you are going to work with SDI windows in your application with Frame, it is not convenient to activate the gradient. 

In multi-DLL applications, this option only needs to be activate in the application that contains the Frame (generally the .exe).