Recent

Recent Posts

Pages: [1] 2 3 ... 10
1
General / Re: how to search in rxmemory table
« Last post by rcmz on Today at 10:19:54 pm »
all is ok,

I was not including the unit Variants

thx
Ramiro
2
General / Re: Configure JCF messages
« Last post by GordonFindlay on Today at 10:16:19 pm »
Many thanks Domingo - just what I need.
3
I currently prefer the version where the radios are (starting on) the same line as the checkbox.

The lines can be fine tuned, 1 pixel, darker or lighter grey. But in general, the separation between groups is needed. (when there are several groups).

I currently have to rewrite some of the unlaying code...
And then incorporate the option of showing/hiding leading zeros.

I thought of various other ways....

1) Take a away the "signed-ness" and have global settings where the user can define "MyHex as hex-signed-no_lead_zero" and then that would be in the list...
2) Have the minimal preconfigured num-formats, and an edit, similar to "format", allowing to specify in text form, signed-ness, base, lead_zero, ....

But then gave up on them again (at least for the moment, until I see where I can get without them).
One thing is, that at least Decimal should be easily available in the following forms: "signed as the type of data", "always signed/cast to signed", "always unsigned" (that is one more that even existed in the old dialog. And so the minimal preset becomes a lot already.

Anyway, lets see where my current idea takes me.
4
part of the problem is that I've only been using FpDebug since I learned that it supported DebugBreak() (which I only learned very recently.)  Since without that feature I couldn't use it, I didn't read the FpDebug documentation, consequently my knowledge of FpDebug is rather deficient and I need to correct that. 

The links you provided will most definitely be very helpful.

As far as the "Watch Properties" window, I tend to favor minimal designs.  In this case that means no dividers, just whitespace.  To my taste the dividers give a cluttered look.  The whitespace is usually enough (IMO) to create a visual separation among options.

I've attached a partially edited "Watch Properties" window.  I've left some of the dividers to show the contrast.  Personally, I'd get rid of all the dividers with the exception of the one that separates the "Memory dump" from the other options above.

I'd probably keep the small "dash" on the left hand side.

$0.02 :)
5
LCL / Re: Dialog ShowModal and an icon within caption bar?
« Last post by d7_2_laz on Today at 09:51:39 pm »
ASerge ok, understood …
But let’s put this buggy side-effect for a moment besides (removing here the datetimepicker):

I’d still unsure (probably I’m the only one?) what would be the correct behaviour:
Does and should by principle a modal dialog exclude the display of an icon (resp. system menu)?
Or should it be possible to display the icon if wanted and configured (ie. by setting BorderIcons biSystemMenu)?

For the cases the latter might be wanted (may happen) I found this little workaround:

Code: Pascal  [Select][+][-]
  1.   TForm2 = class(TForm)     //  Form2 is the modal dialog here
  2.  …..
  3.   protected
  4.     procedure CreateWnd; override;
  5.  …..
  6.  
  7. procedure TForm2.CreateWnd;
  8. begin
  9.   inherited;
  10.  
  11.   // --- Assure icon display picked up from application icon:
  12.   //SendMessage(Handle, WM_SETICON, ICON_BIG,  Windows.LoadIcon(MainInstance, 'MAINICON'));
  13.  
  14.   // --- Assure icon display picked up from the form's icon handle:
  15.   Windows.SendMessage(Handle, WM_SETICON, ICON_BIG, Self.BigIconHandle);
  16.  
  17. end;
6
General / Re: JEDI error but unit compiles??
« Last post by Thaddy on Today at 09:30:33 pm »
tnx ;D
7
General / Re: JEDI error but unit compiles??
« Last post by DomingoGP on Today at 09:27:06 pm »
Opened issue in bug tracker

https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/40871

and fixed in trunk commit a326522d9357b4465336a0b93e63e96cf3e3cd77

I have applied the changes proposed by bytebites slightly modified.

Thanks for reporting and for the patch.

8
Btw, it be a nice place to list all the intrinsics https://wiki.freepascal.org/FpDebug-Watches-Intrinsic-Functions
And the backends can have functions to list them.
But then it be nice, to also have some of those from gdb, if only to make use of the button.

On using features: If you need a field from an object, then you can open the object in the inspector => that has a filter (filters field names and data), so you can type "auto" to find any field (and data) containing "auto" => double click the desired one, and add it back as watch.
IMHO useful.
(filter in watches, whenever I find the time....)

Or, work a lot with variants? Configure the "variant backend convertor" https://wiki.freepascal.org/IDE_Window:_Ide_Options_-_Backend_Value_Converter#.22Convert_variant_to_value_type.22

It's documented...
9
Hi ArchChem,

Thanks for letting me know about your OS. On Linux, the font height sign can be different. So here is a version of the test to take it into account (it also fixes the bounding rectangle):
Code: Pascal  [Select][+][-]
  1. uses BGRABitmap, BGRABitmapTypes, BGRAText;
  2.  
  3. {$R *.lfm}
  4.  
  5. { TForm1 }
  6.  
  7. procedure TForm1.FormPaint(Sender: TObject);
  8. var
  9.   ts: TSize;
  10.   style: TTextStyle;
  11.   bmp: TBGRABitmap;
  12.   halfX: integer;
  13. begin
  14.   halfX := ClientWidth div 2;
  15.   with Canvas do
  16.   begin
  17.     Brush.Color := clWhite;
  18.     FillRect(0, 0, halfX, ClientHeight);
  19.     Brush.Style := bsClear;
  20.  
  21.     Font.Color := clBlack;
  22.     Font.Height := 50 * FontFullHeightSign;
  23.     Font.Name := 'Arial';
  24.     ts := TextExtent('Hello world');
  25.     Rectangle(0, 0, ts.cx, ts.cy);
  26.     TextOut(0, 0, 'Hello world');
  27.  
  28.     style := TextStyle;
  29.     style.Wordbreak:= true;
  30.     style.SingleLine:= false;
  31.     TextRect(rect(0, 50, halfX, ClientHeight),
  32.       0, 50, 'Text with'#13#10'Line endings', style);
  33.   end;
  34.  
  35.   bmp := TBGRABitmap.Create(halfX, ClientHeight, BGRAWhite);
  36.   with bmp.CanvasBGRA do
  37.   begin
  38.     Brush.Style := bsClear;
  39.  
  40.     Font.Color := clBlack;
  41.     Font.Height := 50;
  42.     Font.Name := 'Arial';
  43.     ts := TextExtent('Hello world');
  44.     Rectangle(0, 0, ts.cx, ts.cy);
  45.     TextOut(0, 0, 'Hello world');
  46.  
  47.     style := TextStyle;
  48.     style.Wordbreak:= true;
  49.     style.SingleLine:= false;
  50.     TextRect(rect(0, 50, halfX, ClientHeight),
  51.       0, 50, 'Text with'#13#10'Line endings', style);
  52.   end;
  53.  
  54.   bmp.FontName := 'Arial';
  55.   bmp.FontFullHeight:= 50;
  56.   bmp.TextMultiline(0, 200, 'Text with'#13#10'Line endings', CSSBlue,
  57.     btaNatural, tlTop, // alignment
  58.     0.2); // paragraph spacing, in fraction of the font full height
  59.  
  60.   bmp.Draw(Canvas, halfX, 0);
  61.   bmp.Free;
  62. end;

Can you update and test with this code? Note that extra spacing may not appear here as it may depend on the font used. Which one did you use in your program?

Regarding setting the line distance, you can use TextMultiline function and specify the paragraph spacing. However this is applied when encountering end of line characters, not when the text is over the width of the rectangle and wraps. I've added an example in the code above.

Otherwise a feature to specify line spacing in general could be added.

Regards
10
General / Re: how to search in rxmemory table
« Last post by rcmz on Today at 08:45:16 pm »
thx,

I will give it a try,

Does any body have sample code on how to use locate in rxmemory table, i need to search with 2 fields.

TIA
Ramiro
Pages: [1] 2 3 ... 10

TinyPortal © 2005-2018