Jump to content

Rav

Members
  • Posts

    89
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by Rav

  1. Thanks!

    I tested TUniMainModule and TMainForm on the subject of cookies:

    1) In TUniMainModule:

    UniSession.Cookie - works, but not recommended

    UniSession.UniApplication.Cookies.Values - works

    UniApplication.Cookies.Values - doesn't work

     

    2) In TMainForm:

    UniSession.Cookie - works, but not recommended

    UniSession.UniApplication.Cookies.Values - works

    UniApplication.Cookies.Values - works

     

    So the UniSession.UniApplication.Cookies.Values is a universal method for getting cookies, right?

  2. Hello,
    While testing cookies I found that during the UniMainModule creation setting cookie works fine:

    UniSession.UniApplication.Cookies.SetCookie('test_cookie','temp')

    but reading it raises an exception:

    UniSession.Cookie['test_cookie'];

    During the MainForm creation both code lines works fine.

     

    Is this normal behavior? Is it possible to read cookies in UniMainModule?

  3. Hello,

    I often use TButtonedEdit component with a TLabel placed above it in VCL but couldn't find a similar component in UniGui. So I decided to compose it myself using layouts. The result is uploaded here:

    https://yadi.sk/d/S1FzGCblraotK

    It consists of 5 components. Can it be done easier with less number of components or with more advanced layout technics?

  4. Thanks for you answers!

    1) That doesn't work

    2) Ok, got it.

    3) That's nice! I found a small issue though - it doesn't work properly if FielLabelAlign is laTop but it really matters nothing.

    5) That's too radical solution for me, but I will try.

  5. Hello,

    I tried to use table layout and found difficult to do it.

    Here is the modified sample:

    https://yadi.sk/d/hUYtg2CFrZ3Qd

     

    1)UniGui doesn't pay attention to controls tab order or creation order and align them according to its own rules: first cells are for TUniEdits, then for TUniLabel and at last for TUniDateTimePickers. Is there a way to manually set the order?

    2)TUnidateTimePickers do not extend to 100% width. Is this normal?

     

    Also some small questions that don't relate to layouts directly

    3)TUniSpinEdit doesn't have FieldLabel property. Is there a particular reason for that?

    4)What font is used for FieldLabel? Why does it differ from its owner - TUniEdit? On the sample it certainly differs from the font used for TUniLabel though the default fonts are the same.
    5)Is it possible to use images in the TUniCombobox items?

    6)TUniDBGrid has two(!) event handlers for placing images on the grid items: OnFieldImage and OnFieldImageURL but cannot use TUniImageList items for them. That's not the question, just weird.

    • Like 1
  6. Hi,

     

    Will I think we should upload a video on youtube showing the correct use of the layout

     

    Yes that would be great!

    But first it would be nice just to get a text explanation of all layout properties.

    TUniServerModule properties description also would come in handy.

  7. Hello,

    I have a small problem with layouts and don't know how to resolve it.

    If you change the button's layout properties of the "Clientside Alignment - Layout VBox" example from (Flex=1 and Height='') to (Flex=0 and Height=30) so it doesn't change its height after form resizing and assign an image to it then both image and text are shown at the top of the button. With "Flex=1" they appear at the button's center as expected. Can it be corrected?

     

    Here is the example's screenshot:

    https://yadi.sk/i/O5vEz5lyrQRrB

     

    This is the example's code:

    https://yadi.sk/d/FDmav8_WrQR5r

  8. Hello,

    As recommended I have checked ExtJs examples regarding layouts and found that there is no "card (wizard)" in the "layout" property values of UniGui. This feature is interesting for me, is it not implemented yet or is it already implemented by other means?

  9. Hello,

    I have one container panel which is the parent of three panels with two splitters between them (image is attached). I want that width of all the internal panels to be the same whenever the container panel is resized. How to do it properly? First I thought that it should be handled in the main form's "onresize" event, but it is called before its width is changed ("onresizing" is more appropriate name for this event). Also the container panel can change its width without the main form is resized but it doesn't have the "onresize" event. And the last question: can this autoresizing be done without server intervention, on the client side only?

     

    Ravil

    post-2483-0-03710700-1438546882_thumb.png

  10. Hello,

    I cannot understand two things:

    1)Allfeaturesdemo always starts as maximized but I couldn't find in the code how it was done

    2)The popup menu in Allfeaturesdemo works fine, but the same menu in my code always pops up with the Firefox context menu (as in the attached image). But I wasn't able to find where and how it is done in Allfeaturesdemo either.

     

    Ravil

    post-2483-0-52616400-1438509297_thumb.png

  11. At the simplest level, you can change/adapt design-time interface elements

    here, or fully create the two interfaces at runtime on show, or doing it more complex,

    you can load two different html files into one htmlframe, and go from there,

    with the ajaxrequest handling two different event sets from the two different

    html/javascript setups.

    You gave me even a simpler idea - to use TUniPageControl hiding all its pages except the one that corresponds to the current client.

    Thanks!

  12. do you mean two different customers connect at the same server at two different applications?

    Yes, one database, one server, but two different clients with different main windows.

     

    I assume you mean two servers working against the same database,

    on the same physical server - and that is no problem.

     

    But of course not on the same port - as only one server process

    can listen to a port at a time, on a single IP, as it locks it.

     

    So you can just run them in the same folder, but on 8077

    and 8088 for example, if you just test with standalone.

    No it's not an option, server should be only single. I know there can be only one port per server, so I added the "First" and the "Second" parts in URL to distinguish the clients.

     

    To create two different "client" versions from a single

    server process, you need some trigger mechanism that tells

    the single server what to deliver - could be anything like

    something in the url to the average temperature of LA

    on that day...and it produces one of two versions.

    Yes, exactly, I need such mechanism but don't know how to create it cause the main Unigui form is created automatically.

  13. The TUniTimer works fine, thank you.

    But I got another question. As far as I understand the TUniTimer being placed on the main form is instantiated in every session, so with the 100 open sessions we'll have 100 timers on the server side. Is this the right way of constructing the application?

×
×
  • Create New...