Jump to content

DJSox

Members
  • Content Count

    9
  • Joined

  • Last visited

Everything posted by DJSox

  1. DJSox

    SplashForm freeze

    Below is what I had used in the past. The splash screen had a label that was updated by the forms being loaded in their onCreate events. The forms updated the label, and invoked it paint event with label.repaint (might have been label.refresh). The Application.ProcessMessages allowed the paint events to run. Perhaps you could just do a SplashScreen.repaint after each form loads as well. If an individual form creation takes too long, perhaps you could force the splashscreen to update from within the forms onCreate event. Dan {$R *.RES} begin Set8087CW($1332) ; //fix for floating point issue should be in all dpr's Application.Initialize; ESPlotsSplashForm :=TESPlotsSplashForm.create(nil); ESPlotsSplashForm.show; Application.Title := 'ES Plots'; Application.HelpFile := 'D:\ESPlots\esplots.chm'; Application.ProcessMessages; Application.CreateForm(TESPlotsMainForm, ESPlotsMainForm); Application.CreateForm(TSnoopForm, SnoopForm); Application.CreateForm(TDefineHeaderForm, DefineHeaderForm); Application.CreateForm(TFloatDisplayForm, FloatDisplayForm); Application.ProcessMessages; Application.CreateForm(TStoreDataForm, StoreDataForm); Application.ProcessMessages; Application.CreateForm(TESPlotsLoadDataForm, ESPlotsLoadDataForm); Application.ProcessMessages; Application.CreateForm(TSaveDataForm, SaveDataForm); Application.ProcessMessages; Application.CreateForm(TEditTextForm, EditTextForm); Application.ProcessMessages; Application.CreateForm(TChartForm, ChartForm); Application.ProcessMessages; ESPlotsSplashForm.Hide; ESPlotsSplashForm.free; ReportMemoryLeaksOnShutdown := DebugHook <> 0; Application.Run; end.
  2. I just had this happen to me after upgrading the motherboard in my system. I found that the Windows display scaling was set to 175% not the recommended 150%. Setting Windows scaling to 150% fixed the IDE toolbars being cut off! I didn't have to do anything else. Another high DPI scaling issue, I guess.
  3. DJSox

    SplashForm freeze

    I don't use FMX, but in my VCL apps, I make the Splash Screen more responsive simply by updating and repainting it after each Application.CreateForm call. I have not had problems doing this.
  4. In statistics and/or data analysis to calculate the median you have to sort the data, at least I always have. When plotting data, say in an xy plot, sometimes it's better to sort the data by x first. So, in technical fields it's not that uncommon.
  5. I believe breakpoints have a "pass count", right click on the red dot to set it. It might save your sanity.
  6. You might try googling "Microsoft UI Automation", MS's accessibility interface. If the other program is somewhat recent, you may be able to access it's user interface. I have used it to access controls in an external program that controlled a camera . It's not a quick and dirty solution as it involves COM, but it's really powerful. I think there might be a third party Delphi interface available for it. I haven't used it since XE6. Dan
  7. Does anyone have any experience in using Python4Delphi with Linux, more specifically with the Raspberry Pi 4? I need to grab images from the RPi camera in code, but have been unable to find any examples of how to do this that aren't Python. Python has a really nice camera interface which would nice to use. RPi's mmal c interface to the camera is an option, but looks difficult to access from lazarus. Any help or ideas is appreciated! Dan
  8. Hi, Using the web interface is it possible to flag comments by certain individuals to be hidden or ignored? Thanks
×