Re: [DUG] Salaries in NZ?

2007-09-13 Thread Allan Vergara
On top of the car park, some companies may also offer super ann, health insurance, company bonus, free carbonated drinks, fruits (just to balance things out), and the occasional Friday afternoon massage :) I say chose Christchurch mate :) we are more relax down here, plus we have an awesome ru

RE: [DUG]: Debug

2003-11-11 Thread Allan Vergara
If you have an access violation address you can subtract $00401000 from it and the difference is the address in the map file where your error occurred. There are lots of tools out there that will do this for you automatically. I have one here that I wrote myself, but its fairly basic. If you want

RE: [DUG]: Minimize

2003-11-06 Thread Allan Vergara
Works fine for me. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of John Sent: Thursday, 6 November 2003 10:41 AM To: Multiple recipients of list delphi Subject: [DUG]: Minimize Hi all, The following call to minimize my application works fine in W95, W98,

RE: [DUG]: Sharing strings in 2 applications

2003-11-06 Thread Allan Vergara
Use WM_COPYDATA to send strings or other data to another application.   sample code: var   CopyData :TCopyDataStruct;   s :String; begin   s:= 'Some string.';     CopyData.dwData:=  ;  //Message that identifies the data attached, can be any cardinal value meaningfull to the other app.  C

[DUG]: Centring a radiobutton

2003-11-06 Thread Allan Vergara
Here's one for the Delphi gurus, I have a custom RadioButton component and I want to centre the actual "button" on the centre of its ClientRect. By overriding the CreateParam proc I should be able to do this. However BS_CENTER only centres the "text" horizontally and not the actual button (the

RE: [DUG]: Capturing input focus

2003-11-04 Thread Allan Vergara
L PROTECTED] On Behalf Of Allan Vergara Sent: Tuesday, 4 November 2003 2:01 p.m. To: Multiple recipients of list delphi Subject: [DUG]: Capturing input focus Been trying to figure this one out for a while now but still no luck. What I have is a TrackBar control derived from TCustomControl. Within t

[DUG]: Capturing input focus

2003-11-04 Thread Allan Vergara
Been trying to figure this one out for a while now but still no luck.  What I have is a TrackBar control derived from TCustomControl.  Within this control I'm trying to trapping the messages WM_SETFOCUS and WM_KILLFOCUS but this little experiment fails because these messages are not being se

RE: [DUG]: Colouring TListbox Headers

2003-10-30 Thread Allan Vergara
There are lots of information out there on how to change the color of a TButton, just do a Google search. But anyways, one of the way you can color a button is to create your own TButton control and trap the WM_PAINT message. WMPaint var ControlCanvas :TControlCanvas; aRect :TRect; begin

RE: [DUG]: Spanish Problem

2003-10-01 Thread Allan Vergara
Your program is probably failing when you call StrToFloat? I suggest you check the decimal separator in the regional settings in the computer. I think if you set your locale to Spanish, this changes the decimal separator to ',' and the thousand separator to '.' (its a euro thing). To fix this si

RE: [DUG]: Running Word Doc

2003-08-04 Thread Allan Vergara
To check if Word is running: if Succeeded(GetActiveObject(CLASS_WordApplication, nil, Unknown)) then ShowMessage('Word is running!'); hope that helps. Allan. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of John Sent: Tuesday, 5 August 2003 8:33 a.m.

RE: [DUG]: Previewing mouse events in a panel

2003-07-29 Thread Allan Vergara
Do you want all the controls within the Panel to have the same cursor as the Panel? If so when you changed the cursor of the Panel why not loop through each of the Panel's control and change their cursor property the same as the Panel? -Original Message- From: [EMAIL PROTECTED] [mailto:[E

RE: [DUG]: TChart Set LeftAxis Labels

2003-07-09 Thread Allan Vergara
Signiture: procedure GetAxisLabel(Sender: TChartAxis;  Series: TChartSeries; ValueIndex: Integer; var LabelText: string);   Use: GetAxisLabel(LeftAxis, HorizBarSeries, 1, 'any old string');   See anything wrong here?   Your passing 'any old string' (which is a const) and catching it as a var

RE: [DUG]: positioning Controls at runtime

2003-06-30 Thread Allan Vergara
Re 2/ You would need the following "magic numbers" $f012 -> allows the control to be moved $f001 -> size left $f002 -> size right $f003 -> size top $f004 -> size top-left $f005 -> size top-right $f006 -> size bottom $f007 -> size bottom-left $f008 -> size btoom-right to use the

RE: [DUG]: Form not shown

2003-06-08 Thread Allan Vergara
you can hide the form before it is activated; Hence OnActive/CM_ACTIVATE. To get rid of the annoying blink that occurs when the form is initially shown, then you might want to offset the position of the form so that it is initially displayed outside the boundary of the screen. Hope this helps. --

RE: [DUG]: Debugging DLL

2003-03-23 Thread Allan Vergara
I had a similar problem a week ago. The following seems to have fixed it. 1). Run -> Parameters -> Host Application = [host applciation's path and name] 2). Run -> Add Breakpoint -> Module Load Break point... [select your dll] 3). View -> Debug Windows -> Modules [Load your module (if not already

[DUG]: Sending record

2003-01-21 Thread Allan Vergara
Is it possible to send a record (via SendMessage) from one application to another without using WM_COPYDATA? I have two test apps and both are registered to receive the same message. The receiving app seems to receive the message okay, but when I tried to dereference the pointer all I got is garba

RE: [DUG]: Richedit

2003-01-13 Thread Allan Vergara
Just like what you did but set the PlainText to true then save. PS. don't forget to set PlainText back to false. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Alistair George Sent: 14 January 2003 14:44 To: Multiple recipients of list delphi Subject: [

RE: [DUG]: Controlling fonts within a RadioGroup item

2003-01-13 Thread Allan Vergara
if it displays) "one two" Mark On 14 Jan 2003 at 10:40, Allan Vergara wrote: > Access the individual controls within the RadioGroup. > >   for i:=0 to RadioGroup1.ControlCount -1 do > if TRadioButton(RadioGroup.Contro

RE: [DUG]: Controlling fonts within a RadioGroup item

2003-01-13 Thread Allan Vergara
Access the individual controls within the RadioGroup. for i:=0 to RadioGroup1.ControlCount -1 do if TRadioButton(RadioGroup.Controls[i]).Caption = 'Two' then RadioGroup[i].Font.Style:= [fsItalics]; Hope this helps. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PR

RE: [DUG]: Checklistbox1.Items.Strings[2].font.color & HowTo enable one groupbox within another groupbox that is disabled

2002-12-12 Thread Allan Vergara
For the second question - technically you cannot do this. But you can hack around it. Here is one possible solution. var OldParent :TWinControl; //maybe better if you make this global so you can rivert later. begin OldParent:= GroupBox1.Parent; GroupBox1.Parent:= OldParent.Parent; Group

RE: [DUG]: Word mail merge

2002-12-03 Thread Allan Vergara
Hi John, Check out http://www.djpate.freeserve.co.uk/AutoWord.htm --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL

RE: [DUG]: Docking forms to Panels in Code

2002-11-25 Thread Allan Vergara
If you want to dock a form into the panel automatically, just do: Form1.BorderStyle:= bsNone; //only if you want to hide the caption bar of the form Form1.Parent:= Panel1; Form1.Show; Gook luck! --- New Zealand D

RE: [DUG]: Check-boxes

2002-11-10 Thread Allan Vergara
try   CheckBox1.Perform(BM_SETCHECK, BST_CHECKED, 0); -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Paul MckenzieSent: Monday, 11 November 2002 12:29 PMTo: Multiple recipients of list delphiSubject: [DUG]: Check-boxes Anyone know how

Re: [DUG]: Highlighting text in a ListBox

2002-09-22 Thread Allan Vergara
You should be able to highlight individual items on the listbox by adding code on the listbox's OnDrawItem event. If you want to simply change the text color then do the following: ListBox1.Canvas.Font.Color:= clRed; ListBox.Canvas.TextOut(x,y, ListBox1.Items[index]); if you want to hightli

[DUG]: Richedit

2002-08-19 Thread Allan Vergara
Hi folks, Has anyone encountered problems while using TRichEdit on a multi-threaded environment? I'm getting the error EOSError 1400, Invalid window handle. Any thoughts, comments, etc is much appreciated. Thanks ---

[DUG]: DLL question

2002-08-12 Thread Allan Vergara
Hi folks, If I run a delphi dll (compiled with VCL 4) from within a delphi application (compiled with VCL 6), would there be a conflict? I've been surfing the net for answers but I'm not having much luck. Any comments, tips, links, etc would be much appreciated. Thanks! --

[DUG]: MouseEnvent

2001-10-22 Thread Allan Vergara
Does anyone know how to capture the mouseUp event after manually resizing (via StatusBar's SizeGrip) a form?     I've used "procedure WMnclButtonUp(var message: TMessage); message WM_NCLBUTTONUP;" to capture the event but it doesn't seem to work.  Does anyone have any suggestion(s)?

Re: [DUG]: Autosize a TRadioButton

2001-10-16 Thread Allan Vergara
Thanks for the response.. I've actually figured it out at the end. I've used a TLabel but did not attached it to the radio button. What I did was I've captured the following messages: CM_TEXTCHANGED; CM_FONTCHANGED; WM_SIZE; then used the TLabel to initially construct the caption (allowing it

[DUG]: Autosize a TRadioButton

2001-10-16 Thread Allan Vergara
Hey guys, I'm having a bit of a hard time trying to figure out how to autosize a radiobutton.  What I have is a Radiobutton component that needs to resize it self depending on the font size.  To make things a little more interesting, my radiobutton component is multilined.  Any suggestions?

Re: [DUG]: Unicode

2001-09-25 Thread Allan Vergara
Standard Delphi 4 (i think 5 as well) don't support unicodes. If you want to dispaly unicode you have to create ur own TLabel component by overriding: procedure DoDrawText(var Rect: TRect; Flags: Longint); override; Then on the implementation you should do the following: procedure ...DoDrawTex

[DUG]: Richedit...

2001-09-16 Thread Allan Vergara
Say I have different versions of richedit (riched20.dll v2,riched20.dll v3, and RichEd32.DLL ) in my computer, how can I tell my program which version of the dll to use?

[DUG]: System Locales

2001-09-16 Thread Allan Vergara
Please help!  I'm trying to get all the supported languages from the system but for some reason, the callback function below is only called once.  I've already checked HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\Locale to see if there are more than one locale entry.  Can anyone p

[DUG]: Does anyone know of a good Delphi Magazine that is worth subscribing to?

2001-09-12 Thread Allan Vergara
Thanks,   Allan

[DUG]: TChart Alternative...

2001-07-04 Thread Allan Vergara
hey guys, can anyone tell me what's a good alternative to TChart? _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. --- New