I need a transparent grid – any ideas?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #34212
    IPSteven
    Participant

    I am using AlphaControls 2010 v7.24 stable under Windows7 with Delphi 2010.

    I need a transparent grid

    – where it doesn't look like a grid/table is being used

    – where the skin shows through as the background

    I have a page in my app where the top half is 5 rows, 6 columns of statistics that are calculated at load time.

    Underneath the stats is a string grid (using TMS Adv String Grid) of the data from which the stats are derived.

    I do not want the top stats to look like they are contained in a grid, it makes the page look too cluttered.

    Previously in this app I have used labels which look great but are now giving me a headache because I am trying to make the app resizable.

    Any help or suggestions would be appreciated.

    I have TMS Grids and Virtual Treeview installed if they can help.

    Thanks.

    #44254
    Support
    Keymaster

    Hello

    You must use a custom drawing of cells, I think.

    There is a small demo which may be useful…

    #44262
    IPSteven
    Participant

    This is what I was looking for!

    The code sample helps tremendously. I can make this work except for one issue – the code sample does not paint in blank grid area.

    For example if I only have 4 cells of data and the grid is larger than the 4 cells – the blank area in the grid will be white.

    Note: That the SkinManager and SkinProvider components on the form are probably from an earlier version. You cannot close the form by clicking on the border icon. Replacing the SkinManager and SkinProvider components with ones from the current build fixed the problem.

    Thanks for your help.

    …Steven

    #44265
    IPSteven
    Participant

    I've attached a modified version of the demo to show the problem.

    [attachment=4429:imageofparent_modified.zip]

    If the table size and cells are not exactly matched you will see a white edge either on the left or bottom edges of the grid (or both).

    In this demo

    I've added code to resize the grid as the form is resized

    the grid has been disabled and the selected cell is painted the same as non-selected cells so that it appears to be several rows of labels.

    …Steven

    #44336
    Support
    Keymaster

    Thank you for demo. I see and understand a problem, but this example was created for showing how to receive a parent image only.

    Standard DrawGrid allows a painting in cells only…

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.