-
Posts
385 -
Joined
-
Last visited
-
Days Won
27
Content Type
Profiles
Forums
Events
Everything posted by GerhardV
-
Link is dead (http://db.kontora.ua/qr.zip) anybody has a copy of it to share please?
-
Here is a modified version of Delphi Developer's solution which scales the number of lines dynamically...obviously there is only so much space to fit eventually. function resize(sender, width, height, oldWidth, oldHeight, eOpts) { var me = sender.btnInnerEl; var tm = new Ext.util.TextMetrics(); var lineHeight = parseInt(me.getStyle("line-height")); var textWidth = tm.getSize(sender.text).width; if (textWidth >= width + 25) { me.setStyle("line-height", lineHeight / Math.ceil(textWidth/width) + "px"); me.setStyle("white-space", "normal"); } else { me.setStyle("white-space", "nowrap"); }; }
-
-
Michael, do you set any z-index or bring to front maybe? Ignore that..I had the code in the "UniFormReady" event but moved it to the "UniFormCreate" event...now it is showing up.
-
Excellent! Thank you Michael.
-
Can you perhaps elaborate on how you show and hide this form in your app once it is created?
-
You can also do it like this. CustomCSS: .x-panel-round { padding: 3px; border-width: 3px !important; border-radius: 10px; } BorderStyle = ubsSolid for the panel. UniEvents: beforeinit function beforeInit(sender, config) { config.cls="x-panel-round"; }
-
CustomCSS: .x-panel-shadow { box-shadow: 0 0px 10px 0 rgba(0,0,0,0.2); border-color: #D9D9D9 !important; } .x-panel-shadow-round { border-radius: 10px; } UniEvents: Beforeinit: function beforeInit(sender, config) { config.cls="x-panel-shadow x-panel-shadow-round"; } BorderStyle = ubsNone for the panel. Result attached.
-
http://forums.unigui.com/index.php?/topic/8211-delphi-102-tokyo-is-released/
- 1 reply
-
- 1
-
Any REST client should give you the ability to add header values. Here is an example where I read one of the header values in TUniServerModule. procedure TUniServerModule.UniGUIServerModuleHTTPCommand(ARequestInfo: TIdHTTPRequestInfo; AResponseInfo: TIdHTTPResponseInfo; var Handled: Boolean); var dm : TdmReportData; begin if ARequestInfo.URI='/report/finsummary' then begin dm := TdmReportData.Create(nil); try dm.qryReport.Connection := dm.FDConnection; AResponseInfo.ContentText := dm.GenerateReportPDF(repFinSummary, '') + ' header [user] = ' + ARequestInfo.RawHeaders.Values['user']; AResponseInfo.ResponseNo := 200; AResponseInfo.WriteContent; Handled := True; finally dm.Free; end; end; end;
-
Is there something similar for TUniMainMenu?
-
Can I use this method to find a component in runtime?
GerhardV replied to albertovesx's topic in General
Maybe don't do the "as TUniDBCheckBox" where you execute FindComponent....but do a sanity check if the component "is TUniDBcheckBox" first. var i: Integer; c: TComponent; <<---- use TComponent here begin for i := 1 to 20 do begin c := FindComponent('somename' + i.toString); if (c <> nil) and (c is TUniDBCheckBox) then <<---- sanity check here begin if (c as TUniDBCheckBox).checked then <<---- cast here dosomething; end; end; end; -
What is the best way to show read only dataset result to users
GerhardV replied to Koukliatis's topic in General
Just make a prototype and use the Stress tool that comes with uniGUI to test it. -
Hi Farshad: Is it possible to add this enhancement to the UniGUI library please? See link below. http://forums.unigui.com/index.php?/topic/8130-center-clearbutton-for-tuniedit/ Thank you.
-
Thank you...does the trick. @Farshad can we add the functionality to the uniGUI library?
-
Not yet...still work in progress.
-
You would need to change the CSS and/or images for the specific theme. Or create your own theme by starting of with one of the existing themes and modify it to your liking. Search the forum for themes.
-
-
I have some TUniEdits that have a height greater than that of the standard size. The ClearButton is not vertically centered, see attachment. The ClearButton has a element style="right: 7px; top: 1px" in the div tag. It also has margin-top: 4px in the clearbutton.css file but I cannot change the CSS as that will affect all ClearButtons. I checked the TUniEdit source code but there is only one property to set it visible, and it seems that it is declared in TUniFormControl which we don't have the source code for. Is there a way to set the position? Or even better - Can wee perhaps expose properties to set its position? Or can we maybe have it aligned vertically centered?
-
If you don't want the main form to be shown as a form (meaning you don't care to see the window frame) then you can set the MainFormDisplayMode property of TUniServerModule to mfPage. Another option is to have the main form set as describe above which contains a panel whose Layout property is set to "fit" and then have a second form which act as the main form and whose Parent property is set to the panel on the real main form. See demo project attached. In this example I have set the BodyPadding of the panel to 10 to show the yellowish color of the panel who is the parent. MainFormResize.zip
-
Farshad, I was wondering, will uniGUI be able to be compiled for Linux in Berlin1.2? In other words, will we be able to run a uniGUI server on Linux? Regards, Gerhard
-
Hehe...nope...had a great laugh at myself now! Tx.
-
Thanks, no I have checked for that only, it is assigned to only one button, even created a separate popup menu to be sure. Will investigate some more.