Jump to content

M.Ammar

uniGUI Subscriber
  • Posts

    191
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by M.Ammar

  1. Hi This is really helpful , I wanted to thank you was looking for this Regards
  2. Hi that is better than what I need , you are the king thanks
  3. Hi Is It possible to hide the Edit part of TUniDateTimePicker, meaning I want to show only the button to select a date Can that be done? Reason is I use it in the main form and when I use the application on tablet or mobile it get focus all the time and show the onscreen keyboard and I don't want that. Regards
  4. thanks tested and working only on mobile, it didn't work on desktop, It have 2 small problems 1- in RTL it show in the left side over the clear button; 2- you cant center height if you using 2 themes; for desktop I use TUniComboBox and UniNativeImageList1to add user pic in TUniComboBox add a trigger in the triggers property and use image index to choose pic Regards
  5. Hi Thank you for reply you can use the demo as a test case because my db is SQL Server and I don't know how to make without C:\Program Files (x86)\FMSoft\Framework\uniGUI\Demos\Touch\DBListGrid add the flowing code and enable image visible for the column procedure TMainmForm.UnimDBListGrid1FieldImage( const Column: TunimDBListGridColumn; const AField: TField; var OutImage: TGraphic; var DoNotDispose: Boolean; var ATransparent: TUniTransparentOption); begin if SameText(AField.FieldName, 'Length (cm)') then begin if True then OutImage := UniImage1.Picture.Graphic else OutImage := UniImage2.Picture.Graphic; end; end you will find that the code is never called , unlike if you use UnimDBGrid you find that the code is called normally Regards
  6. hi I cannot get UnimDBListGrid1 to display images Column image Visible := True procedure TMainmForm.UnimDBListGrid1FieldImage( const Column: TunimDBListGridColumn; const AField: TField; var OutImage: TGraphic; var DoNotDispose: Boolean; var ATransparent: TUniTransparentOption); begin if SameText(AField.FieldName, 'isDirty') then begin if AField.AsBoolean then OutImage := UniImage1.Picture.Graphic else OutImage := UniImage2.Picture.Graphic; end; end; procedure TMainmForm.UnimDBListGrid1FieldImageURL( const Column: TunimDBListGridColumn; const AField: TField; var OutImageURL: string); begin if SameText(AField.FieldName, 'isDirty') then begin if AField.AsBoolean then OutImageURL := 'files/Dirty.png' else OutImageURL := 'files/check.png'; end end; Code is copied from the example and working with unimdbgrid but I need to replace it for many reasons. any suggestions Best regards
  7. Hi powergov I agree with you, after working with the UniGUI Mobile for sometime now, i came to conclusion that it is subpar if compared to UniGUI Desktop Application with many bugs and strange behaver especially if you have to work with RTL, most of my developing time is trying to workaround issues and find alternative ways to do what is seemingly straightforward. I wish that UniGui Team listen to you and start Giving more focus to mobile. Regards
  8. Hi Dominique you have a very nice interface here may I ask 1- what did you use for those notification counter icons in the title bar? 2- What software did you use to produce the user manual? Regards
  9. Hi All My Project I Hope you like it, its A Hotel Management System My Project1.mp4
  10. Hi I need a component in mobile like : TUniDBLookupComboBox to link to the DataSource to show a list of values and "return" the currently selected id. I have tried TUnimDBSelect but it show one item and cannot get the id from it. Best Regards
  11. Hi How To Control when to allow or prevent TUnimMenu to be dragged from screen Edge (At Runtime) , Example 1 - all my main form menus shows on other forms by dragging screen Edge on the new form, I want to stop that. (Screenshot) 2- if I used 2 menus on same side one cover the other and cannot be used. 3- some times when you drag a long Menu that is aligned to the top it stops before revealing all items. (Screenshot) also I noted the flowing 1- Option Cover Do not work if Menu aligned top (Only Right And Lift Works). 2- Option Revile Don't Do anything that I can see. Thanks And regards.
  12. +1, I was just looking for similar,
  13. Freeman35 thank you for reply Sleep is used as just an example (Maybe bad example) other code that I use is Query to generates a fastReport it take about 10 seconds to show report and hide the Menu the actual code is procedure TMainmForm.APrintContractExecute(Sender: TObject); begin UnimMenuAction.Visible := False; unimainModule.FDQUserBranchs.Refresh; // refresh query MainDataModule.OpenContractQry(1); // open query MainDataModule.OpenConConditions(); // open query TUnimPDFForm.Create(UniApplication).ShowModal(); end; the point is the I want the expected behaver to hide Menu without waiting until all the code is finshed; thanks again;
  14. Hi UnimMenu.visable waits until all the code for report generating to finish Before it starts to hide, this give bad user interface, user keep pressing the report Button again and again I tared to use screenmask but it don't affect the menu Only the main form. For Example this code procedure TMainmForm.Action1Execute(Sender: TObject); begin UnimMenu1.Visible := False; sleep(10000); end; why do the UnimMenu starts to hide after the sleep time? What to do to make it hide immediately? Regards
  15. I was able to regenerate the issue in the demo example: \FMSoft\Framework\uniGUI\Demos\Touch\DBListGrid 1- Change Main Form RTL To True. 2- Change All Columns Width To 60. 3- Run and Rotate the phone to landscape. Regards
  16. the columns titles are not align with the columns , titles to the right but the data are to the left. Data No 101 , 102, 103 ... Ech Must be under Title "Room"
  17. Hi Sherzod I have tested TUnimDBListGrid I coped it from the example you sent directly to my Mainform and changed the Dataset and columns Field names, but I got the result in the screenshot attached, the problem doesn't accrue in the demo example. I can't find out why Best Regards
  18. yes I want show read only columns in the editor, can that be done or I replace it with a panel with editors better??
  19. Hi Sherzod in order to workaround the grid issues for now, I will only display 4 columns in the Grid and will display the remaining of the data in the editor double click, only problem is all this data is for display not editing and if I choose Read only it will not display in the editor how can I achieve this >> make the editor show while read only or not editable? Best regards
  20. if you use Demo (uniGUI\Demos\Touch\DBGrid Column Resize) in RTL Mode you will fined Grid Mentioned Issues Just Change RTL To True; and also I want to add that column resize in RTL is not behaving Correctly ether in the same example (only title will resize and in the wrong direction with wrong Visual Effect) Update 1: No 4 , 5 are my mistakes Reason was : Form Size and Panel Layout not adjusted correctly Update 2: Temporary Workaround issue no 2 (A,B,C) change the (picker = dptFloated); Update 3: Workaround Grid Issues that Total Columns Width not more than screen width; Best Regards
  21. Hi, Since I finished the desktop application and moved to developing mobile application (So Far Only on the main form) for hotel management system, I have some issues especially if the application is working RTL = True; 1- the Title button on the main form that opens the side menu is not responding 20% of the time just Blink dark and side menu not show until you try again. the code is only (UnimMenuSide.Visible := True;) 2- I use A TUnimDatePicker on the Top of main form and I have 3 issues with this one: A. sometimes when I scroll down on the Main form, the UnimDatePicker menu to select date appears on the bottom of the screen without me touching the UnimDatePicker at all. B. Sometimes When I Actually touch the date to select a new date the selection comes with the date 31/12/2039 , and once I cancel selection and select again it comes with the correct date. (Screenshot Available : Dec 39). C. Sometimes After I hide the TUnimDatePicker, and Show TUnimDBGrid and try scroll down the UnimDatePicker menu to select date appears Empty (Screenshot Available : Empty Date) . 3 - TUnimDBGrid After Loading data In RTL Mode I fined the titles are not aligned with the actual columns (Titles aligned to the Right and Data columns are aligned to the far left) (Screenshot Available : Grid Load Titles Portrait) this will show even more when you have more columns than screen width. 4- TUnimDBGrid in landscape screen don't show Page change (Screenshot Available : Grid Load Titles Landscape). 5- TUnimDBGrid in landscape screen don't scroll down to see the rest of the records. 6- TUnimDBGrid in landscape screen scrolls left so far And Stay that way (Same result as Grid Load Titles Landscape screenshot) . I hope that these issues are because of me doing it wrong, but I follow the examples given, and I test the application on 3 mobile browsers (Chrome - Edge - Samsung ). Sorry for the long Post and thank you
  22. working perfect as expected One last thing, i need this code at Runtime so I can switch Back to defaults when language is English. Best Regards
  23. thank you for your help as always you save me, can you please give the code for this at runtime to change with language function afterCreate(sender) { sender.getPicker().getDoneButton().setText("Done!"); sender.getPicker().getCancelButton().setText("Cancel!") }
  24. Hi I have 3 points regarding UnimDatePicker 1- TUnimDatePicker have a bug sometimes show selection menu at year 2039 although the selected date as in the screen shoot show 27/06/2019, this mainly happen after the form leases focus by showing a side menu or something like that. 2- how can I prevent typing into TUnimDatePicker only allow selection 3- if any one can help me how to translate buttons and months names to Arabic. Regards
  25. Thank you Very Much For the Perfect Solution.
×
×
  • Create New...