Jump to content

Ricardo

Members
  • Content Count

    40
  • Joined

  • Last visited

About Ricardo

  • Rank

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Ricardo

    Problem with Button and CSS

    Thx. I have commented on the line "background: <? Pas = clBackground?>" and added .TW3Button: disabled { background: anyColor; } and it works perfect.
  2. Ricardo

    Problem with Button and CSS

    Hi. I have this css .TW3Button { display: inline-block; -webkit-box-sizing: content-box; -moz-box-sizing: content-box; box-sizing: content-box; cursor: pointer; border: 1px solid #018dc4; -webkit-border-radius: 3px; border-radius: 3px; font: normal 16px/normal Verdana, Geneva, sans-serif; color: rgba(255,255,255,0.9); -o-text-overflow: clip; text-overflow: clip; background: #007FFF; -webkit-box-shadow: 3px 3px 4px 0 rgba(0,0,0,1) ; box-shadow: 3px 3px 4px 0 rgba(0,0,0,1) ; text-shadow: -1px -1px 0 rgba(15,73,168,0.66) ; -webkit-transition: all 300ms cubic-bezier(0.42, 0, 0.58, 1); -moz-transition: all 300ms cubic-bezier(0.42, 0, 0.58, 1); -o-transition: all 300ms cubic-bezier(0.42, 0, 0.58, 1); transition: all 300ms cubic-bezier(0.42, 0, 0.58, 1); } .TW3Button:hover { background: #0048ff; } .TW3Button:focus { background: #178c19; } .TW3Button:DisabledState { background: #F0DC82; } with this result I've also tried with .TW3Button: Disabled. How to assign any background color to disabled button?
  3. Ricardo

    Errors in editBox

    Thx!
  4. Ricardo

    Errors in editBox

    Can I modify the RTL so that this value is always assigned? Or, how to find all the TW3EditBox, with a loop, of a form and change this value?
  5. Ricardo

    Grid, listbox or listview responsive

    At the moment, I'm using the example of the "Tabs, Scrolling and ListBox" folder, to continue (I need to finish the application this summer). But as soon as the grid is, I update everything. Thank you very much.
  6. Ricardo

    Grid, listbox or listview responsive

    It is not necessary, but it would be convenient. The idea is to show a list (code, customer or product name, etc. and have an onclick event to open the selected element), which is resized according to the size of the screen ... In short, make the user experience nicer. It would be fantastic!. The possibilities are many: change the color of each cell, source, etc. But, as I say, the only essential thing is: responsive columns and the onclick event. Can I expect it to be available for some date? Very, very, thanks!!
  7. Hello again. Is there any way to show a grid with the resizeable columns? I have tried TW3Grid adding columns and assigning their sizes. In resize I have assigned a percentage to each column (colCode = 5, colName = 80, colState = 15, for example) and I change the width to each of the columns: Grid1.Columns [n] .Width: = Grid.ClientWidth * colCode div 100, etc. The new columns are displayed correctly but those that already exist do not (it seems that the rows are simple concatenations of text). I do not know if it can be done with TW3CustomDBgrid, but I have not found examples. It is also important that they respond to the onClick event (if it can be per cell better than per row, if possible). Maybe it is possible to use listview with several columns?
  8. Ricardo

    Header Control and menu

    I do not have the problem in the registration of the forms, but in the first way that I indicate, if it works but in the second it does not. That is, when I follow these instructions (https://jonlennartaasenden.wordpress.com/?s=header) everything works correctly. But if I want to separate the creation of the header and its visualization, it does not work. To fix it, I have moved the createMenu execution to the Login form, after the password verification. (I guess I do not explain myself very well, I use Google translator and something will be lost)
  9. Ricardo

    Errors in editBox

    Perfect!
  10. Ricardo

    Header Control and menu

    HI. I have this code and works ok (on application declaration unit) FHeader := TW3HeaderControl.Create(Display); FHeader.SetBounds(5, -10, 100, 40); FHeader.Caption := 'xxxxxx'; FHeader.BackButton.Caption := '&larr;'; //arrow left FHeader.NextButton.Caption := '&#9776;'; //hamburger menu FHeader.NextButton.OnClick := createMenu; ... procedure TApplication.CreateMenu(Sender: TObject); begin FfrmMenu := TfrmMenu.Create(Application.Display.View); FfrmMenu.Name := 'MainMenu'; Application.RegisterFormInstance(FfrmMenu, true); Application.GotoForm('MainMenu', feFromRight); Application.GotoForm('MainMenu', feFromRight); end; (the menu appears when i press next button, but the header is visible on login form .) And this one that does not FHeader := TW3HeaderControl.Create(Display); FHeader.SetBounds(5, -10, 100, 40); FHeader.Caption := 'xxxxxx'; FHeader.BackButton.Caption := '&larr;'; //arrow left FHeader.NextButton.Caption := '&#9776;'; //hamburger menu FHeader.NextButton.OnClick := OpenMenu; ... createMenu(Application) procedure TApplication.CreateMenu(Sender: TObject); begin if FfrmMenu = nil then begin ShowMessage('Control 0'); //show message FfrmMenu := TfrmMenu.Create(Application.Display.View); FfrmMenu.Name := 'MainMenu'; Application.RegisterFormInstance(FfrmMenu, true); end; end; procedure TApplication.OpenMenu; begin ShowMessage('Control 1'); //show message Application.GotoForm('MainMenu', feFromRight); //don't show form menu ShowMessage('Control 2'); //show message end; The objective is to open a login form with the header not enabled and, if the password is correct, enable the header and see a menu when clicking on the next button. I do not see what I'm doing wrong
  11. Ricardo

    button click

    Hi. I have entered the error. If you declare a FLayout in private and then add this in Resize: FLayout.Resize (Self); the buttons can not be pressed with the mouse or with your finger. Solution: Add on form Activete: FLayout: = Layout.Client (Layout.Margins (3) .Spacing (3), [ Layout.Top (W3Label1), ... ]); FLayout.Resize (Self); and, in Resize if assigned (FLayout) then FLayout.Resize (Self); I do not know if it is an bug or ignorance on my part.
  12. Ricardo

    button click

    Hi. If I insert a TW3Button and assign it an event (by double clicking on OnClick in the object inspector) the onClick event is not triggered by clicking with the mouse or with the finger on the mobile. If I set the focus on the button and press Enter it will fire. I've also tried assigning it to an onclick event in InitializebOject What do I need to add?
  13. Ricardo

    Error updating

    Ignoring: is solved. An instance of smart blocked it (it was running after an unexpected shutdown)
  14. Ricardo

    Rest Api

    For if it helps someone. The error occurred when trying to connect to the server using xxx.xxx.xxx.xxx:puerto. If I connect through Apache, the error does not occur (something about CORS)
  15. Ricardo

    Errors in editBox

    Hi. I just tried it with chrome, edge and opera and it works correctly. I was just testing it with firefox (desktop and mobile) and it is with this that it works badly. Version: 3.0.0.209 Thx
×