G'Day All,
I have a few issues / questions regarding Interbase as they relate to the
environment that we operate in, so please read our operating environment and
relate your comments to that if you would. I also have no experience with
Interbase and come from a MS-SQL 6.5 environment, so be kind.
Try
having a look at the source code of isetup by Jordan Russell. It has a procedure
in the main.pas which is called restartcomputer which sets the required
SeShutdownPrivilege for NT and if that fails it creates a reboot32.exe file
directly from code in the reboot.inc.
It can
be download
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Change form from Modal to non Modal briefly is based on business
rule, but for technical issues, the best is to use Modal, if you use
non Modal, you can not control what is on, like for Database TQuery
closed or not, by the way, every form showed will
Al, Which version of imagelib gave you grief?
I'm still using a really old one I got for Delphi 1 and 2 (ver 3.1?) and it
still does the job.
Steve
> -Original Message-
> From: Alistair George [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 18 January 2000 09:52
> To: Multiple recipients of
> what sort of processing would you want to do when something
> gets/loses focus?
I guess I should have been using oncreate instead of formactivate, not an
issue until you want modeless forms
> I would still be tempted if I was you to re-think the approach to the UI.
> Why have nothing on the mai
> how about any FormActivate events I have on the forms, these get run
> everytime the form is "refocused"? Should these be shifted to
> OnActivate?
Depends on what you are doing but most stuff should remain in the OnCreate
or OnShow - what sort of processing would you want to do when something
> Just use .show (and have the buttons on the dialogs do a .close) is the
easy
> answer.
Thanks Grant but...
how about any FormActivate events I have on the forms, these get run
everytime the form is "refocused"? Should these be shifted to OnActivate?
- Original Message -
From: Grant
Just use .show (and have the buttons on the dialogs do a .close) is the easy
answer.
I have to say, the real answer would be to sit down with your users & design
a proper non-modal user interface -
modal dialogs should be used only when you have to constrain the user for
some reason..
Grant B
I've been merrily writing an app that is basically
a main form (with a pretty picture)with a TMainMenu launching relevant forms.
All the forms are "ShowModal", unfortunately the users now want the
ability to open more than one form at once.
What is the correct way of doing
this?
Quoting Dennis Chuah <[EMAIL PROTECTED]>:
> IMHO, yes, looks like a Delphi bug to me. At the very least the compiler
> should issue an error. If can spare a few minutes, why not compile a bland
> app with the 2 resource files and mail that bug to Borland.
Well I just submitted it as a bug via
> > {$R *.DFM}
> > {$R SFM.RES}
>
> Just did a bit of help reading on {$R} and then noticed they
> mentioned both
> resources in one {$R} directive, so I changed my .pas to read:
>
> {$R *.DFM SFM.RES}
>
> And it all works fine. I guess the something was getting
> confused. Would this
> b
Mark,
> I deleted the .res file and reloaded Delphi and it recreated
> it (strangely
> thou, it kept the version resource details which surprised
> me, does it store
> this somewhere else?)
The one in the RES file is only a copy of the one in the DOF file.
Regards,
Dennis.
--
Quoting Phil Scadden <[EMAIL PROTECTED]>:
> Was trying to access the Mail archive but I am getting domain server
> errors. Has the archive moved from www.mail-archive.com???
Well the servers back up now. Maybe it was just down for upgrades, I'll
probably hear about what happened on the mail-ar
Was trying to access the Mail archive but I am getting domain server errors. Has
the archive moved from www.mail-archive.com???
--
Phil Scadden, Institute of Geological and Nuclear Sciences
PO Box 30368, Lower Hutt, New Zealand
Ph +64 4 570
> I had always though that once the image had been loaded into a TImage is was
> stored in the .dfm as an uncompressed image, so that loadign the .jpg would
> just store it in the .dfm as a bmp anyway.
We have an application that was definitely larger (EXE wise) with a BMP than with
JPEG...
It
Quoting Mark Derricutt <[EMAIL PROTECTED]>:
> {$R *.DFM}
> {$R SFM.RES}
Just did a bit of help reading on {$R} and then noticed they mentioned both
resources in one {$R} directive, so I changed my .pas to read:
{$R *.DFM SFM.RES}
And it all works fine. I guess the something was getting
Quoting Dennis Chuah <[EMAIL PROTECTED]>:
> effect. I wonder, if you can delete the RES file that Delphi generates for
> the project (this should have only 2 resources, the icon and versioninfo).
> Reselect the icon into the project and recompile.
I deleted the .res file and reloaded Delphi and
The interesting thing I have found is, that if I call
ExitWindowsEX(EXW_FORCE,0) under 98, it wont reboot, yet under NT, it works
fine !
Typical OS inconcistancesmind you, theres prob. a good reason for
it.
Thanks,
Jeremy Coulter
Application Developer
Application Development Centre
Mark,
> Quoting Dennis Chuah <[EMAIL PROTECTED]>:
>
> > > I guess I'm one step closer, but with the same distance
> to travel :-)
> > Did you remove the dfm resources?
>
> Actually, no I didn't, but deleting and recreating the ICON
> resource worked.
My theory is Explorer is possibly getting co
Quoting Aaron Scott-Boddendijk <[EMAIL PROTECTED]>:
> Not likely to be the root of your problem but...
> Any reason why the Splash isn't a JPEG... That'd surely be below the 480kb
> mark.
I had always though that once the image had been loaded into a TImage is was
stored in the .dfm as an uncom
Entirely, all and without a doubt IMHO
> > You have a 480K splash bitmap embedded into your app? The app'll be slow
> > to load!
Not likely to be the root of your problem but...
Any reason why the Splash isn't a JPEG... That'd surely be below the 480kb mark.
> It's already slow with all the da
Quoting Dennis Chuah <[EMAIL PROTECTED]>:
> > I guess I'm one step closer, but with the same distance to travel :-)
> Did you remove the dfm resources?
Actually, no I didn't, but deleting and recreating the ICON resource worked.
> You have a 480K splash bitmap embedded into your app? The app'
> Yes, but only using a 3rd party component library called imagelib.
Whatever you do, dont use imagelib, it stuffed up my registry badly, only
one of 2 programs which have done this - the other was 'Bonzai Buddy'
Fortunately I can fix, but who needs it.
Al+
---
Mark,
> Ok, using resource workshop I deleted all the various resources I was
> including, still didn't show... so I deleted the MAINICON
> and voila, I got a
> 'default' icon in explorer... so then I created an ICON
> resurce (32x32x16) and
> draw something, saved voila... I have an icon
In dos
there is a file called reeboot.com or restart.com which reboots the machine when
executed.
You
will find this on a windows** recovery disk.
This
will reeboot if you are in dos, but I think it only closes the command
window when using a dos window.
Hopefully that will help.
Stac
25 matches
Mail list logo