-
Content Count
338 -
Joined
-
Last visited
-
Days Won
4
Posts posted by Cristian Peța
-
-
You can. But it will be drawn after the control is returned to UI.
-
On 3/7/2019 at 10:39 AM, Lars Fosdal said:It really annoys me that they didn't adapt Error Insight for inline declared variables. So ugly!
I can live with Error Insight garbage but when I tried inline variables in a 300k LOC project I removed them immediately because Ctrl-Click stopped working.
-
Is EntryAge and RetireAge floating-point?
-
Can't reproduce in 10.3.0
-
13 hours ago, FredS said:{ TStringHelper.LastIndexOf returns wrong values } // 0 19 38 0-based s := 'Hello how are you, Hello how are you, Hello how are you'; Assert(s.IndexOf('Hello', 38) = s.LastIndexOf('Hello', 38));
Wrong test case.
s.LastIndexOf('Hello', 38) will search starting from 38 to the left. That means in this string 'Hello how are you, Hello how are you, H'.
First occurrences is at 19 so it "Works As Expected".
I know this is not as other implementations but you must specify this in report if you want a change.
And this change can brake old code so it must be strongly justified.
- 3
-
2 hours ago, Vince Bartlett said:You mean copy the original description?
Steps should be something like:
1. Install RAD Studio from ISO image with Delphi iOS Platform and without OSX Platform.
2. PAServer20.0.pkg file is missing -
13 hours ago, FredS said:Essentially all system wide methods are run through DUnitX now.
This is how I know that RSP-15040 is still in Rio 10.3.1, I use that when anyone asks why I built my own string helper.You haven't told what exactly is wrong and for me is working as expected.
Sincerely I don't have an hour to lose to identify what's wrong. Specifically what should be expected?
There is only one "Huh?" at "s.LastDelimiter('Hello')" but it returns 53 that is good. What's wrong?
P.S. The truth is that Delphi's LastIndexOf is not documented and is working but not as implemented in other languages.
-
47 minutes ago, Uwe Raabe said:What about filing a bug report?
https://quality.embarcadero.com/browse/RSP-14452
P.S. Probably only GetIt was fixed...
- 1
-
madExcept does have a "check for frozen main thread" option. You can set the timeout in seconds. You will have a call stack.
-
Search for Logcat.
But looks like starting from Android 4.1 reading logcat is no longer working without root access.
-
Is there is a list of DevExpress controls that can be styled with VCL styles?
-
If adb connection is not working then installing a Log visualizer from the market is the easiest solution to see the log.
-
I used "Andoid Device Monitor" from SDK that installed with Delphi (starting \sdk\tools\monitor.bat) but it doesn't start with Rio installed SDK. At least for me.
You either install Android Studio and use Logcat: https://developer.android.com/studio/debug/am-logcat
Or other solutions: https://android.stackexchange.com/questions/14430/how-can-i-view-and-examine-the-android-log
-
Time to look in the log.
-
Is this emulator also emulating ARM code to x86?
-
Yes, for interfaces, like article says.
What help are you reading? Maybe it was not revised.
- 1
-
Change "%minSdkVersion%" with "23"
- 1
-
Just tested on Ubuntu and now I see that you already tested console app.
Looks like under Apache (supposing ICU is available) collation Strength or Case_Level is other that expected.
See "Case Ordering" here:
-
I have an Ubuntu installation that I tested in 10.2.
But have you tested a simple console app?
uses System.SysUtils; begin Writeln(AnsiCompareText('PARAMname','paramNAME')); Readln; end.
-
After I run for the first time an app I often use I pin it to the taskbar (Windows 10) and then I click only on this icon.
Left click will open it, if it's closed, and switch to if it's open.
Middle click will open every time a new instance.
- 1
-
Actually I changed my code some years ago and now I'm painting on a bitmap scaled with Canvas.Scale (an UI Canvas) and then use Canvas.DrawBitmap() to draw UI.
- 1
-
If you meant using TCanvas, this was possible at least when mobile compilers rolled out.
The way to do this changed a little over time but now you need to apply a transformation matrix to the canvas to reverse scaling and all you paint using canvas will match 1:1.
There was needed also a translation of (-0.5, -0.5) in that matrix because you needed to use (0.5, 0.5) to use only one pixel. I don't know if this is the case also now.
-
@Schokohase if you are speaking about my suggestion to read bigger chunks from DB then this is not exactly parallelization.
And the second suggestion was about what to optimize. If reading from DB takes 10ms and rendering 0.1ms per piece then I would not care about rendering.
- 1
-
First you need to know much time takes GetTitleFromDB and RenderTitleToBitmap32. Then you will know where to optimize.
For SQL servers hawing many small requests is costly. I don't know how much KB GetTitleFromDB is asking but generally reducing the number of requests (bigger data chunks) is better for client and for server also.
- 1
How to get the Currency Symbol in multiple platforms
in Cross-platform
Posted
I've made it some years ago. Not the best solution but it works for what I need. And not Linux.