Forum Replies Created
-
AuthorPosts
-
CheshireCatParticipant'Support' wrote:
Yes, discoloring of all glyphs is in plans.
That is great, thank you :a3:
March 5, 2014 at 1:24 pm in reply to: RadioButtons checked status not updating on invisible form #51637CheshireCatParticipantOk Darren, that calms me 🙄
'DarrenB' wrote:I just meant I did not know that I should put the ActiveControl:=nil into the form hide event!!!!
What I meant to say:
Radio buttons are activated when gets the focus. If the active control is a radio button when the form changes from hidden to visible, Windows sends a SetFocus message and the button is activated. This is not a Alpha Controls bug but a questionable behavior of Windows.
March 5, 2014 at 10:59 am in reply to: RadioButtons checked status not updating on invisible form #51635CheshireCatParticipant'DarrenB' wrote:I did not know what you said!
Sorry for my bad english :blush:
CheshireCatParticipantAlpha Controls goes back to the future 😉
March 5, 2014 at 12:16 am in reply to: RadioButtons checked status not updating on invisible form #51630CheshireCatParticipantHello Darren,
if you make Form2 invisible, RadioButtons should have no focus!
Code:procedure TForm2.FormHide(Sender: TObject);
begin
ActiveControl := nil;
end;I don't know it's an error, but I observe this behavior since I use delphi …
CheshireCatParticipantHello Serge,
I like the new function for discoloring glyphs. You plan also discolor glyphs in menus, List- and TreeViews in the future? Or how I prepare a ImageList for discolored glyphs at runtime?
February 28, 2014 at 1:02 pm in reply to: How to use background of main form on Delphi TTabSheet #51618CheshireCatParticipantMaybe this will help:
Code:procedure TForm1.sButton1Click(Sender: TObject);
begin
sPageControl1.ActivePage := TsTabSheet(sPageControl1.Pages[10]);
end;February 28, 2014 at 12:43 pm in reply to: How to use background of main form on Delphi TTabSheet #51616CheshireCatParticipantHello passion1,
open your form “as text” and replace all TPageControl with TsPageControl and all TTabSheet with TsTabSheet manuell.
CheshireCatParticipantHello Stertor,
your code example is correct but it doesn't solve the problem. If you click on the button during ProgressBar is filling you don't create a new thread, it starts the Execute method from the begin only (same Thread-ID). Each click on the button should create a new thread that also runs to the end before the next is executed (various Thread-ID)!
CheshireCatParticipantSorry for missing file, here is the complete demo with all files:
[attachment=6667:Queue Thread.zip]
CheshireCatParticipantHello,
you can use my class for save threads in a waiting list. Look at the attached demo 🙂
[attachment=6666:Queue Thread.zip]
Note:
I use TGauge instead TProgressBar, a TProgressBar is not suitable in threads!
CheshireCatParticipantHello,
you can try:
Code:procedure TForm1.sDBComboBox1KeyPress(Sender: TObject; var Key: Char);
begin
Key := #0;
end;Or you can set the Style to csDropDownList.
By csDropDownList the Combo Box is empty if data pointer is moved!
CheshireCatParticipantHello Siegbert,
your database is already open when the line below is executed?
Code:Application.CreateForm(TfrmSettings, frmSettings);I suspect an access to data fields of a closed database.
CheshireCatParticipant'Support' wrote:No, image will be saved as Bitmap here.
Png may be extracted from AlphaImageList only.
Ok, I understand what you mean, I thought he needs the file only for Upload :blush:
CheshireCatParticipantI use the following simple procedure for storing bitmaps in files:
Code:uses
PNGImage;procedure SaveToPNG(Source: TBitmap; FileName: String);
var
Dest: TPNGImage;
begin
Dest := TPNGImage.Create;
try
//Assign picture from source
Dest.Assign(Source);
//Save as PNG
Dest.SaveToFile(FileName);
finally
//Release PNG
Dest.Free;
end;
end;Maybe you are looking for something?
CheshireCatParticipant'TCount' wrote:but for some reason does not work button close the dialog (mode “YesNO”).
I think this is not an error, because a clear response is expected by the user. The user have only the choice between Yes and No, abort the action is not provided 🙂
CheshireCatParticipantHello and welcome,
you can find a demo for this control in the “Demo App” section …
… or click on the following link 🙂
CheshireCatParticipantHello and Welcome,
you have also delete all DCU files in the search path of a previous alpha controls installation?
CheshireCatParticipantHello and welcome,
this code also works with a sPageControl, take a look at my little demo 🙂
CheshireCatParticipantHello Serge,
the patched file works perfectly :a3:
Thank you and Merry Christmas!
-
AuthorPosts