* * *

Recent Posts

Pages: [1] 2 3 ... 10
1
Function "Save as Template..." is in Menu Editor window.
Maybe your problem is in some Form settings. For example, setting BorderStyle to bsDialog disappears MainMenu (at least here on Linux+Qt).
My apologies for a bump of an old thread but this solved the same problem for me.  Thanks.
2
General / Re: widechar evalution question
« Last post by Beardsley on Today at 05:50:33 am »
We would like to keep the news fresh.
3
Third party / Re: Mac Automation with Pascal
« Last post by Beardsley on Today at 05:49:15 am »
We need people related to the site to come to know each other.
4
General / Re: Thread Safety?
« Last post by kapibara on Today at 05:44:17 am »
ASerge uploaded a working demo so I thought why keep mine. But if you want, I can attach it again.  ::)

Did you delete your previous post?
5
General / Re: widechar evalution question
« Last post by engkin on Today at 05:16:40 am »
Is there any FPC/Lazarus setting so it behaves normally?

Try to typecast widechar to word:
Code: Pascal  [Select]
  1.   word(widechar(txtChar^)) in [word(widechar(':'))..word(widechar('@'))]
6
General / Re: Thread Safety?
« Last post by engkin on Today at 05:02:20 am »
ASerges attached demo ran fine under Linux.

Did you delete your previous post?
7
General / Re: Thread Safety?
« Last post by kapibara on Today at 05:00:17 am »
ASerges attached demo ran fine under Linux.
8
General / Re: When hackers talk Truth on Pascal
« Last post by del on Today at 04:40:01 am »
I used to call C shorthand for assembler, and... basically... that's what it still is... It has no structure. (I think I wrote that in about 1982)
When I was first introduced to C my background at that point was strictly assembly language. The relatively high levels of "abstraction" were kinda disturbing at first - like seeing Python for the first time after years of "traditional" programming. I'm not sure what you mean by "structure" but I think the low levels of pointer-centered processing and memory management are a good thing.
9
General / Re: Need some Help for RightToLeft TWinControls
« Last post by engkin on Today at 04:36:56 am »
r57267

how can i use this r57267 file

i download it and replace to "win32callback.inc" .

but i have error

The proper way is to follow wp's advice and use the trunk. But in this specific case you can try to change your original win32callback.inc code in one specific line from:
Code: Pascal  [Select]
  1.   useDoubleBuffer := (ControlDC = 0) and (lWinControl.DoubleBuffered or ThemeServices.ThemesEnabled);

to:
Code: Pascal  [Select]
  1.   useDoubleBuffer := (ControlDC = 0) and lWinControl.DoubleBuffered;

as shown in the diff. of this revision
10
General / Re: Thread Safety?
« Last post by engkin on Today at 04:28:59 am »
@ASerge, if you choose to set FThread.FreeOnTerminate := True then consider FThread = nil when you start the thread.

In the case of your project the thread was already started. So this code could possibly (while not probable) fail:
Code: Pascal  [Select]
  1.   FThread.FreeOnTerminate := True;
  2.   FThread.OnTerminate := @ThreadTerminated;  //<---- May fail

Worse in the form destruction event:
Code: Pascal  [Select]
  1. procedure TForm1.FormDestroy(Sender: TObject);
  2. begin
  3.   if Assigned(FThread) then
  4.     FThread.OnTerminate := nil;  //<--- May fail
  5.   FThread.Free;  //<--- May fail
  6. end;

There is no guaranty that before assigning nil to OnTerminate that the thread had not destroyed itself (due to FreeOnTerminate = True)
Pages: [1] 2 3 ... 10

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus