Jump to content
uniGUI Discussion Forums


uniGUI Subscriber
  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by mierlp

  1. Hi When i delete a pages from a uniPageControl i got this error, see attachment. THis only occurs using uniGui, not in vcl application I even created a new form, copied the uniPageControl to it, deleted page and again the same error I use : - Delphi RIO 10.3.3 (also appears in 10.3.3) - uniGui but also happends in Did compleet reinstall from uniGui, cleaned files/registry Any suggestions ?
  2. New blank testcase, same result. Just delete a tab from the pagecontrol tescase2.zip
  3. Hi Sherzod,, That does NOT help. I deleted all third part components even FastReport, MyDac and additional components etc. Created a new project and still when deleting a page i get the error, see below
  4. Hi Sherzod, Testcase attached. Just open in design mode open frmTableVendorEdit Deleted UniageContrlol_VendorHomeBasic.uniTabSheet2 with the tekst 'AKKOORD'. in this testcase the error also appears Regards Peter testcase.zip
  5. mierlp

    How to remove this border ?

    Is there already a solution for it ?
  6. Hi Dominique certainly has a good point and describes what is currently happening and what he, -and I certainly think others here on the forum, experience. New functionalities is nice, but more important is a stable platform and where bug fixing should receive attention. Several signals have already been issued on the forum about the long stay-out of fixes, up-to-date documentation and a roadmap, - the last update is from February I think. In any case, I don't know what Farshad's ambition is with uniGui because he responds fairly rarely to this type of message. A shame because it is a signal that is being delivered by its users of the product and I think you should do something with it. I am uniGui user from the first hour and I still think it is a very nice product and a great achievement that Farshad has achieved, we all agree with that. We have all developed one or more applications in uniGui and maybe even sold them. That would not have been possible without uniGui. But it does not stop there and the developments in the market, the demand of the users continues. Today's applications must be multi-device if you like it or not. The application must have the same look and feel on both mobile and desktop / tablet ... responsive But just like Dominique I am increasingly worried about the future / continuity of uniGui .. why ... because there is insufficient communication, bug fixing is too slow, you have to use work-arounds to realize things that you do not like structural solution. Finally my biggest concern is that I think Farshad is still the only developer. Points that have already been mentioned in previous post but have not provided clarity. A framework such as uniGui has a lot of potential, but then more development capacity must become available, bug fixing must go faster and communication must be improved. It is not about which framework is better, that everyone must determine for themselves and another cannot do for you. Also not with examples of what the one framework can or cannot do. Every framework has its own specific characteristics and use, and also everyone uses it in its own way and for its own application. What you do see is that there are new frameworks that will certainly develop faster and meet the current needs of our customers, yes they are still in their infancy, but are quickly moving to a higher level with a growing number of users. Regards Peter
  7. mierlp

    Windows Server 2016 or 2012 R2

    Official the mainstream support for 2012 R2 is ended in 2018. The extended support is extended to 2023 so for that you can still use 2012 R2 So i would always take the latest version, there are also a lot of improvements in 2016 https://www.microsoft.com/en-us/cloud-platform/windows-server-comparison
  8. Hi, I used it on Win32 applications which was running on a vps server. We stored the report which are created with Fastreport in the database so everyone could use them. One of the issues is the grow of you're database. When the use images in a report and don't limit the size of the image than a report becomes large and also the database. When they use a image which is 4 MB, then you're database is also growin with 4 MB. And with lot's of records...it grows hard. Then you also have to load the database records...which also cost performanance. Now with uniGui i also save uploaded records on disk..it's cheap and fast..the same way Mohammed describes. But..if you would like to store files in a database...this is what i used. Store files in a database requires a blob field. When you use MySQL then use a LargeBlob field. The code below is used for the FastReport i used if dmDocument.Doc.State in [dsBrowse] then begin dmDocument.Doc.Edit; end; try MemStream := TMemoryStream.Create; Stream := dmDocument.Doc.CreateBlobStream(dmDocument.Doc.FieldByName('Report'), bmReadWrite); frxReport.SaveToStream(MemStream); MemStream.Position := 0; Stream.CopyFrom(MemStream, MemStream.Size); if dmDocument.Doc.State in [dsInsert,dsEdit] then begin dmDocument.Doc.Post; end; finally MemStream.Free; Stream.Free; end; A old example using a Win32 application with a DBISAM database. I save the file into a blob field and don;t forget to save the file+extension also in the database: procedure TFormMain.FileLoad; var fileInfo: _WIN32_FILE_ATTRIBUTE_DATA; TotalSize: int64; begin FormMain.OpenDialog.Title:='Select file'; if FormMain.OpenDialog.Execute then begin GetFileAttributesEx(PChar(FormMain.OpenDialog.FileName), GetFileExInfoStandard, @fileInfo); TotalSize := fileInfo.nFileSizeHigh shl 32 or fileInfo.nFileSizeLow; if TotalSize>6000000 then begin Application.MessageBox('This file can't be saved into the database it's larger then 6MB.', 'Warning', MB_OK+MB_ICONASTERISK+MB_DEFBUTTON1+MB_APPLMODAL); Abort; end; if TotalSize<6000000 then begin if dmDocument.Doc.State in [dsBrowse] then begin dmDocument.Doc.Edit; end; Bstream := dmDocument.Doc.CreateBlobStream(dmTables.Document.FieldByName('FileContent'),bmWrite); try Bstream.Seek(0, soFromBeginning); Fstream := TFileStream.Create(FormMain.OpenDialog.FileName, fmOpenRead or fmShareDenyWrite); try Bstream.CopyFrom(Fstream, Fstream.Size) finally Fstream.Free end; finally Bstream.Free end; dmDocument.Doc.FieldByName('FileContent').Value:=ExtractFileName(FormMain.OpenDialog.FileName); end; end; Saving the file to disk if dmDocument.Doc.FieldByName('FileContent').Value='' then begin Application.MessageBox('There's no file available!.', 'Message', MB_OK+MB_ICONEXCLAMATION+MB_DEFBUTTON1+MB_APPLMODAL); Abort; end; if dmDocument.Doc.FieldByName('FileContent').Value<>'' then begin FormMain.SaveDialog.Title:='Save file'; sFile:=dmDocument.Doc.FieldByName('FileName').AsString; SaveDialog.FileName:=cBestand; if FormMain.SaveDialog.Execute then begin Bstream := dmDocument.Doc.CreateBlobStream(dmDocument.Doc.FieldByName('FileContent'), bmRead); try Bstream.Seek(0, soFromBeginning); with TFileStream.Create(SaveDialog.FileName,fmCreate) do try CopyFrom(Bstream,Bstream.Size) finally Free end; finally Bstream.Free; end; end; end;
  9. mierlp

    RAD Studio 10.3.3 (available)

  10. i Would be nice if this could be implemented as standard properties after 4 years: http://forums.unigui.com/index.php?/topic/6727-pagecontrol-properties/&tab=comments#comment-34202 additional properties : tabAlginment TabHeight TabMargin TabPosition (top, left, right, bottom) TabSpace (space between tabs) TabWidth (set width of tabs) Nice to have : Hottrack Hottrack Color HotTrackStyle (tab, tekst or current tab where the 'tab draws a nice colored line at the top of the tab)
  11. Hi When you put a unidbedit or uniedit on the form and use the FieldLabel option AND you put a uniSpeedbutton next to it you can't get them aligned or you have to put the button lower on the form. See example and you see the result. Nice the fieldlabels but you can't put a component next to it. Raize component has a ButtonEdit and DBbuttonEdit component which contains a button in the component. There is also a trigger OnButtonClick Would be a nice if we can have this functionality/components in uniGui Anyone suggestions how to solve the issue. Otherwise i have to use uniLabels above the fields like you can see in the example.
  12. mierlp

    printing self-adhesive labels in zebra tlp 2844

    Hi I don't think you can use my example because I save the designed reports in a database. When a label or wristband is printed, the report is looked up in the database and loaded and then printed. Printing is then done in the same way as you normally do when it is loaded from disk. The printer on which this report should be printed is also stored in the database because I often use 9 printers at the same time, each with its own color wristband. // Set options FormMain.frxReport.PrintOptions.ShowDialog: = False; FormMain.frxReport.PrintOptions.Copies: = 0; // Set correct printer FormMain.frxReport.PrintOptions.Printer: = dmMain.Scan.FieldByName ('showConfigIDPrinterName'). AsString; // Prepaire report FormMain.frxReport.PrepareReport; // Print report FormMain.frxReport.print;
  13. mierlp

    printing self-adhesive labels in zebra tlp 2844

    Hi, If you have installed the windows drivers for this printer you can just print like you normally do on a laserprinter with A4 paper. Just create you label design with fastreport (which i use) and you can print. I print on several therminal TSC label printers wristbands, labels or tickets. All based on a design with in fastreport. Regards Peter
  14. hi Lot's of us here on the form are using uniGui from the beginning. I was wondering how you're application GUI looks ..for seeing and inspirion what can be done with uniGui...some screenshot would be wonderfull. Regards Peter
  15. hi I have a table called 'Status' with the following rows: - StatusID (autoinc) - Name (var) - Color (var) The user has to select a color for a certain status. Let say the follow status : - In progress = yellow - Done = green The selected color is saved in the field 'Color' and contains the color colde like '$0000B9FF' Now i would like to show in a DBgrid, see attachment: - the name - a big dot with the corresponding color from the field 'Color' How can i do this ?
  16. mierlp

    show colored bullet in dbgrid [SOLVED]

    Hi I found a solution...what did i do : the field color contains the correct color for the bullet i created a calculated field called 'bullet' in the onCalcFields i added this code : dmStatus.StatusBooking.FieldByName('Bullet').value := '='; i added the field 'bullet' as a extra column to the uniDBgrid change the font.name for this column to 'webdings' <== important because now you got a nice big bullet change the font.size for this column to 20 <== then you got a nice big button uniDBgrid.OnDrawColumnCell i added this code : if ACol=1 then begin Attribs.Font.Color := uniDBgrid.Datasource.Dataset.FieldByName('Color').value; end;
  17. mierlp

    show colored bullet in dbgrid [SOLVED]

    Hi Sherzod Thank you for the examples but I prefer not to work with images. You should also always include this with the installation and you have to make translation for the selected color and which image it it. Is there no other way. I am thinking, for example, of the use of ALT codes. Every new record receives this ALT code, which then has a standard white color. In the dbgrid the font size and color are adjusted to the value in the 'Color' field But no idea if that's possible and i solution Or is there a solution to based on a separate table which contains colored images / color code from the bullets and showing them in a dblookupcombobox...which is not possible i think? Regards Peter
  18. mierlp

    My application freeze

    hi Did you use the file-based solutions or with the server.exe ? Make sure you have enought rights to create dbisam.lck files regards Peter
  19. Hi In the attachment a simple example how to send a sms text message. In this example is use www.bulksms.com for sending my sms messages but you can have you're own one if you want. Every sms provider has his own url for sending messages, in this case you see the url from bulksms. So in you're own case you have to see the documentation of the sms provider. Most sms providers have also mail-to-sms, but for me this is a simple low-cost solution to create you're own 2FA. Regards Peter SendSMS.zip
  20. mierlp


    Hi You need a Windows VPS server for you database and uniGui runtime + application. https://www.bluehost.com/hosting/vps https://www.bluehost.com/hosting/vps https://www.strato.nl/server/vps-windows/ There are some difference between the vps hosting companies regarding CPU, Memory, Harddisk and BandWidth/Traffic BlueHost offers 1 TB bandwidth and others are unlimeted Also see this thread http://forums.unigui.com/index.php?/forum/12-hosting/
  21. mierlp

    Structure large project (ERP)

    Hi I use mysql server with devart component. Easy to host and built mirroring. I have a out 30 customers using the application and every customers has own database environment. Every database environment has via own database backup/restore possibility which we manage. Using a SQL script it is easy to update or change tables. Yes hou have to do it several times but thats easy to automate. But restoring database for one customer can be tricky when eveything is in 1 environments. See also https://digitalguardian.com/blog/saas-single-tenant-vs-multi-tenant-whats-difference
  22. mierlp

    Structure large project (ERP)

    Hi Dominique I had the same situation in a vcl desktop situation years ago. I started with different modules and functionality in .dlls. Based on the subscription the user get extra functionality. After a year a build all functionality in one .exe because sometimes functionality of a .DLL or a part was needed in a other part of the software. Not in the beginnen because the design was completed but after a year new functionality was needed. Sure it can be done but you have to design you program in small pièces. Now i put procedures or functions in datamodules so i can call them when needed and linked to the forms or modules where user can have subsriptions for. This is the way i build my unigui programs. I m also interestet how other members deal with this and learn from it.. so i hope more members will share there experiance Regards peter
  23. mierlp

    SMS Code Works In Exe But Not DLL Application

    Hi The example from drBob is very old..try my example where i use also a sms provider bulksms and messagebird You have to use the provided api link from you provider. I didn't try it using it as a .dll http://forums.unigui.com/index.php?/topic/11892-here-an-example-for-sending-sms/
  24. mierlp

    Resize field width

    See the mockup for illustration for what i need. See attachment when I make the following adjustments: - set uniFieldContainer2.Layout = fit - place a uniFieldSet on unFieldContainder2 with the fields - Result = they will be resized BUT edit2 and edit3 will be below each other instead of side by side
  25. mierlp

    Resize field width