Board index » delphi » Re: Win32 Needs
|
Nick Hodges (Borland/DTG)
Delphi Developer |
|
Nick Hodges (Borland/DTG)
Delphi Developer |
Re: Win32 Needs2006-09-01 01:06:05 AM delphi106 Craig Stuntz [TeamB] writes: QuoteWell, you just aren't going to get good Unicode support on 9x, no -- Nick Hodges Delphi/C# Product Manager - Borland DTG blogs.borland.com/nickhodges |
| Bryce K. Nielsen
Delphi Developer |
2006-09-01 01:06:08 AM
Re: Win32 NeedsQuote1. Unicode VCL -BKN |
| Bryce K. Nielsen
Delphi Developer |
2006-09-01 01:14:35 AM
Re: Win32 NeedsQuote3. Namespaces instead of unit names. Now it is hard to write small units class in the same unit in Delphi/C# and don't have to clutter up the project with yet another unit... -BKN |
| Chris Morgan
Delphi Developer |
2006-09-01 01:15:08 AM
Re: Win32 NeedsQuoteI don't use it that often, and it is usually within a block of code where cheers, Chris |
| Bryce K. Nielsen
Delphi Developer |
2006-09-01 01:23:32 AM
Re: Win32 NeedsQuote... but now that the IDE has code-completion, surely 'with' is more read. Compare these two blocks: Company.ClientList[0].Customers[1].Addresses[0].Address1 := 'some value'; Company.ClientList[0].Customers[1].Addresses[0].Address2 := 'some value'; Company.ClientList[0].Customers[1].Addresses[0].City := 'some value'; Company.ClientList[0].Customers[1].Addresses[0].State := 'some value'; //compared with with Company.ClientList[0].Customers[1].Addresses[0] do begin Address1 := 'some value'; Address2 := 'some value'; City := 'some value'; State := 'some value'; end; And that is a good case scenario. Sometimes it goes real deep and the with just makes it more readable to me. -BKN |
| John Kaster (Borland/DevCo)
Delphi Developer |
2006-09-01 01:24:17 AM
Re: Win32 Needs
Jo Reiter writes:
QuoteGood idea, but that is not the point. -- John Kaster blogs.borland.com/johnk Features and bugs: qc.borland.com Get source: cc.borland.com If it is not here, it is not happening: ec.borland.com |
| Eric Grange
Delphi Developer |
2006-09-01 01:25:31 AM
Re: Win32 NeedsQuoteI'd love that, but it pretty much requires reflection. class/recordtype names, you have all that is needed. A more generic "published" mechanism that wouldn't be so tied to design-time UI stuff would already achieve quite a lot and then some. Eric |
| John Kaster (Borland/DevCo)
Delphi Developer |
2006-09-01 01:25:52 AM
Re: Win32 Needs
Brian Moelk writes:
QuoteI actually like the TDBGrid that is included, but some simple into the sortable grid that I haven't seen anywhere yet, and they're quite feasible to do, but TVirtualTreeView makes them even more feasible. -- John Kaster blogs.borland.com/johnk Features and bugs: qc.borland.com Get source: cc.borland.com If it is not here, it is not happening: ec.borland.com |
| Brian Moelk
Delphi Developer |
2006-09-01 01:27:29 AM
Re: Win32 Needs
mamcx writes:
QuotePoint me to how extract that info (before I try with classic spidering That would be great to build an IDE plug-in using MUTIS to enable free text searching. -- Brian Moelk Brain Endeavor LLC XXXX@XXXXX.COM |
| John Kaster (Borland/DevCo)
Delphi Developer |
2006-09-01 01:27:35 AM
Re: Win32 Needs
Rob McDonell writes:
QuoteYes please. I am struggling with exactly this at the moment. data-aware controls back in the Delphi 5 timeframe that still work and would be pretty convenient for people to have. I'd like to get the code into a community project so others can improve it and I can just moderate check-ins. Community projects is also on my list to do in the near term. -- John Kaster blogs.borland.com/johnk Features and bugs: qc.borland.com Get source: cc.borland.com If it is not here, it is not happening: ec.borland.com |
| h.mcgillivray
Delphi Developer |
2006-09-01 01:34:29 AM
Re: Win32 Needs
Rick Beerendonk writes:
<snip> QuoteI don't see why *2* would make things more difficult. Just put your vars and university, in a very procedural / functional style. So it was fairly easy to get used to using Delphi in a procedural event driven way, but I had no idea about OOP at all. Perhaps I am not the average beginner. I first learned programming on an Apple II using Basic with line numbers and GOTO's a-plenty. If I had been coming to programming fresh, then perhaps OOP would have been easy, but having previous conceptions of 'how programming was done' I found the whole OOP thing just confusing to start with. As it was, I could re-learn the basics in a event driven procedural/functional style (and was completely amazed as to how easy Delphi made things) , then apply OOP to that afterwards, one I had a clue about it. I can see the point about warning , but 'No vars / procedures / functions that are not a member of an object' would be a step too far. H.McG |
| klunk
Delphi Developer |
2006-09-01 01:38:07 AM
Re: Win32 NeedsQuote>less buggy Printers unit. to some other printers in code using Printer.PrinterIndex := (IndexOfOtherPrinter), using that printer throws an EDivByZero exception. Tracing into vcl source shows it happens at the Windows.StartDoc Win32 API function call. If you want to see it yourself, just download the following printer drivers and install as FILE: printers (easy for testing. The error shows up no matter what port the printer is on.). Xerox Workcentre 4118 or HP Color Laserjet 8500 PS and Lexmark E210 or Samsung ML-1710 Set either the Xerox or HP to default printer. Start a new project: // drop a combobox and a button on a form // set combobox to dsDropDownList // in formcreate: ComboBox1.Clear; ComboBox1.Items.Assign(Printer.Printers); // in ComboBox1Click: Printer.PrinterIndex := Printer.Printers.IndexOf(ComboBox1.Items[ComboBox1.ItemIndex]); // in Button1Click: ShowMessage('Printing to: ' + Printer.Printers[Printer.PrinterIndex]); Printer.BeginDoc; Printer.Canvas.Font.Name := 'Courier New'; Printer.Canvas.Font.Size := 14; Printer.Canvas.TextOut(100, 100, 'This is a test'); Printer.EndDoc; Run it and set the printer in the combobox to either the Lexmark or Samsung, click print and, after you enter a dummy file name, watch the fireworks. If you add another button and put the following in its OnClick to use a printdialog to set the printer, no error: with TPrintDialog.Create(nil) do begin if Execute then Button1Click(Sender); end; My best guess is that the Printers unit does not correctly setup the device context when a printer is changed using PrinterIndex, in some cases. This is with Delphi 7 by the way. My understanding has been that the printers unit has not been touched since before then. If I am mistaken and this was fixed, I will gladly buy BDS or Turbo Pro. |
| Dave Keighan
Delphi Developer |
2006-09-01 01:49:58 AM
Re: Win32 Needs
Rob,
Quote>What about a data-aware TVirtualTreeView descendant instead? It also has VTV and ThemeManager included - if you don't already have them. -- Dave Delphi Hobbyists and Occupational Developers Member Since 1998 |
| OBones
Delphi Developer |
2006-09-01 01:59:12 AM
Re: Win32 Needs
Nick Hodges (Borland/DTG) writes:
QuoteCraig Stuntz [TeamB] writes: Olivier Sannier JVCL Coordinator jvcl.sf.net/ Find more about me on LinkedIn: https://www.linkedin.com/in/obones |
| John Kaster (Borland/DevCo)
Delphi Developer |
2006-09-01 02:00:07 AM
Re: Win32 Needs
Dave Keighan writes:
QuoteVery cool, I would like to try a BDS-2006 version of that. been hoping to get that into a release version. There are 3 different packages involved here (5 if I include the ones for Kylix), and only 2 of them are design-time packages. It's just a little annoying to set up, but the new project manager in D2005 and D2006 certainly would make them easier to install. Then I just need to write a brief article explaining the architecture and how to install and use them with a sample app .... Yeah, it is trivial. :| -- John Kaster blogs.borland.com/johnk Features and bugs: qc.borland.com Get source: cc.borland.com If it is not here, it is not happening: ec.borland.com |
