Delphi Pages Forums  

Go Back   Delphi Pages Forums > Search Forums

Lost Password?

Showing results 1 to 50 of 435
Search took 0.13 seconds.
Search: Posts Made By: Verence
Forum: General 01-16-2008, 01:06 AM
Replies: 2
Views: 1,364
Posted By Verence
RE: MemCheck and debugging

Just a quick idea:

Can't you just hide the source files (*.pas)?
(Moving them to another directory, packing in a ZIP)

This way the compiler/debugger will only find the DCU,
but no source to...
Forum: DB-Aware 01-13-2008, 01:26 PM
Replies: 5
Views: 5,151
Posted By Verence
RE: speedbutton.down (onclick)

Try:

sbtnValidate.Down := (sbtnValidate.tag = 0);
sbtnValidate.Tag := 1 - sbtnValidate.tag;

Works only if the tag has no other value than 0/1.
Is shorter, but I'm not shure, if it is more...
Forum: General 01-13-2008, 10:39 AM
Replies: 1
Views: 5,195
Posted By Verence
RE: How to convert RAW image to BMP?

Hi Senap!

"RAW" is a little bit ambiguous... As you mentioned a 512x512 pixel size, I guess, the image is not from a digital camera (which would be much more complicated). Do you have any...
Forum: General 12-05-2005, 05:10 AM
Replies: 10
Views: 2,779
Posted By Verence
RE: How to encodedate from an integer...

x:=20050101;
year := x div 10000;
month:=(x div 100) mod 100;
day := x mod 100;

x:=01012005;
year := x mod 10000;
month:=(x div 10000) mod 100;
day := x div 1000000;
Forum: General 12-01-2004, 03:12 AM
Replies: 7
Views: 1,231
Posted By Verence
RE: Pulling hair out with class creation - please help

Hi nutz!

Two things:
First, you didn't show the constructor of tTestClass, it should look like:

constructor TTestClass.Create(numb:integer);
begin
number:=numb;
end;
Forum: General 11-18-2003, 11:57 PM
Replies: 3
Views: 2,019
Posted By Verence
RE: reading CMOS

Have you tried this code with NT / 2000 / XP ?

<ct>
HTH :o)
Verence</ct>
Forum: General 10-21-2003, 11:08 PM
Replies: 7
Views: 8,057
Posted By Verence
RE: How to create popup menu... ?

Hi jone!

If MenuItemClick is the event handler routine for the OnClick event of all the self created menuitems, you can identitfy the caller of the handler (i.e the selected menu item) with the...
Forum: General 10-14-2003, 11:06 PM
Replies: 16
Views: 2,113
Posted By Verence
RE: Need an event or windows message for when app is started

Hi Derek!

IMHO, problem is the the call:
<tt>
SetWindowRgn (FComboBox.Handle, CreateRectRgn (2, 2, FComboBox.Width - 2,FComboBox.Height - 2), True);
</tt>
where you need the handle of the...
Forum: General 10-14-2003, 10:52 PM
Replies: 1
Views: 1,088
Posted By Verence
RE: Process Parameters

Hi kudos!

It's just a dirty trick, but maybe will be enough
for what you want:
* Rename the RUNDLL32.EXE to RD32.EXE
* Write a Delphi application, name it RUNDLL32.EXE
* Place the...
Forum: General 10-10-2003, 07:56 AM
Replies: 5
Views: 1,106
Posted By Verence
RE: class - a generic way... (hard to me...)

Hi MB34!

I didn't say, that your way doesn't work - it surely does.

But...

> ... the way I posted is THE Delphi way of doing it ...

Yep, that's why I was refering to the OOP way of doing...
Forum: General 10-07-2003, 11:18 PM
Replies: 5
Views: 1,106
Posted By Verence
RE: class - a generic way... (hard to me...)

Hi BaraoZemo!

That's what object oriented programming was made for!

Since the controls TEdit, TMemo, TStringGrid, T... all
shar a common ancestor (TControl), just cast them into
a TControl...
Forum: General 10-06-2003, 11:21 PM
Replies: 1
Views: 817
Posted By Verence
RE: Colours on TButton???

Hi Vytis!

So you have a little problem, since the XP theme thing
is so new, most special buttons don't support it.
And the XP theming machine only knows how to draw
the 'standard button' with...
Forum: General 10-01-2003, 11:31 PM
Replies: 6
Views: 1,475
Posted By Verence
RE: Making columns of labels with icon combinations

Hi Kyle!

Why no grid? Just take a tDrawGrid (or tStringGrid, if you want to store the data there) and do the drawing of the icons and names yourself (OnDrawCell event)

Alternatively, you can...
Forum: General 10-01-2003, 12:15 AM
Replies: 4
Views: 1,091
Posted By Verence
RE: How do I get mystring into Edit1.text? - Answer

Hi rtdvoip,

Just for the sake of you not getting any exceptions ;o)

Here is what you should do (IMHO ;o).

<tt>
procedure TForm1.Button1Click(Sender: TObject);
var
vlStringList:...
Forum: General 09-30-2003, 11:08 PM
Replies: 6
Views: 830
Posted By Verence
RE: String trouble.

Hi Andreas!

Do know nothing about the UNDO ability of SelText...
Never cared for it anyway ;-)

As a work around, I only can think of something like:
<tt>
Clipboard.AsText:=Memo2.Text;
...
Forum: General 09-30-2003, 07:37 AM
Replies: 6
Views: 830
Posted By Verence
RE: String trouble.

Hi Andreas!

IIRC, <tt>Memo1.SelText:=Memo2.Text;</tt> might do the trick.
(neither tested, nor looked up in help ;o)


<ct>
Verence</ct>
Forum: General 09-30-2003, 07:05 AM
Replies: 3
Views: 1,146
Posted By Verence
RE: compare images?

To compare 2 images, they have to be a) in the same format,
or you say an icon is always different from a bitmap also
if they show the same picture...

If both are bitmaps, you can do something...
Forum: General 09-25-2003, 11:42 PM
Replies: 5
Views: 3,197
Posted By Verence
RE: Default open array parameters?

Hi MB34!

As Dirso said, open array parameters can't have
defaults, but you can try overloaded procedures:
<tt>
procedure MyFunction(
ADockSite : TCSDockPanel;
...
Forum: General 09-23-2003, 07:51 AM
Replies: 1
Views: 1,464
Posted By Verence
RE: How to read 3.5 character time in delphi using serial comm.

Hello phil,

definitely not an easy problem, you want to solve...

For the silent intervall, you can do something like:
(pseudo code)
<tt>
read data until bus silent
capture time (eg....
Forum: General 09-23-2003, 07:22 AM
Replies: 8
Views: 768
Posted By Verence
RE: Buffer...

Hi pollo!

Forgot it myself much too often ;-)

The Expert Point is on you. (IMHO)

<ct>
Verence</ct>
Forum: General 09-23-2003, 02:27 AM
Replies: 8
Views: 768
Posted By Verence
RE: Buffer...

Hi!

try:
<tt>
f.Read(p<cr>^</cr>, 1024);
</tt>

<ct>HTH :o)

Verence</ct>
Forum: General 09-22-2003, 08:25 AM
Replies: 9
Views: 1,061
Posted By Verence
RE: How to get size of procedure in runtime?

> That's not for virus. I would like to develop a
> application monitoring install program to watch
> all installed files.

That's what I would call a usefull application ;o)

Will it monitor...
Forum: General 09-22-2003, 03:55 AM
Replies: 9
Views: 1,061
Posted By Verence
RE: How to get size of procedure in runtime?

Hi Mangos!

Sorry, no more information available...

But, ähem, so if I got you right, you want to take some
portion of your code and put it into another process'
memory area and execute it...
Forum: General 09-22-2003, 01:26 AM
Replies: 9
Views: 1,061
Posted By Verence
RE: How to get size of procedure in runtime?

Hi Mangos!

I just scaned through the API-help for CreateRemoteThread,
but I can't see, where you need the size of the procedure.

You need the size of the stack, but that can be set to 0
as...
Forum: General 09-22-2003, 01:26 AM
Replies: 1
Views: 5,549
Posted By Verence
RE: how to get the current activated form

Hi!

How about Screen.ActiveForm ?

<ct>HTH :o)

Verence</ct>
Forum: General 09-18-2003, 11:31 PM
Replies: 2
Views: 845
Posted By Verence
RE: Is it possible to create a Executable Library ???

Hi lcnmorais!

Never tried, what you did (actually, I thought it would be impossible to (ab)use an exe this way).

I find only one problematic point, you send strings from one exe to the other....
Forum: General 09-18-2003, 11:22 PM
Replies: 4
Views: 3,580
Posted By Verence
RE: Invalid gif signature

Hi Brian!

Sorry, I don't know how to check a gif file to be valid, but I would address this problem the other way. Instead of looking for everything ok before loading, I just would try to load the...
Forum: General 09-18-2003, 11:17 PM
Replies: 4
Views: 7,915
Posted By Verence
RE: How to overcome string (length = 4096) limitation.

Hi!

There is no 4096 character limitation.

Once upon a time, with Pascal and old versions of Delphi (1,2) and even with the newer ones (but only if you selected to use shortstrings) there...
Forum: General 09-18-2003, 11:11 PM
Replies: 2
Views: 1,145
Posted By Verence
RE: Getting Parent Form

Hi Dirso!
<tt>
procedure TYourComponent.SetIsSelected(Value: Boolean);
var
Sibling : tControl;
i : integer;
begin
if FIsSelected <> Value then begin
FSelected := Value;
...
Forum: General 09-18-2003, 10:55 PM
Replies: 6
Views: 2,971
Posted By Verence
RE: How to get size of procedure in bytes

Hi Mangos!

Do you mean the number of bytes the procdure need in code-memory when executed?

When do you want to know it? In design-time (when coding)?
In this case, you can maybe find some...
Forum: General 09-16-2003, 10:51 PM
Replies: 6
Views: 2,090
Posted By Verence
RE: searching trough a string..

Hi, once more!

Oops, forgot the definition ;o)
<tt><cr>
var
iPos : integer;
</cr>
begin
// Let's say sServer is the string with all the server data
iPos:=pos('333, sServer);
Forum: General 09-15-2003, 11:30 PM
Replies: 6
Views: 1,871
Posted By Verence
RE: Can the OnClick event of a button be in a different unit ?

Hi Dave!

Yes that is possible.

The OnClick event handler has to be a method of an object, but the object's definition can be in another unit:
<tt>
unit MyObjectUnit;

interface
Forum: General 09-15-2003, 11:14 PM
Replies: 6
Views: 2,090
Posted By Verence
RE: searching trough a string..

Hi again!

So, I see your problem resp. datais a little bit bigger ;-)

If the 333 is really a constants to look for, you can do something like this:
<tt>
// Let's say sServer is the string...
Forum: General 09-15-2003, 11:09 PM
Replies: 8
Views: 987
Posted By Verence
RE: Running a program from a BAT file

Hi slavikn!

I just looked up the help for start, and it says
<tt>
start ["Titel"] ...
</tt>
So START uses the first parameter in double quotes as
the windows title ;o).

I tried it with...
Forum: General 09-15-2003, 08:06 AM
Replies: 8
Views: 987
Posted By Verence
RE: Running a program from a BAT file

Hi Slavkin!

> This doesn't work if the path contains spaces,
> something like: c:\program files\some program\somefile.exe

Not tested, but try something like:

start "c:\program files\some...
Forum: General 09-15-2003, 03:20 AM
Replies: 19
Views: 1,586
Posted By Verence
RE: REAL question for REAL programmers

Hi Nuno!

Try to delete all *.dsk and *.dsm files. Don't forget that in the Borland/Delphi/Bin folder.



<ct>HTH :o)

Verence</ct>
Forum: General 09-15-2003, 03:15 AM
Replies: 2
Views: 758
Posted By Verence
RE: Loading A picture At RunTime

Hi!
<tt>
//Make the linker include your res file to the application:
{$R LOGO}

var
bmp : tBitmap;
begin
//Load the image from the resource to a temporary bitmap:
bmp:=tBitmap.create;
Forum: General 09-14-2003, 11:48 PM
Replies: 2
Views: 1,491
Posted By Verence
RE: How to read from Serial Port in REAL TIME?

If you really need hard real time - meaning 100% reliable constant delay - forget about Windows and use a real operating system. Hard real time can't be done in Windows without adding 'intelligent...
Forum: General 09-14-2003, 11:33 PM
Replies: 6
Views: 2,090
Posted By Verence
RE: searching trough a string..

Hi!

What character separates the data fields? If it is alway the same character (space?), you can use my NthToken function:
<tt>
function NthToken (n : integer; const S: string; SepChar : char):...
Forum: General 09-14-2003, 11:20 PM
Replies: 8
Views: 987
Posted By Verence
RE: Running a program from a BAT file

Hi!

try: <tt>
<cb>start</cb> c:\dir1\dir2\dir3\somefile.exe
</tt>


<ct>HTH :o)

Verence</ct>
Forum: General 09-11-2003, 11:37 PM
Replies: 3
Views: 1,354
Posted By Verence
RE: PixelPerInch Property of an image

Hi!

This will work only for picture formats, that store a field
like PixelPerInch. So you will need a reader and writer for
any of this file formats to change the value.

Anyway, AFAIK,...
Forum: General 09-11-2003, 11:33 PM
Replies: 3
Views: 1,354
Posted By Verence
RE: PixelPerInch Property of an image [OT]

Hi George!

Sorry, this is somewhat off topic, but I just would like
to know why you do the conversions the way you do it ;o)
<tt>
HH := Image.Height;
WW := Image.Width;
...
Forum: General 09-11-2003, 11:10 PM
Replies: 1
Views: 1,083
Posted By Verence
RE: Functions Ofs e Seg

Hi!

Those functions are long dead, lost an forgotten.
They were only necessarry in 16 bit times (oh,
those good oald timnes, long ago ... ;-) to split
the addresses into handy pieces.

IMHO,...
Forum: General 09-08-2003, 12:20 PM
Replies: 4
Views: 1,651
Posted By Verence
RE: Assigning Tstrings in a ComboBox

Hi again hbk!

Thanks for accepting my answer as correct.

Sorry, I didn't have the time to test the code I
gave you, but I'm glad, I pointed you in the
right direction
.

<ct>HTH :o)
Forum: General 09-07-2003, 10:53 PM
Replies: 4
Views: 1,651
Posted By Verence
RE: Assigning Tstrings in a ComboBox

Hi hbk!

<tt>
procedure tForm1.ComboBox2Click (Sender : tObject);
begin
case ComboBox2.ItemIndex of
0 : ComboBox3.Items.CommaText:='"Dark Red","Red","Light Red");
1 :...
Forum: General 09-04-2003, 12:12 AM
Replies: 1
Views: 1,529
Posted By Verence
RE: sizeof

Hi ageofeye!

Welcome to the magic world of alignment <grin>.

For modern processors, its much more easy to access a
piece of data, if it lies on an 'aligned' address.
That means the address...
Forum: General 09-02-2003, 11:21 PM
Replies: 1
Views: 783
Posted By Verence
RE: Size of compiled application.

Hi Neel!

Problem is the VCL that is needed to display even an
empty form. There are three things you can do:

1. Live with it, 600k is not that much - ok, if you want to
sent your app on the...
Forum: General 09-01-2003, 10:52 PM
Replies: 4
Views: 846
Posted By Verence
RE: StringGrid really the last question :}

Hi Kalifat!

Basically the same as my code, isn't it?

But I spotted some problems:
<tt>
procedure TForm1.StringGrid1Click(Sender: TObject);
<cr> will resize with every click, (maybe for...
Forum: General 09-01-2003, 03:29 AM
Replies: 1
Views: 902
Posted By Verence
RE: CustomPanel question

Hi Sercan!

SetBounds is called whenever a component changes it's
position - eg. its Left/Top/Width/Height properties
are changed.

It should be called automatically, but you can call
it, if...
Forum: General 09-01-2003, 03:29 AM
Replies: 1
Views: 859
Posted By Verence
RE: setbounds&anchors

Hi Sercan!

SetBounds is called whenever a component changes it's
position - eg. its Left/Top/Width/Height properties
are changed.

It should be called automatically, but you can call
it, if...
Showing results 1 to 50 of 435

 
Forum Jump

All times are GMT. The time now is 03:15 PM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.