-
Content Count
1406 -
Joined
-
Last visited
-
Days Won
22
Everything posted by programmerdelphi2k
-
TStringGrid ComboBox not updating dataset
programmerdelphi2k replied to TrevorS's topic in Cross-platform
FMX sample: using more easy way to "use a list of values in a column" = PopUpColumn on StringGrid type TForm1 = class(TForm) StringGrid1: TStringGrid; PopupColumn1: TPopupColumn; Memo1: TMemo; procedure StringGrid1CreateCustomEditor(Sender: TObject; const Column: TColumn; var Control: TStyledControl); procedure StringGrid1EditingDone(Sender: TObject; const ACol, ARow: Integer); private { Private declarations } public { Public declarations } end; var Form1: TForm1; implementation {$R *.fmx} procedure TForm1.StringGrid1CreateCustomEditor(Sender: TObject; const Column: TColumn; var Control: TStyledControl); begin Memo1.Lines.Add(TimeToStr(now) + ' - CreateCustomEditor'); // // loading values... or anyother sources! PopupColumn1.Items.DelimitedText := 'Item1,Item2,Item3'; end; procedure TForm1.StringGrid1EditingDone(Sender: TObject; const ACol, ARow: Integer); begin Memo1.Lines.Add(TimeToStr(now) + ' - EditingDone'); end;- 4 replies
-
- tstringgrid
- fmx
-
(and 4 more)
Tagged with:
-
is it not the same than above? procedure TForm1.Button1Click(Sender: TObject); var LText : string; LSubText : string; LFinalText : string; LPos : Integer; LTextLength: Integer; LLineLenght: Integer; begin // here, there is no-way!!! "const" just 255 LText := 'They are of type String already. The limitation seems to be in the parser which cannot deal with lines longer ' + { } 'than 255 characters in the source. But there is an easy workaround, which your third-party tool should use for long string ' + { } 'literals: split it into several shorter literals concatenated by plus linebreaks. Much easier to read for you as well if you need' + { } ' to manually correct stuff later.'; // LFinalText := #39; LLineLenght := 11; // >= 1... LPos := 1; // > 1.. LTextLength := LText.Length; while LPos <= LTextLength do begin LSubText := copy(LText, LPos, LLineLenght); // LFinalText := LFinalText + LSubText + #39; // LPos := LPos + LLineLenght; // if (LPos <= LTextLength) then LFinalText := LFinalText + '+' + sLineBreak + #39; end; // Memo1.Text := LFinalText; end;
-
The problem with the "FlowPanel" is precisely the "flow of controls inside it"... Try placing the 5 panels above (left aligned) and resizing the "FlowPanel" to different sizes, including changing the "FlowStyle" to whatever others... First, you may not be able to keep all the sub-panels left-aligned (like the sample above), as the "FlowPanel" will have its own alignment rule! So the "Align" property of the sub-panels will have no effect!
-
Bitmaps regularly disappearing from Rectangle components
programmerdelphi2k replied to domus's topic in Delphi IDE and APIs
are you using any 3rd-party components in special? if yes, what? try zip your "Form+Pas" and upload here... let me see it -
bde_2_fd FireDAC performances
programmerdelphi2k replied to mario.arosio@gmail.com's topic in Databases
look, to "GROUP all data" it's necessary a while... index, find, group, etc... etc.. etc.. if this is done using a "VIEW" on DB (before any usage), then, this time can "is gone" not? did you try if it's possible or not? -
TStringGrid ComboBox not updating dataset
programmerdelphi2k replied to TrevorS's topic in Cross-platform
try this... // my sample in FMX project AGridOrStringGrid.BeginUpdate; try TMyHackTGridModel(AGridOrStringGrid.Model).DoSetValue(ACol, ARow, AValue); // calls OnSetValue(...); // AGridOrStringGrid.Model.PostEditorValue; // <---- all rest is done by "Model" if datasource is your table, etc... // finally AGridOrStringGrid.EndUpdate; end;- 4 replies
-
- tstringgrid
- fmx
-
(and 4 more)
Tagged with:
-
maybe putting all "panel (with your alignment)" in a "PANEL" then, can help you not? if in FMX, use a TLayout procedure TForm1.Btn_Hide_Show_PanelsClick(Sender: TObject); begin // who will be the first... or last = visible? for var i: integer := 0 to (Form1.ComponentCount - 1) do if Form1.Components[i] is TPanel then TPanel(Form1.Components[i]).Visible := not TPanel(Form1.Components[i]).Visible; end; procedure TForm1.Btn_Show_Hide_PanelONEClick(Sender: TObject); begin // nothing should be change here! stay where was defined! Panel1.Visible := not Panel1.Visible; end; all aligned on "Left": 2,3,4,5,6
-
bde_2_fd FireDAC performances
programmerdelphi2k replied to mario.arosio@gmail.com's topic in Databases
many "JOINs" for sure... did try use a "VIEW" instead create your SQL all time? using a "VIEW" (on DB definition) your data "always" it's ready for use any time! then, you use this "VIEW" as you table as usual... but none space it's really used on DB!!! Tip: maybe you need "re-think" your way not? -
How to register a shell property sheet for a single file type?
programmerdelphi2k replied to FPiette's topic in Windows API
I dont know if help but I found this page with sample to "Control Panel" + new propsheet with "source code" in "C" (.... shellex\PropertySheetHandlers) by Michel Dunn https://www.codeproject.com/Articles/802/Adding-Custom-Pages-to-Control-Panel-Applets Added: in the book "Delphi 5 Developer's Guide - Xavier Pacheco and Steve Teixeira (Dec-1999)" exists a topic "Extending the Windows Shell", Chapter 24, pg 1251, about TContextMenu customization -
Retrieving Android Device IP Address Problem
programmerdelphi2k replied to a topic in Cross-platform
did try use "AppTethering?"... = UDP and TCP = Indy behind scenes!!! easy setup just create a group/password and it's ready same network or not. Network/Bluetooth http://www.malcolmgroves.com/blog/?p=1842 -
try look REGISTRY on Embarcadero keys.. delete the reference (not the "Key") if not necessary anymore
-
bde_2_fd FireDAC performances
programmerdelphi2k replied to mario.arosio@gmail.com's topic in Databases
post your SQL text ( not need all Fields ... just fields used to create the "joins" between tables ) ... how is it? -
Retrieving Android Device IP Address Problem
programmerdelphi2k replied to a topic in Cross-platform
you need "uses System.Generics.Collection;" -
Retrieving Android Device IP Address Problem
programmerdelphi2k replied to a topic in Cross-platform
in fact, many errors occurs on code above... I think that is necessary "review it"... for current IDE's like RAD 11. MyList = my var used to store a list of "TJInetAddress", nothing more. you can use "array", you dont need any TList, at all. -
Alexandria 11.3 - Firedac/OnValidate String Field
programmerdelphi2k replied to Antonio Gomes's topic in Databases
this occurs in any visual component with "scroll" action, like in TDbgrid, TDbCtrlGrid... in TDbEdit I dont see it... -
Retrieving Android Device IP Address Problem
programmerdelphi2k replied to a topic in Cross-platform
-
Alexandria 11.3 - Firedac/OnValidate String Field
programmerdelphi2k replied to Antonio Gomes's topic in Databases
no no no... the "rules" should be on DB not in "visual/non-visual" components, like your sample! of course, you can do it if you want! -
Alexandria 11.3 - Firedac/OnValidate String Field
programmerdelphi2k replied to Antonio Gomes's topic in Databases
I dont know... it's necessary wait Embarcadero ticket... I never use "Dataset" events like this... always in DB by default! all biz-rules!!! -
Alexandria 11.3 - Firedac/OnValidate String Field
programmerdelphi2k replied to Antonio Gomes's topic in Databases
in two case above, when "S" you read this: if FALSE or TRUE then = true if FALSE AND TRUE then = false -
Alexandria 11.3 - Firedac/OnValidate String Field
programmerdelphi2k replied to Antonio Gomes's topic in Databases
sorry my fault... -
Alexandria 11.3 - Firedac/OnValidate String Field
programmerdelphi2k replied to Antonio Gomes's topic in Databases
the values is already "empty" since "procedure TForm3.FDMemTable1NewRecord(DataSet: TDataSet);" -
Alexandria 11.3 - Firedac/OnValidate String Field
programmerdelphi2k replied to Antonio Gomes's topic in Databases
ok, the errors appears = field value = empty... but the record is appended with value informed! -
Alexandria 11.3 - Firedac/OnValidate String Field
programmerdelphi2k replied to Antonio Gomes's topic in Databases
ShareX - open source on Github +200 contributors Microsoft Store: search for "ShareX" tool or https://getsharex.com/ -
Alexandria 11.3 - Firedac/OnValidate String Field
programmerdelphi2k replied to Antonio Gomes's topic in Databases
im has only RAD 11.3 -
Alexandria 11.3 - Firedac/OnValidate String Field
programmerdelphi2k replied to Antonio Gomes's topic in Databases
zip with only EXE = virus, ransomware, spyware,... no no no, show the source please!