Delphi Pages Forums  

Go Back   Delphi Pages Forums > Search Forums

Lost Password?

Showing results 1 to 50 of 76
Search took 0.15 seconds.
Search: Posts Made By: Badger
Forum: General 09-05-2018, 09:51 PM
Replies: 4
Views: 5,391
Posted By Badger
I'm using XE5. Although it's a sort of...

I'm using XE5.
Although it's a sort of database, I'm not using database components just standard components.
Forum: General 09-05-2018, 09:21 AM
Replies: 4
Views: 5,391
Posted By Badger
Access Error - can someone explain?

I have a large membership program which starts with an opening page that has a button that simply says 'Enter database' which adds the club logo and makes a page control visible.
When I ran the...
Forum: General 04-20-2017, 10:59 PM
Replies: 7
Views: 3,811
Posted By Badger
Tried your code - still the same problem. I'm...

Tried your code - still the same problem. I'm using windows 10, Running XE5 and printing to an Epson Workforce 520.

Interestingly, I get the same result if I try to print and cancel a page of...
Forum: General 04-20-2017, 07:16 AM
Replies: 7
Views: 3,811
Posted By Badger
It's as simple as this:- 1. Run the program ...

It's as simple as this:-

1. Run the program

2. Click the Button and Select 'Microsoft print to PDF'

3. ClickOK

4 When the 'Save Print Output As' opens click 'Cancel'
Forum: General 04-18-2017, 02:04 PM
Replies: 7
Views: 3,811
Posted By Badger
Yes, I am using 'If PrintDialog.execute then ...

Yes, I am using 'If PrintDialog.execute then begin doc/End Doc

However, if you choose 'Microsoft print to PDF' from the print dialog you get a file select dialog to choose where you want to save...
Forum: General 04-16-2017, 11:31 PM
Replies: 7
Views: 3,811
Posted By Badger
Cancelling a PDF print error

I have found that if you select 'Microsoft print to PDF' in a TPrintDialog, press 'OK' but then press 'Cancel' on the 'Save Print Output As' you get the error "Printer is not currently printing."
...
Forum: General 01-01-2017, 06:44 AM
Replies: 1
Views: 1,829
Posted By Badger
Resetting the "form size" when changing image dimensions.

I am using an image to represent a landscape page with text and graphics on it. The width fits onto the screen but the height is greater than the form's client height so it uses a scrollbar to 'see'...
Forum: General 09-24-2016, 07:08 AM
Replies: 1
Views: 1,672
Posted By Badger
I've solved this one by myself. For anyone...

I've solved this one by myself. For anyone interested the answer is in the code below.

Badger

var
L: array [0..1] of Char;
const
LOCALE_NAME_SYSTEM_DEFAULT = '!x-sys-default-locale';...
Forum: General 09-24-2016, 01:54 AM
Replies: 0
Views: 1,264
Posted By Badger
scale font when printing richedit

I have put a RichEdit on a form to represent part of a page. The size of the 'page' is reduced so that the user can see the whole page to gauge the effect of input. When the 'page' is printed, the...
Forum: General 09-14-2016, 08:45 AM
Replies: 1
Views: 1,672
Posted By Badger
Finding what units Windows is using

I need to find out whether the current user has set inches or metric as the default value in their system settings panel.

Can this be done and, if so, how?

Badger
Forum: General 09-10-2016, 08:12 AM
Replies: 0
Views: 1,358
Posted By Badger
Scaled RichEdit with text attributes to printer

I'm trying to take the text from a RichEdit component that the user fills in (and can change font and alignment) and scale it up by a ratio and put it in a certain place on the printed page (for...
Forum: General 08-03-2016, 09:49 PM
Replies: 4
Views: 1,782
Posted By Badger
Thanks Rojam. (I'm glad I said 'simple') :) ...

Thanks Rojam. (I'm glad I said 'simple') :)

Badger
Forum: General 08-02-2016, 10:18 PM
Replies: 4
Views: 1,782
Posted By Badger
Thanks Rojam it worked perfectly (more or less -...

Thanks Rojam it worked perfectly (more or less - had to change assignment to match procedure :) )
I point this out not to have a go at you but to clarify for anyone using this in the future.
Just...
Forum: General 08-02-2016, 05:11 AM
Replies: 4
Views: 1,782
Posted By Badger
Events for stringgrid created at run time

I have done a search and the answers do not seem to apply to my problem. Rather than upload a large amount of code, I have written a small program to illustrate the problem.

I have a string grid...
Forum: General 05-12-2016, 07:27 AM
Replies: 7
Views: 1,703
Posted By Badger
Hi Norrit I did try more or less what you...

Hi Norrit

I did try more or less what you are suggesting (5th para of my original post - I did put it in the public declarations rather than the private as a temp measure just to get it out of...
Forum: General 05-12-2016, 03:33 AM
Replies: 7
Views: 1,703
Posted By Badger
As a non-expert, can I clarify how Delphi...

As a non-expert, can I clarify how Delphi compiles.

I understand that at the start of the program ALL variables that are used in the program, with a few exceptions such as dynamic arrays and...
Forum: General 05-12-2016, 12:53 AM
Replies: 7
Views: 1,703
Posted By Badger
Thanks for the reply Norrit I appreciate...

Thanks for the reply Norrit

I appreciate that it will be a random number when the procedure is first called. However, as I said in my original post, I would have thought it would have retained...
Forum: General 05-11-2016, 05:47 AM
Replies: 7
Views: 1,703
Posted By Badger
Memory being overwritte??

Sorry, this question is a bit convoluted.

I have recently modified a unit for an application and the modified Procedure is causing problems.


procedure TLetterForm.CheckBox1Click(Sender:...
Forum: General 04-21-2016, 01:13 AM
Replies: 1
Views: 2,425
Posted By Badger
Style change for ComboBox

I have a form with a large number of combo boxes - some with text and one with 'numbers' in the lists. I needed to have the 'numbers' list right justified otherwise it looks messy. I have found...
Forum: General 03-29-2016, 03:16 AM
Replies: 1
Views: 1,357
Posted By Badger
Procedure called by multiple components

I have a number of edit boxes that call a single procedure when changed. How do I write code within this procedure that only affects the sender?

I've tried things like sender.text:='OK' but...
Forum: General 08-17-2015, 08:10 AM
Replies: 4
Views: 1,575
Posted By Badger
Nice try but when you put that code in the...

Nice try but when you put that code in the program it comes up with a too many actual parameters error. The TStaticListAction does not behave like a normal combobox. Hence the refusal to compile...
Forum: General 08-14-2015, 10:30 PM
Replies: 4
Views: 1,575
Posted By Badger
Filling a StaticListAction at run time

I'm using an ActionManager to populate an ActionToolbar. I have used it to put a StaticListAction on the toolbar to allow the user to select from the screen fonts. I can't find a way to load the...
Forum: General 08-13-2015, 03:31 AM
Replies: 1
Views: 1,459
Posted By Badger
OOps - Found it!!:o Caption Options in the...

OOps - Found it!!:o Caption Options in the Action Manager!
Forum: General 08-13-2015, 03:19 AM
Replies: 1
Views: 1,459
Posted By Badger
Text in Action Toolbar

Can anyone tell me if it's possible to not show the captions on a TActionToolbar. You can do it on an ordinary toolbar with the ShowCaption property but I can't find anything similar for the...
Forum: General 08-07-2015, 11:59 AM
Replies: 1
Views: 1,834
Posted By Badger
Position of Caret in Rich Edit

I am putting together a simple word processor as part of a membership database to allow the use of a predefined letterhead. RichEdit seemed the best way to go.
I want the logo, Org name and address...
Forum: General 07-30-2015, 03:24 AM
Replies: 5
[SOLVED] Radio Buttons
Views: 1,883
Posted By Badger
OK, I stand corrected. Thanks for your help.

OK, I stand corrected. Thanks for your help.
Forum: General 07-29-2015, 10:53 PM
Replies: 5
[SOLVED] Radio Buttons
Views: 1,883
Posted By Badger
Thanks for the assistance. Was not aware of the ...

Thanks for the assistance. Was not aware of the RadioButton1.OnClick := nil; capability. (So much to learn - So little time!)

Re the points you mention, I wrote the code specifically to...
Forum: General 07-29-2015, 11:18 AM
Replies: 5
[SOLVED] Radio Buttons
Views: 1,883
Posted By Badger
Thought I'd solved my own problem! Switched the...

Thought I'd solved my own problem! Switched the boolean password before and after resetting the buttons. But it still goes round in circles.

if password=false then
begin
password=True;...
Forum: General 07-29-2015, 06:59 AM
Replies: 5
[SOLVED] Radio Buttons
Views: 1,883
Posted By Badger
Radio Buttons

I'm using a password to protect some Radio Buttons but when the user fails the password test the radio button remains changed.

To overcome this I've tried all sorts of code combinations before...
Forum: General 07-29-2015, 06:43 AM
Replies: 4
Views: 2,323
Posted By Badger
I'm not ignoring the posts - haven't had a chance...

I'm not ignoring the posts - haven't had a chance to try the latest advice yet.
Forum: General 07-23-2015, 01:50 AM
Replies: 4
Views: 2,323
Posted By Badger
I'm using Windows 7 and XE5. The code for the...

I'm using Windows 7 and XE5. The code for the form is below

object Form1: TForm1
Left = 0
Top = 0
Caption = 'Form1'
ClientHeight = 321
ClientWidth = 447
Color = clBtnFace
...
Forum: General 07-22-2015, 12:10 PM
Replies: 4
Views: 2,323
Posted By Badger
Problem with multiple lines in a string grid cell

I am writing strings to a string grid at run time and I need to have the strings wrap where necessary. I think I got the attached code from this forum but can't find it again.

My problem is that...
Forum: General 05-13-2015, 05:38 AM
Replies: 7
Views: 2,381
Posted By Badger
Finally figured it out. I deleted the...

Finally figured it out. I deleted the declaration and OnDraw procedure that I had copied whole from a web page and installed a new one by clicking the OnDraw in the object inspector then populated...
Forum: General 05-04-2015, 07:56 AM
Replies: 7
Views: 2,381
Posted By Badger
Perhaps I'm getting somewhere. Firstly,...

Perhaps I'm getting somewhere.

Firstly, the CTRL+Enter does work - but, as someone pointed out in a thread some time ago, it doesn't retain the multi line format when you move to another cell....
Forum: General 05-03-2015, 11:24 PM
Replies: 7
Views: 2,381
Posted By Badger
Hmmmm! I'm using Windows 7 and XE5 Starter. Don't...

Hmmmm! I'm using Windows 7 and XE5 Starter. Don't tell me it's yet another instance where you only get part functionality with the starter edition!

Alternatively, perhaps some setting is...
Forum: General 05-03-2015, 01:37 AM
Replies: 7
Views: 2,381
Posted By Badger
Stringgrid Wrap Not Working

I am trying to get a stringgrid to word wrap using a version of code everyone seems to advocate but it's not working. Can anyone help.

Trial version below:-


unit Unit6;
interface
uses
...
Forum: General 12-13-2014, 12:05 PM
Replies: 3
Views: 3,906
Posted By Badger
Fine, but if you want to write apps that will run...

Fine, but if you want to write apps that will run on both Windows and macs what do you do?
Badger
Forum: General 12-13-2014, 10:40 AM
Replies: 3
Views: 3,906
Posted By Badger
Scroll Bars

Hi All

Some time ago I updated from Delphi to XE to write Firemonkey applications and I'm beginning to wonder why I bothered. FMX is driving me round the bend!

In a VCL application you can...
Forum: General 12-12-2014, 09:27 AM
Replies: 3
Views: 4,237
Posted By Badger
Jassar 0, Kolbasz 1. :D I tried both. ...

Jassar 0, Kolbasz 1. :D
I tried both. Jasar's wouldn't compile, it got me E2003 Undeclared Identifier 'refresh'. Kolbasz version ran OK.

However, I also got it to work simply by adding the...
Forum: General 12-11-2014, 03:16 AM
Replies: 3
Views: 4,237
Posted By Badger
Updating combo box output at run time

In my program I change a Combobox items at run time and want the output in the combo box to reflect this if that particular item is selected. I.E. if the combo box has the first item selected and...
Forum: General 12-09-2014, 11:59 AM
Replies: 2
Views: 3,647
Posted By Badger
Thanks kolbasz Worked perfectly. Quite...

Thanks kolbasz

Worked perfectly. Quite logical when it's written out in front of you. I'd never have got it by myself in a million years!

Badger
Forum: General 12-09-2014, 07:48 AM
Replies: 2
Views: 3,647
Posted By Badger
Passing Integers to a dynamically created Object's event

Hi All

There is probably a very simple solution to my problem - apart from giving up programing - but I just can't work it out!

I want to create an array of combo boxes and associated edits...
Forum: General 04-18-2014, 02:41 PM
Replies: 7
Views: 4,353
Posted By Badger
Just as a matter of interest - would this method...

Just as a matter of interest - would this method work?

Set up a buffer - draw the shadow on the buffer - pick off the shadow as a bitmap - copy the bitmap onto the form canvas with the...
Forum: General 04-18-2014, 02:05 PM
Replies: 7
Views: 4,353
Posted By Badger
Thanks kolbasz It is exactly what I'm...

Thanks kolbasz

It is exactly what I'm after ( although, as the bmp name implies, the main program is a graphical representation of shadows and the shadow50 is 50% shade - there are 5 other...
Forum: General 04-18-2014, 01:47 AM
Replies: 7
Views: 4,353
Posted By Badger
I tried that but it didn't seem to work. ...

I tried that but it didn't seem to work.

Wrote some code in a separate project and this still didn't work. The bitmap Shadows50 is an 8x8 bitmap with alternate black and white pixels.

...
Forum: General 04-14-2014, 02:16 PM
Replies: 7
Views: 4,353
Posted By Badger
Transparency of Bitmap

If I use a polygon's brush.bitmap property to produce custom shading then the "white" portions are not transparent.

Is there a way to make the white pixels in the bitmap transparent?

...
Forum: General 04-03-2014, 11:06 PM
Replies: 5
Views: 2,664
Posted By Badger
Thanks People. So Easy when you know how! ...

Thanks People. So Easy when you know how!

Badger
Forum: General 04-03-2014, 01:21 PM
Replies: 5
Views: 2,664
Posted By Badger
This all seems to relate to C++. Is there a...

This all seems to relate to C++. Is there a Delphi function?

Badger
Forum: General 04-03-2014, 12:35 AM
Replies: 5
Views: 2,664
Posted By Badger
Clicking within a polygon

I'm sure I've seen a function that returns whether the mouse is clicked within a certain polygon but I just can't find it. Is there such a function or do I have to write code - this gets complicated...
Forum: General 03-07-2014, 11:42 PM
Replies: 10
Views: 3,950
Posted By Badger
Thanks Colbasz, works fine. So much to learn -...

Thanks Colbasz, works fine. So much to learn - So little time!

Major, I did that (many times) tried it in new projects tried everything I could think of. Some Ctrl+ Shift shortcuts work Ctrl...
Showing results 1 to 50 of 76

 
Forum Jump

All times are GMT. The time now is 10:55 PM.


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