-
Content Count
2527 -
Joined
-
Last visited
-
Days Won
145
Posts posted by Uwe Raabe
-
-
That is just like Application.ProcessMessages works: It processes the messages in the queue. If one of those messages calls Application.ProcessMessages in a loop, the outer Application.ProcessMessages will only get control back when that inner loop ends and the event call returns.
IMHO, you can safely remove the frivolous in your last statement.
- 1
-
Although it is not written explicitly in the docs
Quote- For a logical operator and a bitwise operator using the same symbol, the logical operator is used only when the operands are booleans. Since the type of record for this record operator is not a boolean, a logical operator will only be used when the other operand is a boolean.
I assume the Logical operators are used as if they were Bitwise operators when the condition above is not met and no corresponding Bitwise operators are declared.
Nevertheless could you achieve the same using Bitwise operators in the first place.
-
The first patch for the just released RAD Studio 12.1 Athens is available: RAD Studio 12.1 Athens Patch 1 Available
- 2
- 3
-
If command
in VCL
Also there is a begin missing before the if.
I suggest reading some basics about Pascal/Delphi syntax.
-
33 minutes ago, Lainkes said:But once you disable the panel, nothing can be changed.
Well, you have to enable all parent controls of the PageControl to let the user change tabs.
In most of the cases disabling a whole form is not what you actually need. Often it boils down to disable individual components unless you can group some with TPanel or TTabSheet. There is no common approach to that as it usually depends on your UI design - which we cannot see.
-
In that case you should use the Enabled property of each TabSheet.
-
51 minutes ago, jesu said:There should be an option to do always a clean compilation.
Isn't that what Build is for (in contrast to Compile)?
AFAIK, these Internal Errors happens because the compiler doesn't clean up properly. I doubt that this can be fixed by just adding an option to do so.
- 1
-
That error implies that the underlying field is not existing, probably because the dataset is not open. I would expect that the line
DTP_STAT_HAND_GRIF_VOL_DOSSIER_OPVR_DATE.DataSource.Edit;
I added to the code would cause an error first, but perhaps you just missed to copy that line into your code.
Anyway, besides checking for Field <> nil, the question is: Why would you want to set that value when the dataset is not open?
-
It may be better to directly change the underlying data field instead of the control:
procedure Tfrm_Page_Control.DBCheckBox44Click(Sender: TObject); begin DTP_STAT_HAND_GRIF_VOL_DOSSIER_OPVR_DATE.DataSource.Edit; if TDBCheckBox(sender).Checked then begin DTP_STAT_HAND_GRIF_VOL_DOSSIER_OPVR_DATE.Field.AsDateTime := Now; DTP_STAT_HAND_GRIF_VOL_DOSSIER_OPVR_DATE.Visible := True; end else begin DTP_STAT_HAND_GRIF_VOL_DOSSIER_OPVR_DATE.Field.Clear; DTP_STAT_HAND_GRIF_VOL_DOSSIER_OPVR_DATE.Visible := False; end; end;
-
The error message is pretty clear: Set the ShowCheckBox property of the DateTimePicker to True.
You don't even have to set the Date property to NULL. It should be sufficient to uncheck the Checkbox or set the Checked property to False. That will write a NULL value to the data field instead of 30/12/1899.
-
8 hours ago, Ian Branch said:It would be nice to have, say a checkbox, that made the Default used instead of Groups.
Good idea! I just created a feature request for that. Cannot promise when it will be implemented, though.
-
21 minutes ago, VilleK said:I have multiple Delphi installs on this computer
I also have several Delphi versions on my system, but each if them has only one and an appropriate evaluator in that registry key.
-
14 minutes ago, Davide Angeli said:For me no longer works the block selection mode: combination CTRL+O+C doesn't work properly.
Please file a bug report.
-
No problems here.
-
When a control has csReplicatable in its ControlStyle, it signals that it can be copied using the PaintTo method to draw its image to an arbitrary canvas. Perhaps that doesn't hold true for TMyDataLabel?
-
54 minutes ago, Ian Branch said:but I have just noticed that if I disable a DEFINE, {.DEFINE XXXXX}, the code between the {$IFDEF XXXXX} & {$ENDIF} no longer greys out the code inbetween.
As this feature is driven by LSP, it looks like the code contains a construct LSP is stumbling about. Do you notice any other problems with Ctrl-Click navigation, error insight or code insight?
-
Works here even when monitors are side-by-side. Although the frame and toolbar appear on the main monitor, just clicking into the second one shots the second one.
-
37 minutes ago, Cristian Peța said:do I need to do something more than login to see the report?
Either wait that someone adds you to the Embarcadero Customers group or file an issue by yourself, which automatically adds you to the group.
-
Could be related to String with non-ASCII characters directly attached to a #xx or #$xx literal corrupts the final string
Current workaround is to use a + operator to concatenate the parts.
- 3
-
So, perhaps a dpi issue? Some system information may be helpful here.
-
13 minutes ago, PeterPanettone said:The ideal position for Hints would be ABOVE THE CARET.
You might file a feature request in the new Quality Portal.
-
The credentials for this forum and Embarcadero Licensing are two totally independent things. This forum is not even driven by Embarcadero.
-
Probably some setting in your system. This is what happens here:
-
16 hours ago, Vincent Parrett said:You typically do not want the console logger or the xml logggers when using TestInsight - and when running on a CI server you probably don't want the console logger.
The inclusion of the units seems to do no harm. The linker probably omits them when no instance is created.
It is different with TestInsight as unit TestInsight,DUnitX may not even exist.
Ping-pong between two Application.ProcessMessages
in VCL
Posted
It just looks like the easiest to implement, but most of the time it turns out to be the hardest to get it done right.
Another approach is to wrap the code into some TThread.ForceQueue construct. F.i. a loop calling Applicaton.ProcessMessages can be refactored like this:
procedure DoAllTheThings; begin DoSomething; while DoWeNeedToWait do Application.ProcessMessages; DoWhatEverIsNecessary; end;
Refactored:
procedure DoAllTheThings; begin DoSomething; DoTheRest; end; procedure DoTheRest; begin if DoWeNeedToWait then TThread.ForceQueue(nil, DoTheRest) else DoWhatEverIsNecessary; end;
All the code is still executed in the main thread, but there is no loop blocking anything.