Jump to content

dpfmp

uniGUI Subscriber
  • Posts

    36
  • Joined

  • Last visited

Recent Profile Visitors

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

dpfmp's Achievements

Newbie

Newbie (1/4)

6

Reputation

  1. Hi Eduardo, I just reported what I believe is the same problem (cf UniScrollBox if vertical scrollbar not at top position at compile time). I hadn't seen your post. Until they come up with a solution, we need to make sure that the vertical scrollbar is always a the top position at compile time. Denis Prince
  2. Hi Sherzod, 'Top' has to do with the UniScrollBox and not the vertical scrollbar. I guess what you mean is that for every uniscrollbox having a verticalscrollbar at design time, I should always drag the scrollbar at the top position before compiling. That is what I'll keep doing. Thank you
  3. Hi Farshad, Is there a way to force the scrollbar to the top position in the OnBeforeShow event? The VCL version has a VerticalScrollBar.Position that can be used to bring it back to the top. As it is, any uniscrollbox with a vertical scrollbar left in a position other than the top position at design time will make part of it unusable at runtime. Thank you for looking into it. Denis Prince
  4. Hi, Using UniSession.AddJS(uniScrollbox.JSName+'.getTargetEl().scrollTo(''Top'', 0, true);'); gets the vertical scrollbar to the top position at runtime but if the vertical scrollbar was left anywhere but at the top position at compile time, there is no way to reach the top part of the scrollbox anymore. If you drag the 2 scrollbars to their bottom position and click 'ScrollTo TOP' button, the left scrollbox is going back to the top position but the MID scrollbox returns to button4 and the first 3 buttons are unreachable. The position of the vertical scrollbar at compile time becomes the new top of the scrollbox at runtime. I made a small test application: ScrollBoxTest.7z Delphi 10.1 UniGui 1.90.0.1496 ScrollBoxTest.7z
  5. Hi, With UniDBGrid and Paging active, if the mouse hovers over one of the Paging buttons, UniFormActivate is called repeatedly as from inside a timer. Is this normal? Denis Prince D10.1 UniGui 1.90.0.1496
  6. Hi Sherzod, I know you are very busy but have you had a chance to check it again and see if it is possible to use the toolTip to show information from the lookup table? Thank you again for your help, Denis Prince
  7. This would mean adding sometimes 3 or 4 action columns to the grid just to display the lookup information. This is not exactly the way the cell hint works in Devex but I am wondering if it is possible to use the tooltip to get the same behaviour... All my grids are in read-only mode. I guess I could use the OnCellClick to display the lookup information. Not as clean as passing the information in the tooltip but if it's not possible... Thank you
  8. Hi Sherzod, I am converting this Delphi Win32 project which is using DevExpress grids and NexusDB database engine. One form can show information on up to 15 tables (grids) in a M/D relationship. The OnSelectionChange is used with a SetRange ( direct access cursors ) in most places for very fast performance and the same grid on the form can be used to display information from different tables ( views created dynamically ). Selecting the fields in the main query would mean converting everything to SQL or adding calcuted fields to almost every cursor in order to have access to the lookup information which would mean a lot of changes in the original code which is using the 'onGetCellHint' from the DevEx grid to access the information using a call to an external function. Can the client ExtEvent 'viewready' have access to data that is not already loaded in the grid? or is it just not supposed to and I am using it the wrong way? Than you again for your help, Denis Prince
  9. Any suggestions Mr Sherzod? I badly need this. Cordially, Denis Prince
  10. Hi, In many grids, I use cell hints to display different information than the one that appears inside the cell. For example, one cell contains information about a license number, the hint would display the client name that is associated with this license number. I have a function in MainForm that returns the client firstName and lastName for that particular license: function TMainForm.GetClientName(const Licence: integer): string; var S: string; begin with ClientTB do begin if FindKey([Licence]) then Result := S + Trim(Fields[2].AsString) + ' ' + Trim(Fields[1].AsString); else Result := ''; end; end; What I am trying to achieve is this: I am using this code from here: UniDbGrid.ClientEvents.ExtEvents Finally my question is: How can I access MainForm.GetClientName with record.data[3] as parameter so that I can display the information about the client in the tooltip? Thank you, Denis Prince D10.1 UniGUI 1.70.0.1493
  11. I believe using a range has a much better performance than using a filter. (NexusDB)
  12. Using a Refresh on the detail grid seems to do the trick. if Assigned(UniDbGrid1.DataSource) then with UniDbGrid1.DataSource.DataSet do begin DetailsTB.SetRange([Fields[0].AsLongWord], [Fields[0].AsLongWord]); UniDbGrid2.Refresh; end;
×
×
  • Create New...