Jump to content

artem_niko

uniGUI Subscriber
  • Posts

    635
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by artem_niko

  1. In general, I figured out my question myself and it's not relevant. But, I have another question. Is it possible to make the created form on top of windows, for example, so that I can move it around the screen outside of the main application? For example, let's say I have 2 monitors on one computer. I want to run the project on one monitor, and move the created form to the second monitor. Is it possible to do this?
  2. Good afternoon! I solve this problem: I need to create a form dynamically and load my frame on it, and if the form already exists, then close it (destroy it), along with all the contents, and create it again with a frame. Simply put, recreate an already existing and previously created dynamically form. Everything should be done with one button. Here is the form creation code that creates the form dynamically initially: TestForm:=TUniForm.Create(UniApplication); TestForm.Height:=500; TestForm.Width:=500; TestForm.Parent:=MainForm; TestForm.Name:='test'; TestForm.BorderIcons:=[biSystemMenu,biMaximize]; TestForm.BorderStyle:=bsSizeable; TestForm.Caption:='test'; TestForm.Show; Before the form creation code, I tried to add such a code to search for and delete a previously created form: for i:=Screen.FormCount-1 downto 0 do begin if Screen.Forms[i].Name = 'test' then Screen.Forms[i].Free; end; The first time the form is created: Without closing this form, I try to recreate it, but I get an error: I ask for help in solving my problem Initially, I thought that maybe you can create an empty form in the usual way and use it already for my frames, because I need to upload different frames to separate instances of the form, but it seems to me that this will not work...
  3. Perfect! Working Tell me something else. I am creating a form dynamically and I want to prescribe these effects to a dynamically created form. How to correctly register this in the code forcibly, maybe somehow through JSInterface, how?
  4. Hello! How do I create a similar code so that the form disappears as smoothly as it appears, thanks to the code in windows.show events?
  5. Good afternoon! I am creating a form dynamically. On the created form I create and show my UniFrame. Naturally, I prescribe Parent for my frame like this: MyFrame1:=TUniFrameClass(FindClass('TMyFrame1')).Create(MyDynamicForm); MyFrame1.Align:=alClient; MyFrame1.Parent:=MyDynamicForm; How close MyDynamicForm when and after destroy of MyFrame1? 1. Destroy MyFrame1 (already working) 2. Close/destroy MyDynamicForm.
  6. Good afternoon! I am creating a form dynamically. On the created form I create and show my UniFrame. Naturally, I prescribe Parent for my frame like this: MyFrame1:=TUniFrameClass(FindClass('TMyFrame1')).Create(MyDynamicForm); MyFrame1.Align:=alClient; MyFrame1.Parent:=MyDynamicForm; How close MyDynamicForm when and after destroy of MyFrame1? 1. Destroy MyFrame1 (already working) 2. Close/destroy MyDynamicForm.
  7. Good afternoon! For some reason, when icons are found in a UniDBGrid column, the background of the icon is black instead of transparent. I am using icon format: What modules should be added so that the icons do not have a black background? My uses: uses Windows, Messages, SysUtils, Variants, Classes, Graphics, FireDAC.Phys.FBDef, FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Error, FireDAC.UI.Intf, FireDAC.Phys.Intf, FireDAC.Stan.Def, FireDAC.Stan.Pool, FireDAC.Stan.Async, FireDAC.Phys, FireDAC.Phys.FB, FireDAC.VCLUI.Wait, FireDAC.Stan.Param, FireDAC.DatS, FireDAC.DApt.Intf, FireDAC.DApt, uniButton, uniBitBtn, UniFSButton, uniPanel, uniGUIClasses, uniBasicGrid, uniDBGrid, System.Actions, Vcl.ActnList, uniMainMenu, uniSplitter, FireDAC.Comp.Client, Data.DB, uniGUIBaseClasses, uniImageList, FireDAC.Comp.DataSet, FireDAC.Phys.IBBase, uniPageControl, Vcl.Controls, Vcl.Forms, jpeg, pngimage, System.Math, uniGUITypes, uniGUIAbstractClasses, System.IniFiles, Soap.EncdDecd, uniGUIFrame, System.TypInfo, uniLabel, uniCheckBox, uniDBNavigator, uniEdit, uniGUIForm, uniTimer, UniFSiGrowl, uniImage, uniWidgets, uniDBEdit, IdTCPConnection, IdTCPClient, IdExplicitTLSClientServerBase, IdMessageClient, IdSMTPBase, IdSMTP, IdMessage, IdBaseComponent, IdComponent, IdIOHandler, IdIOHandlerSocket, IdIOHandlerStack, IdSSL, IdSSLOpenSSL, IdHashMessageDigest, uniMenuButton, UniFSMenuButton, uniHTMLFrame, UniFSGoogleChart, uniRadioButton, uniStringGrid, uniChart, uniMultiItem, uniListBox, uniDateTimePicker, System.DateUtils, UniFSToggle, uniSpinEdit, uniComboBox;
  8. Hello! How change size of diagramm in UniChart? At now, labels out of diagramm... I need show all labels: Or anouther question: how show labels inside pie? This is not working:
  9. Excellent! Perferct! Thank's, @Sherzod!
  10. This title row creating with this UniMenuButton)
  11. How change color for this white row? function tabPanel.afterrender(sender, eOpts) { var tabItems=[]; this.tabBar.getRefItems().forEach(function(item,i){ tabItems.push({ icon: item.icon, index: i, text: item.title, handler: function(item){ sender.setActiveItem(item.index) } }) }); this.addTool({ text: 'Меню', xtype: 'splitbutton', menu: new Ext.menu.Menu({items: tabItems}) }); } i was tryed write this.addTool({ text: 'Меню', xtype: 'splitbutton', color: red, menu: new Ext.menu.Menu({items: tabItems}) But this is not working...
  12. Somtimes... Or so: UniPanel1.JSInterface.JSCode('var tm=new Ext.util.TextMetrics();'#1'.header.insert('+ (UniPanel1.ToolButtons.Count + 1).ToString + ', ' + '{xtype:"tbspacer", width:'#1'.header.title.getWidth()-(tm.getWidth('#1'.getTitle())+100)});'); UniPanel1.JSInterface.JSCall('header.insert', [0, UniContainerPanelTitle3.JSControl]); More often the second option, because. there you can embed panels with buttons at once, rather than add them one by one through the title property
  13. Excellent! Everything I need. One last question: can this UniMenuButton only be embedded in a UniPageControl, or can it be embedded in the header of a UniPanel, for example? Simply, in the case of the UniPageControl, a white bar appears that takes up space. If you embed a UniMenuButton in the header of a UniPanel, then you can additionally place buttons there, for example, later.
  14. How write this code in some event OnCreate, for example, of form? Using UniNativeImageList...
  15. Ok. And how about UniNativeImageList? I'm using different icons for tab sheet's...
  16. I'm don't know) I'm using 1555 professional. So, what about using UniNativeImageList? I want use my icon, not FontAwesome.
  17. How use this? So, I can't use UniNativeImageIndex? Why? May be this JS code possible write in OnCreate and set imageindex from UniNativeImageIndex?
  18. Incredible! Excellent! Thank's, @Sherzod! One small question: how add icon (icon as in all tab sheets in ImageIndex)?
  19. Ok, I'm will be waiting answer from you.
  20. What propertys of UniMenuButton? Some JS? Anchors? How you create top line in UniPageControl with this UniMenuButton?
  21. This is standard UniMenuButton? How about if tablets will be 10, 20 or more? Where will be this button?
×
×
  • Create New...