Jump to content

Search the Community

Showing results for tags 'form'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • uniGUI Public
    • Announcements
    • General
    • Feature Requests
    • Installation
    • Deployment
    • Other Platforms
  • Licensing
    • Licensing
    • Ordering uniGUI
  • Bug Reports
    • Active Reports
    • Closed Reports
    • Old Bug Reports
  • uniGUI Development
    • General Development
    • uniGUI Releases & Roadmaps
    • Utilities
  • Mobile Platform
    • uniGUI Mobile
    • Mobile Browsers
  • Users Area
    • Sample Projects
    • Components and Code Samples
    • Third Party Components
  • Non-English
    • Non-English
  • Miscellaneous
    • Hosting
    • Server Security
    • Jobs

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 21 results

  1. I use this procedure to create a runtime form with HTMLFrame procedure TDMT.ShowListStart(TTl: STring); Var F : TUniForm; RollingStone : TUniHTMLFrame; Begin F := TUniForm(UniApplication.FindComponent('MyShowListName')); if Assigned(F) then FreeAndNil(F); F := TUniForm.Create(UniApplication); With F Do Begin // Parent:=MainForm; AlignmentControl:=uniAlignmentServer; ClientHeight := 512 ; ClientWidth := 1248; OldCreateOrder := False ; Width:=Round(Screen.Width/4); Height:=Round(Screen.Height/2); Left:=Screen.Width-Round(Screen.Width/8); Top:=Screen.Height-Round(Screen.Height/4); Position:=poScreenCenter; BorderStyle:=bsSingle; BorderIcons:=[biMaximize,biSystemMenu]; Name:='MyShowListName'; KeyPreview:=True; Rtl:=False; Caption:=''; CaptionAlign:=taCenter; FormStyle:=fsStayOnTop; OnKeyDown:= KeyDownConfig; Caption:=TTl; FreeOnClose:=True; End; RollingStone:=TUniHTMLFrame.Create(F); With RollingStone Do Begin Parent:=F; AlignWithMargins := True; RTL := True; Align:=alClient; AutoScroll := True; Name:='MyShowListRollingStoneName'; end; End; And I use the normal form buttons to close it. This form closes without issue when called on a frame But if it is called while working on a form, the regular close button cannot close the form The form is designed as a server side How can I solve this problem?
  2. Hi all, is it possible to call methods (or read/set properties values) contained in a form, without showing the form itself? For example: in my project there are 2 forms: Main and Unit1. Unit Main: //AllFeatures: Forms,Callback,icon-form-fieldui unit Main; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, uniGUITypes, uniGUIAbstractClasses, uniGUIRegClasses, uniguiclasses, uniGUIForm, uniMemo, uniGUIBaseClasses, uniButton; type TMainForm = class(TUniForm) UniMemo1: TUniMemo; btnTest1: TUniButton; bntTest2: TUniButton; procedure btnTest1Click(Sender: TObject); procedure bntTest2Click(Sender: TObject); private { Private declarations } public { Public declarations } procedure ShowCallBack(Sender: TComponent; AResult:Integer); end; function MainForm: TMainForm; implementation {$R *.dfm} uses uniGUIVars, MainModule, uniGUIApplication, Unit1; function MainForm: TMainForm; begin Result := TMainForm(UniMainModule.GetFormInstance(TMainForm)); end; procedure TMainForm.bntTest2Click(Sender: TObject); begin //I'd like to call the function "UniForm1.Test" without UniForm1 shows UniMemo1.Lines.Add(UniForm1.Test); end; procedure TMainForm.btnTest1Click(Sender: TObject); begin //I'd like to set the "UniForm1.pMessage" value without UniForm1 shows UniForm1.pMessage:='TEST!'; end; initialization RegisterMainFormClass(TMainForm); end. Unit1: unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, uniGUITypes, uniGUIAbstractClasses, uniGUIClasses, uniGUIForm, uniGUIBaseClasses, uniButton, uniLabel; type TUniForm1 = class(TUniForm) UniButton1: TUniButton; UniButton2: TUniButton; UniLabel1: TUniLabel; private { Private declarations } public { Public declarations } pMessage: string; function Test: string; end; function UniForm1: TUniForm1; implementation {$R *.dfm} uses MainModule, uniGUIApplication; function UniForm1: TUniForm1; begin Result := TUniForm1(UniMainModule.GetFormInstance(TUniForm1)); end; function TUniForm1.Test: string; begin Result:='Hello world'; end; end. Is there any chance to execute btnTest1Click or btnTest2Click without the form Unit1 is displayed? Thanks in advance.
  3. Hi all, With following code changed Form window. I would like to change also Close button color from white to black. Any idea how to solve this issue? Thanks in advance. Marko Delphi 10.3 rio, UniGui: 1.90.0.1550 with Fstate.WebForm.JSInterface do begin JSAddListener('afterrender', JSFunction('sender','var me=sender; '+ 'me.header.el.setStyle({"background-color": "silver"}); '+ 'me.header.el.setStyle({"background-image": "none"}); '+ 'me.header.titleCmp.el.setStyle({"color": "black"}); '+ 'me.el.setStyle({"border": "solid 1px silver"}); '+ 'me.el.setStyle({"background-color": "silver"});')); JSConfig('baseCls', ['x-panel']); end;
  4. Good morning, I wonder if I can change the intensity of the shadow, after I open a form in ShowModal or Message. Today the shadow is clear, however like to make it darker. Thank you.
  5. Hi Guys, I am working on a Panel which I would like to position center of screen or my main form. I came into some issues when resizing the browser. I attached the screen and case project. Using uniGUI 1.90.1522 and Delphi Rio ... Any inputs and suggestions are highly appreciated. Thanks, Frances Panel_Resize.zip
  6. I am testing something in scene of dynamic create Frame/Form . As a rule, in one From or Form , we can call jscode ajaxRequest(sender,"method",[{Params}] ); , and respond to delphi procedure AjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings); . sender ==> Ext.getCmp("id"), id ==> sender.id (jscode) . id of Frame ==> frame.FormRegion.JsId; (pascalcode) . if we pass id of target Frame to source Form , then we can call target frame's method by begin self.unisession.addjs('ajaxRequest(Ext.getCmp("id"),"Method",[{params}])'); end; in source Form . same thing with Frame and Frame. id of Form ,I can't get , (but we have form.show(callbackproc) and form.showmodal(callbackproc) ). So, how to get the JsId of a UniForm ?
  7. Good night people, What happens ? My form goes blank a few times a day, happening 3 to 4 times in a row, and the only way to get back to normal is by refreshing the system page (F5 or restarting via the link). What can cause the form to lock up and go blank like this? Log Error: BetterFuell.dll: 00000290: 20:49:44 [SendCommand Error, Node: 0]:Socket Error # 10061 Connection refused. BetterFuell.dll: 00000290: 20:49:45 [SendCommand Error, Node: 0]:Socket Error # 10061 Connection refused. BetterFuell.dll: 00000290: 20:49:58 [SendCommand Error, Node: 0]:Socket Error # 10061 Connection refused. BetterFuell.dll: 00000290: 20:49:59 [SendCommand Error, Node: 0]:Socket Error # 10061 Connection refused.
  8. Hi We would like to integrate general help system (for example) in our application. It will be nice if help button can be placed in the right side of form captions(title) (near to standard close button) ; So, my question is what is the right way to add custom buttons in the form captions Thnaks Kamen
  9. Good afternoon. I have a situation. When declaring form1 within form2 in uses and then referencing an Edit or other component, the system instead of picking up information, it opens form1 instead of just picking up information from the field. Example: 1. Form1 is already open and inside it has a Button that calls form2; 2. Inside form2 I need to load form1 Edits information, so I do so: Edit2.text: = Form1.Edit1.text; And instead of loading the data from Edit1, it opens a new instance of Form1. In pure Delphi this works normally, but with Unigui, it opens a new instance.
  10. Hi, I created a new form in my project named form1 and i want to open this form in a new browser tab when i click on a button from the mainform? Best regards Jack Amin
  11. Hi Farshad, I know it's a "stupid" question, but why is it mandatory to display Form after creating it in UniGui? Is not there really a way around this? I understand that I'm messing with the View layer of the application, and it does not make much sense to tinker with the View and not display it. But sometimes we want to just get a name from a Form component, or a component property, or even run some component event on the Form.
  12. Bom dia, gostaria de saber se seria possivel eu contruir no unigui um formulario, liso sem bordas como segue o modelo em anexo. Cadastro empresa ai não possui bordas, quero fazer forms assim. Good day , I wonder if it would be possible I build in unigui a form , flat borderless as follows the model attached. Register now there does not have borders, I want to do so forms. http://sharingsistemas.com.br/
  13. How do I get a value that is in the frame and send to a form created as modal? In vcl I created a property and passed before calling showmmodal! But at unigui I did not see how! Thanks Zanona
  14. How do you get a form, except for the MainForm which can be set to mfPage, to display without a "window" border/frame? The idea is to display a modal form which looks like a white panel with rounded corners... Thanks.
  15. Hi everyone, Im trying to display a form(form4) inside another form(form3) that has a panel and that panel would act as a layoutbase for form4 but im not getting it to work. I tried to first show the form ex form4.show and that works but then when i do form4.SetParent(form3.layoutbase); i keep getting access violation error. THIS should happen onCreate for form3, i have attached to screen shots to easier understand want im trying to do. Best Regards Christian Johnson
  16. Hi guys! It is to disable resizing a form when I set in form: borderStyle = bsNone Because, the user can resize the form, and I want to lock this option. Thks
  17. Good afternoon. Before, in Delphi 7 for desktop I created the forms at runtime with the following command: if Fm_Client = nil then Fm_Client: = TFm_Client.Create (Application); Fm_Client.ShowModal; And to close the form I released the memory with the command: Fm_Client: = nil; How to do this same procedure in uniGUI? I tried to do and XE5 did not accept the command. Just like the previous Delphi, I create forms at runtime. Tks, see ya later. ------------------------------------- Boa tarde. Galera, antes, no Delphi 7 para desktop eu criava os formulários em tempo de execução com o seguinte comando: if Fm_Client = Nil then Fm_Client := TFm_Client.Create(Application); Fm_Client.ShowModal; E ao fechar o formulário eu liberava da memória com o comando: Fm_Client := nil; Como fazer esse mesmo procedimento no uniGUI? Eu tentei fazer e o XE5 não aceitou o comando. Assim como o delphi anterior, quero criar os formulários em tempo de execução. Obrigado, até mais.
  18. I am getting further in having my app actually do something useful. I have 5 questions that are probably simple to answer, but since I'm a NEWBIE, I don't know the answers to them. QUESTION #1: I see two ways to create forms... 1. MyForm := TUniForm5.Create(UniApplication) 2. Result := TFormAnchor(UniMainModule.GetFormInstance(TFormAnchor)); Since method #2 is more commonly used everywhere, why do #1? Which is better? I also noticed that a bunch of forms have this sort of thing at the end... initialization RegisterClass(TUniMaskEdit); I presume this is so that the... FrC := TUniFrameClass(FindClass(FClassName)); line of code will find the class and be able to instantiate it onto a Tab in the page control, when the user clicks on the TreeView node? QUESTION #2: I noticed that you mentioned that the SHOW/SHOWMODAL should be in the same procedure that creates the form object, in an earlier post. Why should it be shown in the same event that creates the form object? QUESTION #3: What makes a form a "FreeForm" ? The forum said in an earlier post... Free form should be created in code manually. It is not managed by framework. What does that mean? QUESTION #4: Why is there a unitTimer? is TTimer not any good? QUESTION #5: From an earlie post, I saw... For example several times I've seen that developers do things like below: procedure TMainForm.UniEdit1KeyDown(Sender: TObject; var Key: Word; Shift: TShiftState); begin if Key = 13 then begin // do somthing end; end; Which doesn't make sense at all when you deploy your app on the web. It would make sense only in a gigabit LAN, but certainly makes no sense on the internet. I do this EXACT thing when the user presses the ESC key so I can exit the form. Why is that a bad idea? How else would I close the form when the user presses the ESC key?
  19. Hi, how can I open a form from an css menu I am using a htmlframe but I dont know how to capture the selection clicked in the extevent for execute an action
  20. Hi! I am wondering if there is a way to remove the border from the main form, i tried to set the borderstyle to bsNone but can still see a border(window)? Is there a way to make the application windowless or look like it is? Best Regards Chrisjohn82
  21. 1-Windows 7 Professional, Delphi XE, uniGui 0.93 Problem: Hi, I've been facing some problems trying to show forms using TUniMainMenu. Sometimes when I click the TUniMainMenu Item, they simply don't show the form. But when I edit some random line in the unit and recompile, the form shows normally. However, sometimes it doesn't work. What it would be?
×
×
  • Create New...