Hi, here is a quick introduction to what im trying to do:
load sounds (midi,mp3,wav) into a memory stream, then when called determine from the memory stream what type of file it is and play it.
im not a expert coder and am always keen to learn, code samples is easiest way for me to do this...
Hi, normally when i deal with treeviews that have more then one level, i can get the parent of the child by doing something like:
ShowMessage(TreeView1.Selected.Parent.Text);
if say i know it is 2 levels down the tree i would use:
ShowMessage(TreeView1.Selected.Parent.Parent.Text);
which...
Hi, first off ive never used the TClientDataSet component, which is partially why im asking here.
What i want to do is store resources and memo type information in my program, without the need of external files, and be able to open these in-memory files on the fly.
does anyone have any good...
This is driving me mad, i have my treeview setup something like:
-PARENT1
---aChild1
---aChild2
-PARENT2
---aChild1
---aChild2
---aChild3
..etc..
what i need to do is two things:
1) when i click on PARENT1 OR PARENT2, i need to delete all its childs
2) then add childs under whichever parent...
hi, im writing a program which allows me to store code snippets, i can save and load these fine, the file type for saved/loaded files are *.codelib
ive added a second .ico file in a res file created with BRCC32, no problems, using Res Hacker i can see this is the second icon in the exe.
Ive...
Hello, im saving alot of files, the paths are assigned in a listbox, eg the listbox could look like this:
E:\Delphi\My Folder\abc.txt
E:\Delphi\My Folder\def.txt
E:\Delphi\My Folder\ghi.txt
i can save these no problem, the problem im experiencing though is this:
i can view these files by...
ok this is frazzling my head right now. ok lets get started, i have a listbox which its items are representing file paths. so for example, it may contain the following items:
"C:\Windows\Delphi\My Folder\Folder1"
"C:\Windows\Delphi\My Folder\Folder2"
"C:\Windows\Delphi\My Folder\Folder3"...
Hello, im trying to determine if a folder contains any files, but there are rules:
-> If folder has no files, do nothing
-> If folder has no files, but contains mytextfile.txt then delete mytextfile.txt
-> If folder does contain files, loop through each file and save the filenames to...
ive tried the trial version, and im not happy with something, its enough to put me off buying a copy, and i cant get SynEdit to work with D2009.
anyway, the problem is the block commenting. if anyone has a TAdvMemo setup on a form, do this. Run the project (make sure pascal highlighter is...
hi, can anyone help me with the TRibbon?
i want to know mainly how i can put a TRibbon on my form, without losing the titlebar. wehenever i run the project, whether the ribbon is on the main form or any other form, the form with the ribbon loses its titlebar.
i would like for the titlebar to...
Hi, i have a listview in vsReport, i found this code on torry:
// Function to search items and select if found
// Funktion, um Items zu suchen unda falls gefunden, sie danach markieren
procedure LV_FindAndSelectItems(lv: TListView; const S: string; column: Integer);
var
i: Integer;
found...
Hi, i was populating a teechart based on if a certain subitem contained a value (got some help from here).
the code was this (which works):
procedure TfrmMain.UpdateWeightSeries;
var
i: Integer;
aStringList: TStringList;
begin
aStringList:= TStringList.Create;
try
with...
Hi, i have some decimals auto-generated, they look something like this:
29.4117647058824
31.1418685121107
34.6020761245675
anyway, how can i trim/delete/shorten the numbers to look like:
29.4
31.1
34.6
Thanks
Yo, im trying to get the color of red, green and blue by byte - i have 3 labels lblRed, lblGreen, lblBlue, and 3 scrollbars.
i want to show the correct value in each label 0-255 and also scrollbar positions, hope this makes sense:
procedure TForm1.RetrieveCurrentSkinColors;
var
R,G,B: Byte...
Hi, i have a listview with about 5 columns, and 30 rows.
can someone help me save this listview to text file so it ca be read easy, and then if the text file gets edited and i want to load the text file back into the listview, how could i do this?
Thanks!
Hi, im filling a teechart which contains 4 series based on values from a listview's subitems[x] property.
However it only seems to work with one of the series, it ignores the rest (will only ever populate one series at a time).
The series are:
LeftBicepSeries
RightBicepSeries...
Hi, anybody have a weight convert example or someone who can help? i can convert distances like this:
procedure TfrmDistanceConverter.cmdConvertClick(Sender: TObject);
var
MileToKM, KMToMile,
KMToMetre, MetreToKM: Double;
begin
{convert based on the selected option button}
if...
Hi, im trying to read the values of subitems[6] in a listview, if the value is empty how do i ignore reading it and just go the next subitem[6] that does contain a value??!
here is what i have so far, its to populate a teechart based on the value of the listview, im working with these values...
Hi, i need help, im trying to select a folder, say "C:\My Folder"
now suppose this directory contains files and subfolders, how can i loop through the directory, and put the output into a hierarchy treeview?
ive looked around and think i need to use FindNext and FindPrevious, but im not so...
hi i need somehelp, im trying to do this with a stringgrid:
1) where ever i hover the mouse over the grid, i want the row/column to highlight the cells a different color (ARow,ACol - X,Y point of mouse cursor)
2) if i click a cell i want the selected color to be different. also to have a...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.