-
Posts
608 -
Joined
-
Last visited
-
Days Won
2
Content Type
Profiles
Forums
Events
Posts posted by Frederick
-
-
I have the following OnKeyDown procedure for TUniDBEdit controls to move to the next control when the Return key is pressed. This procedure simulates pressing the Tab key.
procedure TForm.edtCodeKeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
begin
if Key=VK_RETURN then
SelectNext(Sender as TUniControl,True);
end;There is a discernible delay of between 0.5 to 1.0 second after the Return key is pressed before the next control is focused compared with pressing the Tab key. How do I speed up the process?
--
Frederick
(UniGUI Complete - Professional Edition 1.90.0.1504)
-
I found the problem in that the callback procedure was missing a parameter of "Sender : TComponent" as like
procedure TUniForm.SomeFunc(Sender : TComponent; Res : Integer);
begin
// Some code
end;- 1
-
I have UniGUIDialogs and no VCL.Dialogs in the Uses line. However, when I make the following call:-
messagedlg('Test Message', mtConfirmation, mbYesNo, SomeFunc);
Delphi 10S throws up an error of "E2250 There is no overloaded version of 'MessageDlg' that can be called with these arguments".
What am I missing here?
--
Frederick
(UniGUI Complete - Professional Edition 1.90.0.1504)
-
-
While making a test case for this post, I remembered that JS is case sensitive. When I changed the Cls property value of the group box from "myGroupbox" to "myGroupBox", the caption font size and style change took effect.
However, the child group box (Prices) also took the Cls value from the parent group box when no Cls value was specified for it.
How do I disable it?
-
5 hours ago, wilton_rad said:
put uninumberedit or UniFormattedNumberEdit in hiddenpanel.
link in column option editor, seting component uninumberedit;
Thank your for your suggestion.
I followed your example and the attached screenshots show that the components are not responding to what has been done.
-
10 hours ago, Sherzod said:
Hello,
One possible solution
1. UniServerModule.CustomCSS:
.myGroupBox .x-fieldset-header-text { font-family: "Times New Roman", Times, serif; font-size: 14px; font-style: italic; font-weight: bold; color: green; }
2. UniGroupBox.LayoutConfig.Cls = myGroupBox
Unfortunately, this does not do anything to change the group box's caption's attributes.
-
9 hours ago, Sherzod said:
UniGroupBox.LayoutConfig.Padding = 10
?
Thanks. This solved it.
-
I see that quite a lot of answers to questions involve the use of Javascript code entered within the two properties above. As I know nothing about JS, what is the best way to learn about using it as far as it concerns UniGUI? Is there documentation for this?
--
Frederick
(UniGUI Complete - Professional Edition 1.90.0.1504)
-
-
If the TUniGroupbox's caption is not blank, the display is correct in the web browser. However, when the caption is blank, the components within it creep up and cause a display error.
Aside from entering an non-essential caption, is there a workaround?
--
Frederick
(UniGUI Complete - Professional Edition 1.90.0.1504)
-
I use ExpressQuantumGrid's grid component for my Delphi projects and the column objects for their grid have a Name property. This is a very useful feature because it allows me to refer to the grid column by name and avoids problems when new columns are added, re-ordered, deleted, inserted between columns or placeholder columns created in the grid for future use.
For example, instead of TUniDBGrid.Column[12], I can refer the column as grdAmount regardless of the current or future order of columns.
Please consider adding the Name property to your TUniDBGrid's columns and any other components where column properties with sub-properties are present.
--
Frederick
(UniGUI Complete - Professional Edition 1.90.0.1504)
-
4 hours ago, Sherzod said:
UniTreeMenu.ExpanderOnly = False
Thanks.
-
The TUniPanel has a Title and TitleVisible property. In the IDE, if the TitleVisible is set to True, the Title is not visible. This makes it difficult to determine the amount of horizontal space the panel would occupy and contributes to time-consuming design work, especially if there are other components below the panel.
Would it be possible to have the Title of the panel to be shown in a WYSIWYG manner if the TitleVisible is set to True?
--
Frederick
(UniGUI Complete - Professional Edition 1.90.0.1504)
-
I have 4 questions concerning the TUniTreeMenu.
1. How do I change the font size of the items shown in the menu?
2. When I hover the mouse cursor over the tree menu, the cursor changes to a pointer. However, if I click anywhere on the caption, the sub-menu is not shown. I have to click on the arrow key before the sub-menu will show. Is it possible for the sub-menu to show if I click the caption or the arrow key?
3. The tree menu has a SourceMenu property that points to TUniMenuItems component. In each TUniMenuItem sub-menu, I have added code in the OnClick event as follows:-
showmessage(TUniMenuItem(Sender).Name);
Why is it blank?
4. If I change the above code to
showmessage(TUniMenuItem(Sender).Caption);
the application crashes with an AV. Why does it happen?
--
Frederick
(UniGUI Complete - Professional Edition 1.90.0.1504)
-
I use PostgreSQL as my database backend and in my application, I allow the user to add records continuously until they decide to stop.
When the form is shown for the first time after the add request is initiated, a procedure called AddRecord is called and it contains the following code.
procedure TMainForm.AddRecord;
begin
oQry.Append;
oQry.FieldByName('code').AsString:='*CODE';
oQry.FieldByName('name').AsString:='Name';
oQry.FieldByName('pricemonth').AsFloat:=0.00;
oQry.FieldByName('priceyear').AsFloat:=0.00;
oQry.FieldByName('priceonetime').AsFloat:=0.00;
oQry.FieldByName('priceupdate').AsFloat:=0.00;
end;Once the user clicks the Save button, the following code is called.
procedure TMainForm.SaveRecord;
begin
oQry.Post;
addrecord;
Field1.Setfocus;
end;and the cycle repeats.
In a VCL application, as the first and second records are appended, you can see all the field content in the TDBGrid on the left, as well as in the individual TDBEdit components.
In a UniGUI application, the record content for the first append is shown normally in the TUniGrid and the TUniDBEdit components. However, after the Save button is clicked, the second append results in blank content as shown in the TUniGrid and TUniDBEdit components.
Why is this?
--
Frederick
(UniGUI Complete - Professional Edition 1.90.0.1504) -
I have a TUniPanel (or TUniGroupBox) where I have placed several components. When I need to move all of them as a single group, I use the Ctrl+Left Mouse combination to select all of them.
In a VCL application's TPanel and TGroupBox, I am able to do so. However, in the UniGUI application, nothing happens.
Would it be possible for UniGUI to have this important feature as it is quite painful and tedious to have to Shift+Click components one by one?
--
Frederick
(UniGUI Complete - Professional Edition 1.90.0.1504)
-
-
I have set the DisplayFormat and EditFormat to "#,0.00;-#,0.00" and "#0.00;-#0.00" respectively, to four TFloatFields in a query. In a VCL application, the fields (specifed in a TDBEdit component) are shown formatted correctly, i.e. 2 becomes 2.00, 2100 becomes 2,100.00 when focus moves away from the field being edited.
However, in a UniGUI application and using TUniDBEdit, the component does not respect the DisplayFormat or EditFormat properties.
Why is this so?
--
Frederick
(UniGUI Complete - Professional Edition 1.90.0.1504)
-
Thank you for the code in response to my first question. Are the two procedures created in a free form? This is quite overwhelming for a newbie in Javascript like me.
In keeping with Delphi's elegance of using components, I would have expected UniGUI to have a TUniServerRequest component that I could drop onto a form or create at runtime. The component would have a URL property which I could enter "https://www.somewebsite.com/somescript.php?action=dosomething". I would then call the Execute() method of the component and in the OnExecuteRequest event of the same component, I could examine the response return value and handle it accordingly.
No such luck?
-
I am using Trial 1.90.0.1500 in RAD Studio 10S.
1. How to I call a PHP script which returns a result code and strings, wait for a result and then handle it accordingly?
2. How to I parse the calling URL for parameter values? (E.g. localhost:8077?param1=value1¶m2=value2) Using ParamCount() and ParamStr() from the main module and then referencing the values from the main form does not return any values.
procedure TdtaMain.UniGUIMainModuleCreate(Sender: TObject);
var
nI : Integer;
begin
cParam:='';
for nI := 1 to system.ParamCount do begin
cParam:=cParam+', '+paramstr(nI);
end;
end;3. Is there a list and details of the properties, events and methods for the Server Module, Main Module and components in UniGui?
4. Is there a way in design time, to have the details of the UniGui component appear when the F1 key is pressed when the component has focus?
5. If I call an external URL in situ, is the session automatically terminated and the UniGui application closed?
6. When deploying an application, which is better for scalability and stability for say, 1,000 concurrent users? Windows service or ISAPI?
-
Hi Sherzod,
This is weird! I can't seem to be able to reply to your post because there is no Reply button in my earlier post. So, I am posting a new topic with the prefix of "Re:'.
The trial version number is 1.90.0 Build 1500.
-
I created a standalone server using the evaluation version in RAD Studio 10S.
If the server is created from RAD Studio while the latter is running, I can call the standalone server from the browser. However, if I shut down the server from RAD Studio and start the server manually outside of RAD Studio, I cannot call it from the browser.
Is this expected behaviour for the evaluation version?
P.S. I suppose the standalone server is just a single EXE file?
SelectNext() Is Slow
in General
Posted
Thanks. These settings allowed the Return key as Tab to match the speed of the Tab key.