RE: RE: [DUG]: Delphi Apps in a Seamless Citrix Environment

2003-10-06 Thread Vaughan, Benjamin Carl
or WS_CLIPSIBLINGS or WS_SYSMENU or WS_MINIMIZEBOX // or WS_POPUP //, GetSystemMetrics(SM_CXSCREEN) div 2 //, GetSystemMetrics(SM_CYSCREEN) div 2, 0, 0 , -199, -19, 200, 20 , 0, 0 , HInstance , nil); // -Change -Original Message- From: Vaughan, Benjamin Carl [mailto:[EMAIL PROTECTED

RE: RE: [DUG]: Delphi Apps in a Seamless Citrix Environment

2003-10-06 Thread Vaughan, Benjamin Carl
, 20 , 0, 0 , HInstance , nil); // -Change -Original Message- From: Vaughan, Benjamin Carl [mailto:[EMAIL PROTECTED] Sent: Monday, 6 October 2003 14:01 To: Multiple recipients of list delphi Subject: [DUG]: Delphi Apps in a Seamless Citrix Environment Hi All, Currently our

[DUG]: Delphi Apps in a Seamless Citrix Environment

2003-10-05 Thread Vaughan, Benjamin Carl
Hi All, Currently our applications are published through a Citrix environment in which most of our users are set up to use the Seamless Window option. The problem that I have is that the application does not appear in the users taskbar unless the application is Minimised. I have

[DUG]: GetMenuBarInfo

2003-08-25 Thread Vaughan, Benjamin Carl
Hi, I am currently attempting to get the size of a Menu using the windows API method GetMenuBarInfo. My code is as follows var menuInfo: tagMENUBARINFO; res : longbool; begin //tbMenu is the TToolbar that TMainMenu is hooked up to res :=

RE: Re: [DUG]: GetMenuBarInfo

2003-08-25 Thread Vaughan, Benjamin Carl
August 2003 2:08 p.m. To: Multiple recipients of list delphi Subject: Re: [DUG]: GetMenuBarInfo Pass the form's handle, not the menu bar's. - Original Message - From: Vaughan, Benjamin Carl [EMAIL PROTECTED] To: Multiple recipients of list delphi [EMAIL PROTECTED] Sent: Monday, August 25

Re: [DUG]: GetMenuBarInfo

2003-08-25 Thread Vaughan, Benjamin Carl
Hi Warren, No I was trying to get the size of a TMainMenu. In my case I had stuck it into a Toolbar, but I did a test with it stuck into the main form as well, neither worked, both coming back with the same error. I also had tried the web first but there seems to be very little

[DUG]: Handling Exceptions

2003-08-18 Thread Vaughan, Benjamin Carl
Hi All, I have currently been working on an Exception handler for one of my applications and was giving it some test cases. I have found some exceptions that can not be handled.. e.g var aList : TStringList; begin Showmessage(aList.Text); end; This sort of exception basically exits you

RE: [DUG]: Integer conversion

2003-07-27 Thread Vaughan, Benjamin Carl
The easiest way is to use the following myString := FormatFloat('00',myInteger); Regards Ben Vaughan -Original Message- From: Leigh Wanstead [mailto:[EMAIL PROTECTED] Sent: Monday, 28 July 2003 10:49 a.m. To: Multiple recipients of list delphi Subject: [DUG]: Integer conversion Hello

[DUG]: INI files

2003-07-27 Thread Vaughan, Benjamin Carl
Hi All, Does anyone know if there is a TCustomINIFile specialisation that has been written to handle INI's from a Stream rather than a File? (The file is streamed from a database and I would like to avoid having to write it to the file system first if I can). Regards Ben

RE: Re: [DUG]: INI files

2003-07-27 Thread Vaughan, Benjamin Carl
: Vaughan, Benjamin Carl [EMAIL PROTECTED] To: Multiple recipients of list delphi [EMAIL PROTECTED] Sent: Monday, July 28, 2003 11:49 AM Subject: [DUG]: INI files Hi All, Does anyone know if there is a TCustomINIFile specialisation that has been written to handle INI's from a Stream rather than a File

RE: [DUG]: Interface Inheritance

2003-06-15 Thread Vaughan, Benjamin Carl
I would do the following Var Descendant : IFirstDecendant; Begin NewObject = TNewClass.Create; //I am going with the assumption that your //NewObject is know to be an interfaced object If (NewObject as IInterface).QueryInterface(IFirstDescendant,Descendant)=0 then //Code here

RE: [DUG]: Tab across TabSheets

2003-05-27 Thread Vaughan, Benjamin Carl
Title: Message You can handle this on the OnShortCut event of Form that the tabsheet is on. Regards Ben -Original Message- From: Allan, Samuel [mailto:[EMAIL PROTECTED] Sent: Wednesday, 28 May 2003 3:45 p.m. To: Multiple recipients of list delphi Subject: [DUG]:

RE: [DUG]: Information on IDispatch

2003-02-18 Thread Vaughan, Benjamin Carl
Hi, If you are wanting to use IDispatch to access interface methods you will need to use the Invoke method. The key parameters that you will need to set is the DispID for the method that you want to call, and the parameter object. The DispID can be obtained easily from the type library, and

[DUG]: Getting the CharSet from a Unicode character.

2002-10-30 Thread Vaughan, Benjamin Carl
Hi All, I am trying to find out given a unicode character how one would extract the characters charset. For example if you display #19971 in Internet Explorer it will automattically recognise that this belongs to the Chinese Big5 charset and display it accordingly(assuming you have the font).

RE: [DUG]: Pound sign

2002-10-20 Thread Vaughan, Benjamin Carl
It is alt-1-5-6 on my keyboard. Ben I'm working on an app that needs to be able to handle the UK pound sign, then yen sign etc as input. How can I enter these from a US-style keyboard? The pound seems to be char (163), but alt-1-6-3 produces z ... confused. Terry

[DUG]: HTML to RTF

2002-10-01 Thread Vaughan, Benjamin Carl
Hi All, Does anyone know of any delphi component that can convert HTML to RTF that they would reccomend? Ben --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website:

[DUG]: A COM interface for a TStream object

2002-09-26 Thread Vaughan, Benjamin Carl
Hi All, I am attempting to write a COM interface for the TStream object, but I am currently running into a problem. The current issue that I am facing is with my CopyFrom method which I have pasted below. The problem that I have is that when the method completes it raises an access violation

RE: [DUG]: A COM interface for a TStream object

2002-09-26 Thread Vaughan, Benjamin Carl
for a TStream object Hi, This doesn't answer your question but may help you.. Have you looked at TStreamAdapter which Implements OLE IStream on VCL TStream? It's in the 'classes' unit. Could save you a lot of time :) Chris -Original Message- From: Vaughan, Benjamin Carl [mailto:[EMAIL

RE: [DUG]: GUIDs for Session Ids?

2001-11-11 Thread Vaughan, Benjamin Carl
Hi, My first question is, is this a good idea (using a GUID as a session Id) We use GUID's as session Id's for our website, and currently have had no problems using these as Session IDs. (the website goes through approx 4400 sessions per day) My second question is, if it is an alright idea,

[DUG]: Event Log interaction with Delphi

2001-10-15 Thread Vaughan, Benjamin Carl
Hi, I have created a service that logs errors to the NT application event log, this bit currently works fine. Within registry you can then specify the application/dll that will handle the event log descriptions with the EventMessageFile parameter.

RE: [DUG]: Event Log interaction with Delphi

2001-10-15 Thread Vaughan, Benjamin Carl
Thanks Nello Myles, I have used MC and created a .rc and .bin file which I have been able to successfully add to my Delphi project and compile it. I then have used a useful little application called Resource Hacker, and can confirm that the message table is now within the application.