Recent

Recent Posts

Pages: [1] 2 3 ... 10
1
Beginners / Re: Can function be used for change event
« Last post by jamie on Today at 12:26:42 am »
The modified property would be a good one to use however, I think it needs to be cleared when the control gets reentered because  it may retain its last value.

 The idea behind that is you can always have a bunch of controls on a form, each having a MODIFIED property and at the end of the editing session you can then scan all of these controls for changes and then update some external data area. etc.

 but on initial entry of the form, it maybe a good idea to clear all of these.
2
General / Re: open dialog - default directory
« Last post by jamie on Today at 12:16:58 am »
as far as I know, it has never worked in the way it's documented.

 you need to Set your FILENAME with the folder path attached to it.

FileName := 'THe_Directory\'+datei

The InitDir will report where the first folder was pointed to when you exit the dialog.


3
General / Re: DbGrid, grid column checkbox?
« Last post by KodeZwerg on Today at 12:08:29 am »
Since I don't read a real question just a begin of one, here
Anyone designed something similar ...
I simple answer with a yes, anyone did it.
4
General / DbGrid, grid column checkbox?
« Last post by 1HuntnMan on April 24, 2024, 11:13:57 pm »
In the app I'm working, one of my users made a good suggestion. For certain lookup tables, why don't you design the lookup table to have a default, i.e. countries, states/provinces?
So, just testing I added a boolean field to the countries table (TDbf) and then modified the countries maintenance form in my app, which is a small form that has a DBGrid with the Country Code, Country Name, and IS_DEFAULT fields and added a column in the DBGrid for the IS_DEFAULT field with the property ButtonStyle=cbsCheckboxColumn, FieldName=boolean field IS_DEFAULT and ValueChecked=Yes and ValueUnchecked=No.  But, after compiling and running the app. The Countries forms displays the IS_DEFAULT as a column of blue highlighted check boxes with a - or minus sign.  You can't check any of these.  But, if I bring up the countries table in My DBF Studio, his DBGrid is working properly. You can check off any country as the default.
Anyone designed something similar and made it work like My Dbf Studio. Tks.
5
General / Re: Colore celle StringGrid
« Last post by JuanBell on April 24, 2024, 10:37:56 pm »
Grazie di tutto thanks for everything
7
Networking and Web Programming / Re: Any upgrades to fpWeb page components?
« Last post by verasan on April 24, 2024, 10:11:46 pm »
I would be happy for real documentation from developer team
8
Debugger / Re: FpDebug likely bug
« Last post by Martin_fr on April 24, 2024, 09:48:34 pm »
Yes, TurboPowerIpProDsgn is installed by default, but you can uninstall it. Hence, you can build an IDE with grey hints. But that is not the issue here.

Yes, it should be reported as a bug. It should be reported as a bug against codetools. (as the & breaks more than just the hint).

"Codetool breaks on "&" in front of identifier (hint, source link, completion)"



I would say, there is a 2nd bug (though I am not 100% sure, could be missing feature).

If you go to Tools > Options > Editor > Completion and Hints: "Show declaration hints" and switch this off (this switches off the codetool hint).
But leave the "Show value hints while debugging" on.

Then the debug hint will always be grey.

It can be reported as "Source Editor hints not using yellow TurboPowerIPro hint for non-codetool hint"


Both can be reported using my example source, and the latter with reference to the settings above.
9
General / Re: Colore celle StringGrid
« Last post by Lutz Mändle on April 24, 2024, 09:45:10 pm »
Use the OnPrepareCanvas event of the stringgrid for coloring the cells, for example like this:

Code: Pascal  [Select][+][-]
  1. procedure TForm1.StringGrid1PrepareCanvas(Sender: TObject; aCol,
  2.   aRow: Integer; aState: TGridDrawState);
  3. begin
  4.   if (ACol > 0) and (ARow > 0) then
  5.     if Odd(aCol) then
  6.       TStringGrid(Sender).Canvas.Brush.Color := clGreen
  7.     else
  8.       TStringGrid(Sender).Canvas.Brush.Color := clRed;
  9. end;
  10.  
10
General / Re: Colore celle StringGrid
« Last post by qk on April 24, 2024, 09:34:32 pm »
Se non hai dimistichezza con l'inglese aggiungi comunque una copia
del tuo messaggio tradotta anche con google translator.
In questo modo il messaggio sarà comprensibile a tutti e più persone potranno aiutarti.

Sotto un semplice esempio di come colorare le colonne dispari.

Google translator:
If you don't speak English well, still add a copy of your message
translated with Google translator. This way, the message will be
understandable to everyone, and more people can help you.

Below is a simple example of how to color the odd columns.

Code: Pascal  [Select][+][-]
  1. procedure TForm1.StringGrid1DrawCell(Sender: TObject; aCol, aRow: Integer;
  2.   aRect: TRect; aState: TGridDrawState);
  3. begin
  4.   if (ACol > 0) and (ARow > 0) then
  5.     with Sender as TStringGrid do
  6.     begin
  7.       if Odd(ACol) then
  8.       begin
  9.         Canvas.Brush.Color := clGreen;
  10.         Canvas.FillRect(aRect);
  11.         Canvas.TextOut(aRect.Left + 2, ARect.Top + 2, Cells[ACol, ARow]);
  12.       end else
  13.       begin
  14.         Canvas.Brush.Color := clRed;
  15.         Canvas.FillRect(aRect);
  16.         Canvas.TextOut(aRect.Left + 2, ARect.Top + 2, Cells[ACol, ARow]);
  17.       end;
  18.     end;
  19. end;


   
Pages: [1] 2 3 ... 10

TinyPortal © 2005-2018