Jump to content
uniGUI Discussion Forums

Bernie07

uniGUI Subscriber
  • Content Count

    23
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Bernie07

  • Rank
    Newbie
  1. Bernie07

    Change Chart Legend Visible at Runtime

    Hello, I have now installed the newest version of unigui. And now the function chart.legend.toggle don't work anymore. I get the error "toggle is no function". I have also tried it with JSProperty instead of JSCall, but then nothing happens. The legend is still visible. Can I solve this with another code? Best wishes Bernhard
  2. Bernie07

    Picture in TUniDBGrid bad quality

    Now I see it is not the quality of the picture but there is a black round border which in the original not exists
  3. Bernie07

    Picture in TUniDBGrid bad quality

    Hello, it seems that pictures which are in a TUniImageList shown in a TUniDBGrid are not the quality as the original. The PNG Image have a size of 16x16. Here is the code in OnFieldImage of TUniDBGrid (ImageMitarbeiter is a TUniImageList) OutImage := TBitmap.Create; OutImage.SetSize(16,16); if DataKDMonEinsaetzeAssistent.MemMitarbeiterAktiv.AsBoolean then begin ImageMitarbeiter.GetBitmap(CBitmapIndexMitarbeiterAktiv, TBitmap(OutImage)); end else begin ImageMitarbeiter.GetBitmap(CBitmapIndexMitarbeiterEhemalig, TBitmap(OutImage)); end; Is there a way to get the original quality? The original Image is a png file. Best wishes Bernhard
  4. Bernie07

    TUniHTMLMemo.SetFocus

    Thanks for your answer. Yes, this code works fine. So the problem is for me solved. My browser is Google Chrome (latest build). But with Firefox there is the same Problem. The build of uniGui is 1.0.0.1368 Best wishes Bernhard
  5. Bernie07

    TUniHTMLMemo.SetFocus

    Hello, I have a component of the class TUniHTMLMemo. If I'm using the SetFocus method in OnShow of the form, it works. But if I'm using the SetFocus for example in OnKeyPress of another Control nothing happens. This is the Code : procedure TFormKDMonPersonaldienstleisterMitteilung.EinBetreffKeyPress( Sender: TObject; var Key: Char); begin if key=#13 then MemMitteilung.SetFocus; end; With all other UniGui controls it works within the OnKeyPress Event. Only the TUniHTMLMemo has a Problem. Best wishes Bernhard
  6. Bernie07

    Change Chart Legend Visible at Runtime

    Thanks for your answer. this works, but the place of the legend isn't reused for the chart, if I make the legend invisible. This means, that the chart isn't drawed bigger. I want that the chart is also using the place of the legend because the legend isn't shown anymore. Is there a way to redraw the chart so it is using also the empty place where was the legend drawn before? My Code is now : if CheckEinsaetzeStatistikLegendeAnzeigen.Checked then begin ChartEinsaetzeStatistik.JSInterface.JSCall('chart.legend.toggle', [true]); ChartEinsaetzeStatistik.JSInterface.JSCall('chart.redraw', []); end else begin ChartEinsaetzeStatistik.JSInterface.JSCall('chart.legend.toggle', [false]); ChartEinsaetzeStatistik.JSInterface.JSCall('chart.redraw', []); end; Best wishes Bernhard Best wishes Bernhard
  7. Hello, I'm trying to change the Visible state of the UniChart Legend at Runtime like ChartEinsaetzeStatistik.Legend.Visible := CheckEinsaetzeStatistikLegendeAnzeigen.Checked; But nothing happens. What can I do to Change the Legend Visible state of a Chart at Runtime? Best wishes Bernhard
  8. Bernie07

    TuniDBGrid Font Size

    Hello, I've checked it but Parentfont is true and UniDBGrid->FontSize is 10 (like all other components). I have installed the version 1352. But if I am lookin in the Servermodule in the property Version I see only 1322. I had deinstalled the previous version and have done a new installation. But in the servermodule I see the wrong version number. Any ideas why I see the wrong version number? Best wishes Bernhard
  9. Bernie07

    TuniDBGrid Font Size

    Hello, I have in one form with all tunidbgrids which are in this form a font size problem (in all other forms it works, only in this form I have the problem). The form has a font size = 10. All components has ParentFont=True. All components like TUniDBEdit, TUniLabel and so on works fine. The font size is correct. But the TUniDBGrid shows the text too big (I think it is font size=14 or 16 or the TUniDBGrid is scaling for some reason, I don't know). This happens in all TUniDBGrid which are in this form. The problems is only in the cells (not in Groupheader or Title). Have you any idea what can I check. In my oppinion, all properties are correct. In my attached file you see, that the Text in the grid cells is bigger than in the Labels or in the title of the grid. But all components has the property ParentFont to True. Best wishes Bernhard
  10. Bernie07

    Disable Key and Mouse Operations

    Hello, is it possible to lock all Key and Mouse Operations? I want to do this during my application does any internal operations. For the moment the user can click on the form during the application does any important operations which should first done before the user can work. It would help If I can disable a form for the Duration of some internal work. Best wishes Bernhard
  11. Bernie07

    TUniDataModule where can I find it?

    Thanks, I have solved my problem and now I understand how it works. There was one DataModule which I've used inside a classic application and in my web application. I don't want two datamodules which do the same Things. But the following changes make the DataModule compatible for the classic application and for the web application : {$IFNDEF ZDWEB} var DataTarifvertragBerechnungen: TDataTarifvertragBerechnungen; {$ENDIF} {$IFDEF ZDWEB} function DataTarifvertragBerechnungen: TDataTarifvertragBerechnungen; {$ENDIF} implementation {$R *.dfm} {$IFDEF ZDWEB} uses UniGUIVars, uniGUIMainModule, MainModule; function DataTarifvertragBerechnungen: TDataTarifvertragBerechnungen; begin Result := TDataTarifvertragBerechnungen(UniMainModule.GetModuleInstance(TDataTarifvertragBerechnungen)); end; {$ENDIF} and on the end of the source file : {$IFDEF ZDWEB} initialization RegisterModuleClass(TDataTarifvertragBerechnungen); {$ENDIF} Now it works as it should. Best wishes Bernhard
  12. Bernie07

    TUniDataModule where can I find it?

    But if I do so, I get only a TDataModule instead of TUniDataModule. And then I have the problem that it is not Threadsafe for the NexusDB Tables. So want Change it on source Code for example TDataEinsaetzeAssistent = class(TDataModule) to TDataEinsaetzeAssistent = class(TUniDataModule) But I don't know which unit I have to set in the uses clause. By the way for all uniGUIxxx Units I have not the source Code although we've buyed the product with source Code. We have only the source Code for the components. Best wishes Bernhard
  13. Bernie07

    TUniDataModule where can I find it?

    Hello, we have problems with our database (NexusDB) if we open at the same time in different sessions a table. It seems not thread safe. The tables components are in a TDataModule. Now I have readen that we should use better a TUniDataModule. But where can I find it? In which unit? I havre searched this Forum, but I found no answer. Best wishes Bernhard
  14. Bernie07

    FindNextControl

    Thanks for your answer. The problem with SelectNext is, that it only jumps to the next Input control like TUniEdit, TUniCombobox, TUniMemo and so on. But if the next control is a button like TUniBitBtn it overjump it. Is there a way also jump with SelectNext to a button, if the next control is a button? Best wishes Bernhard
  15. Bernie07

    FindNextControl

    I found now another way to navigate through my controls with the return key. There is a property NavigateKeys. But the problem is that only Input controls like TUniEdit and TUniCombobox are found. Is there a way that also TUniButton and TUniBitBtn are found and getting the focus. Best wishes Bernhard
×