Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: simmo09
  • Content: Threads
  • Order by date
  1. simmo09

    Help with TMemoryStream

    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...
  2. simmo09

    Treeview > Get the Top Most Parent of a Child?

    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...
  3. simmo09

    Should i use TClientDataSet for this?

    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...
  4. simmo09

    Get all the childs from treeview

    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...
  5. simmo09

    Programmatically Associate Files?

    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...
  6. simmo09

    Saving file, something wierd is happening!

    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...
  7. simmo09

    Help me sort these strings out..

    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"...
  8. simmo09

    Does Folder contain files?

    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...
  9. simmo09

    Has anyone used TMS Memo?

    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...
  10. simmo09

    TRibbon help...

    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...
  11. simmo09

    Searxh for string in listview

    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...
  12. simmo09

    How come this works, but this doesnt (TListview & TTeeChart)

    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...
  13. simmo09

    Shortening Decimal Values - But not using _Round()

    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
  14. simmo09

    Get Red, Green, Blue color of panel?

    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...
  15. simmo09

    Save/Load Listview to Text File???

    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!
  16. simmo09

    TeeChart - Populate More Than 1 Series at a time?

    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...
  17. simmo09

    Help Converting lbs to Stone etc..

    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...
  18. simmo09

    If a listview row is empty, how do i skip and go to next entry?

    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...
  19. simmo09

    Retrieve Files and Subfolders from a Directory?

    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...
  20. simmo09

    Help with a few TStringGrid queries

    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...

Part and Inventory Search

Back
Top