Tokay
-
Posts
839 -
Joined
-
Last visited
-
Days Won
19
Content Type
Profiles
Forums
Events
Posts posted by Tokay
-
-
Thank you very much for answering!
Is it some suggestions or instruments for css modification?
-
Thank you! All works great. I changed TUniHTMLFrame to TUniURLFrame.
-
Sorry, this code doesn't works:
UniHTMLFrame1.JSInterface.JSCode('Ext.defer(function(){'#1'.iframe.contentWindow.print()}, 100);');
Message from browser console:
VM265:1 Uncaught TypeError: Cannot read property 'contentWindow' of undefined
at eval (eval at AjaxSuccess (ext-unicommon-min.js:8), <anonymous>:1:33)
-
Hi! I have an issue with printing too. I'm using the Chrome brouser and try to print a TUniHTMLFrame. The code is simple:
procedure TMainForm.UniButton1Click(Sender: TObject); begin UniHTMLFrame1.HTML.Text := '<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />' + '<title>HTML Document</title> </head> <body> <p> <b> This text is bold,<i>and this one is also italic</i></b></p></body></html>'; UniSession.AddJs(UniHTMLFrame1.jsname + '.iframeEl.dom.contentWindow.print();'); end;
Dpr:
object UniHTMLFrame1: TUniHTMLFrame Left = 8 Top = 8 Width = 785 Height = 465 Hint = '' end
And I get the ajax error:
Cannot read property 'dom' of undefined
O17.iframeEl.dom.contentWindow.print();O17.update(" <!DOCTYPE html> <html> <head> <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" /><title>HTML Document</title> </head> <body> <p> <b> This text is bold,<i>and this one is also italic</i></b></p></body></html>\n",true);Any suggestions? -
Hi all! I see that some guys creates different thems for UniGui. We really need a dark theme like mountineview on desctop. Is there any way to do this? Thank you.
-
As far as I know, if you manually create them, they will be created in a single copy:
Application.CreateForm(TDataModule3, DataModule3); Application.CreateForm(TWebDataModule, WebDataModule);
-
Because Apache is very widespread, I think that issues is on your side. Give some instruments for leaks detection:
https://stackoverflow.com/questions/416046/what-is-the-best-tool-to-detect-memory-leaks-in-delphi
and check your code.
-
Ok, and how is it possible? Only way I found is hide the main form in OnShow and show another, second form.
-
I need 2 different interfaces to the same resources (database, files etc). One is administrative access, another user's, limited.
-
Hi, and sorry for raising old topic instead of creating a new one.
I alsow need a few different main forms, but on the one port and url. Depending on the user login (for ex - user and admin).
Is it correct and safe to do so:
procedure TMainForm.UniFormShow(Sender: TObject); begin if UniMainModule.ShowSecond then begin Hide; UniForm1.Show; end; end;
?
-
Свойство 'Columns' грида, пробежаться по всем колонкам и отключить Sortable. Либо выделить все вместе и одновременно выключить.
-
I got it! Thank you very much.
I do it in that way:
After sql query, i add OnGetText handers to needed fields:
IBQuery1.Fields[i].OnGetText := IBQuery1YGetText
And in the handler:
Text := FormatFileSize(Sender.AsLargeInt);
All works great! Thank you.
-
I try to format text in the cells, but Attribs.AsString is read-only property. Could I change text which will be displayed in a cell in some way? Thank you.
procedure TUniForm2.UniDBGrid1DrawColumnCell(Sender: TObject; ACol, ARow: integer; Column: TUniDBGridColumn; Attribs: TUniCellAttribs); begin if ACol > 0 then Attribs.AsString := FormatTriad(Column.Field.AsString); end;
-
Thanks for great lib! We are going to purchase licence(s) for your library. I did some promote links. I think that good things need to be promoted.
This is my request:
1. Linux support on Lazarus, not only on Delphi.
2. TUniTreeNode.MoveTo.
- 1
-
Добрый день еще раз. Ищется какая-либо замена VCL'ного TTreeNode.MoveTo.
Нашел топик, но в нём ничего нет
нашел событие:
function store.move(sender, oldParent, newParent, index, eOpts)
{
}
Скажите - реально ли как-то сделать перенос ноды? Используем RC триальный, Delphi XE6.
-
-
По поводу второй проблемы думаю за проблему с многопоточностью. Возможно, что форма создаётся в одной сессии, а доступ к форме идёт из другой. Как вообще это узнать?
https://unigui.wikispaces.com/Standard+units+in+an+uniGUI+project
"In other words, each session (i.e. each MainModule) will have its own DataModule. If the DataModule contains a DataSet (i.e. TADOTable or TFDTable), each session will have its own instance of this DataSet"
Можно ли как-то у UniMainModule запрашивать не какую-то форму вообще, а определённую?Вообще - формы UniGUI являются thread safe? В отличие от того же VCL?Жду ответаp.s. похоже, проблема не в доступе из разных потоков. Мне удалось повторить проблему с минимальной обвязкой. Пошлю пример на указанный ящик. С первой проблемой будет, скорее всего, не так просто. -
fixed
-
fixed
-
fixed
-
Всем доброго дня. Для начала благодарности. Спасибо за интересную библиотеку. Похоже - как раз то, что нам нужно. Сейчас решается вопрос о покупке одной либо нескольких лицензий. Но есть некоторые сложности с использованием. Пытаюсь использовать библиотеку на нескольких своих проектах. В одном из них, достаточно сложном, есть несколько проблем, скорее всего на стороне библиотеки UniGui. Либо неправильное её использование, либо баги.
Мы используем RC триал.
Во-первых, хочу создать баг-репорт на форуме, но не могу: "You cannot start a new topic".
Скажите - куда можно писать и как вообще происходит поддержка?
По самой библиотеке, вот что случается:
1. в одном случае срабатывает ассерт:
---------------------------Debugger Exception Notification---------------------------Project Project2.exe raised exception class EAssertionFailed with message 'Attempt to access nil session reference (H:\Framework\uniGUI\Source\Core\ExtPascal.pas, line 1247)'.---------------------------Break Continue Help---------------------------на вот таком коде:Session.FNodeFields.RootNode := FTV.Items.AddNode(nil, ParentNode, '', Session, naAddChild);
Здесь:
FTV:TUniTreeView;RootNode: TUniTreeNode;2. во втором случае случается AV:---------------------------Debugger Exception Notification---------------------------Project Project2.exe raised exception class $C0000005 with message 'access violation at 0x00793350: read of address 0x00000064'.---------------------------Break Continue Help---------------------------Вот в этом месте:function Form2: TForm2; begin Result := TForm2(UniMainModule.GetFormInstance(TForm2)); end;
форма Form2 существует и открыта.
UniSF Component
in Third Party Components
Posted
Hi,
When i remove they, all starts good, but button shows improperly.