Jump to content

Max3073

uniGUI Subscriber
  • Posts

    15
  • Joined

  • Last visited

Posts posted by Max3073

  1. Thank you, i did it: in your demo you use percentages to cover the entire width of the containing panel.

    I cannot use percentages,  I need to use the actual size of panels (and I need them to wrap to a second row in case the full size exceeds the container width).

    Besides changing your demo and using smaller percentages, you can clearly see that panels are not centered (I'm attaching a picture of your demo)

    ColumnDemo.png

  2. Hello. i would like to place some dynamically generated panels in a container panel using "Client Alignment" and Layout = column.

    Column alignment seems perfect: panels are perfectly shown in a row that wraps when the form is resized.

    There is only one BIG (for me) problem: I cannot find a way to center them.

    Please help me.

    I'm attaching a picture of the actual result and a sample project that show exactly what I'm doing.

    picture.png

    UniGUAlignmentTest.zip

  3. 10 hours ago, Sherzod said:

    Hello,

    This post may help you:

     

    Great!!!  Thank you! it looks like it's exactly what I'm looking for... But I switched to TUniFrame (instead og TUniContainerPanel) and it's not working when I'm trying to resize the height 

    this is the code I'm using:

      UniMemo1.ClientEvents.ExtEvents.Values['resize']:=
               'function resize(sender, width, height, oldWidth, oldHeight, eOpts) {'+
                  Name+'.form.setHeight((height+80));'+
               '}';

    ("Name" is the name of the Frame assigned at runtime after creation)

    Sorry I have much to learn about UniGui

    :(




     

  4. 13 hours ago, Abaksoft said:

    Hello,

    1. Switch all to client side alignment (form, frame, ...)

    2. unicontainer layout Height : auto.

    you can see :

    http://forums.unigui.com/index.php?/topic/15007-mobile-centering-text/

     

    I'm afraid this won't work (at least this is what i think).
    My final goal is to simulate what you could do in a delphi desktop application with the TVirtualStringTree component: a tree view where each line can contain different components and different editors. I'm a attaching a simple picture since I don't know if my description is understandable.
    I also need components on a "line" to be vertically centered and the "line" to have the right size to show the content (each line can have different height). As you might see from the test project attached in the other message, I thought that a simple approach would be to create a frame containing components to simulate a single treeview item (or record). But I have no idea how to resize the height (neighter how to center everything vertically).
    I'm stuck :(

    TreeView.jpg

  5. Hi,

    I have some panels (TUniContainerPanels) stacked one on the other (Align := alTop). Inside these panels I have a TUnilabel (and some other components). The UniLabel is aligned left and has a fixed width. Of course the label caption may vary and eventually it will be wrapped. Here comes my problem. when the text is wrapped I would like to resize the heigth of the container so that the text can be fully visible. In general i would like to set the height of the parent panel to the exact height of the wrapped text. Is there a way to do it?

×
×
  • Create New...