Recent

Recent Posts

Pages: 1 2 [3] 4 5 ... 10
21
General / Re: how to change the color font and background of a button
« Last post by wp on March 28, 2024, 07:23:58 pm »
you can in Delphi do that with at least TBitBtn and TSpeedBtn
How? In Delphi they even don't have a Color property. Just checked with D7, XE2 and XE 11.3 (see screenshot)
22
General / Re: JEDI error but unit compiles??
« Last post by bobonwhidbey on March 28, 2024, 07:10:38 pm »
The source of the problem with JEDI had nothing to do with "(*" .  The entire error seems to be caused by JEDI not handling a SET definition correctly.

This works in JEDI:
Code: Pascal  [Select][+][-]
  1. TestSET: set of tWindowState = [wsNormal..wsMinimized];

This does not:
Code: Pascal  [Select][+][-]
  1. TestSET: set of tWindowState = [wsNormal..wsMinimized,wsFullScreen];
23
General / Re: how to search in rxmemory table
« Last post by korba812 on March 28, 2024, 06:57:30 pm »
Use "Locate" method to search.
https://www.freepascal.org/docs-html/fcl/db/tdataset.locate.html
https://wiki.freepascal.org/locate

For sorting, use "SortOnFields/SortOnFieldsEx" methods available in TRxMemoryData.
24
General / Re: Dynarray initialization pattern
« Last post by Thaddy on March 28, 2024, 06:30:12 pm »
the only exception i know is with managed types with a range not starting with zero.
managed types always initialize to all zero's or empty so can cause a range check error.
other than that, it has no corner cases, and besides my remark, the memory is initialized.
25
General / Re: how to search in rxmemory table
« Last post by cdbc on March 28, 2024, 06:17:53 pm »
Hi
Hmmm.... I was under the impression that RxMemoryTable supports SQL?!?
Anywho, I found this https://documentation.help/RXLibrary/documentation.pdf
Dunno if it's of any help to you...
Regards Benny
26
LCL / Re: Controlling the behavior - JVCLLaz - JvDBLookUpCombo?
« Last post by 1HuntnMan on March 28, 2024, 06:09:27 pm »
RVK, thanks... You and WP helped a lot in understanding how this component works.  Expermenting with the different settings, check the image capture I just made.  This looks good. I have other forms that the JvDBLoopUpCombo isn't displaying the 2nd or 3rd fields in the drop-down to fix these.  The DropDownWidth was the solution along with playing with the 3 dropdown fields displaywidths.

RVK, checked my display settings (Win11) but doesn't actually show DPI. Display settings in Win11 are Scale, Display resolution, Orientation, Multiple Displays, Advanced display, Graphics & Help. None of these give you the dots/inch. But, not an issue... Thanks to the both of you!
 
27
General / how to search in rxmemory table
« Last post by rcmz on March 28, 2024, 06:07:30 pm »
hi,

how can i search in a rxmemory table or order the data

TIA
Ramiro
28
General / Re: JEDI error but unit compiles??
« Last post by Thaddy on March 28, 2024, 06:05:37 pm »
Of course you can not even use the set....Unless you are well versed in quantum theory...
Not good enough to prove your point.
Focussing on the SQL confuses JEDI with (* and *). Solution/workaround is to use spaces, like ( * );
Problem is that the JEDI jcf parser does not maintain enough state while it is in a string and that is a bug. It should know it has to ignore the contents of any - literal or not - string until the string is terminated.

Btw It will get a lot worse in trunk! too many new language features with accompanying syntax.
29
General / Re: how to change the color font and background of a button
« Last post by Thaddy on March 28, 2024, 06:01:15 pm »
with the remark that it is true that you can not change color and font.color, you can in Delphi do that with at least TBitBtn and TSpeedBtn, but not in Lazarus. Which is strange...
30
General / Re: Dynarray initialization pattern
« Last post by Martok on March 28, 2024, 05:39:03 pm »
Managed types - like in this case dynamic arrays - always have valid values. If not, it's a bug.
No weird corner cases? This is extremely good to know, thanks.

Do you happen to know if DFA knows/counts this "assignment"? Not neccessarily for optimization, but for the initialized logic checks.
Pages: 1 2 [3] 4 5 ... 10

TinyPortal © 2005-2018