Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Closed Thread
 
Thread Tools Display Modes
  #21  
Old 06-30-2016, 08:32 PM
Jasser Jasser is offline
Moderator
 
Join Date: Jan 2005
Location: Saudi Arabia
Posts: 5,059
Default

Are you trying to type only 100 letters inside the richedit?
__________________
Regards,
Abdulaziz Jasser
  #22  
Old 06-30-2016, 10:14 PM
robert robert is offline
Senior Member
 
Join Date: Sep 2014
Posts: 382
Default

Quote:
Originally Posted by Jasser View Post
Are you trying to type only 100 letters inside the richedit?

no not all . there are lot of lines and on some line i need to show waiting like message with showing text like progress ..
  #23  
Old 07-01-2016, 03:00 AM
rojam rojam is offline
Senior Member
 
Join Date: Jun 2015
Posts: 199
Default

Quote:
Originally Posted by robert View Post
If i use this approach

Code:
Procedure TForm1.Timer1Timer(Sender: TObject);
begin
  Gauge.Progress := Gauge.Progress + 1;
  Edit1.Text := StrToInt(Gauge.Progress);
  ...
  Richedit.SelText := ('waiting '+ edit.text);
  Timer1.Enabled := Gauge.Progress = Gauge.MaxValue;
end;
in RichEdit lines are added as soon as guage is stepping ahead

waiting 1
waiting 2
waiting 3
-----
----
waiting 100

this makes a mess like .. whereas I was trying to achieve it in progressive manner.

waiting 1 then after 2 then after 3 and so on

I am really surprised that masters are getting failed to advise for this properly whereas I have an Delphi made exe. doing this

in exe. the line after lot of lines shows like text progress percentage with gauge progress.
Well, I have to turn it around on you in that I am amazed that you expect us to somehow read your mind and figure out what you want your application to do. Re-read your first post

Quote:
I am trying to achieve to get the Guage progress in Edit1 while Guage is updating so far I tried but not works

Edit.Text:=(IntToStr(Gauge1.Progress));
You mention absolutely nothing about a richedit, you simply are asking how to put the gauge's progress into an edit control.....

If you want to change what the richedit contains, then you can do so easily enough with
Code:
RichEdit.Text := 'Waiting '+IntToStr(Gauge.Progress);
if you have other text in the richedit that you don't want to overwrite then you can change just the line in question
Code:
RichEdit.Lines[0] := 'Waiting ' + IntToStr(Gauge.Progress);
How Edit1.Text comes into play is a bit difficult for me to understand after following all of your previous posts?
  #24  
Old 07-01-2016, 07:12 AM
Norrit Norrit is offline
Moderator
 
Join Date: Aug 2001
Location: Landgraaf
Posts: 7,335
Default

This whole thread is full of miscommunication.

I only pointed out to the application.processmessages because there was no code to go on. So I assumed a freeze.
Anyone programming for that long should've known by now how to check if code you expect to execute is actually executed!!!

But after that I gave him full info on how to solve
True, without code sample, but by now I will not give him code samples on this easy stuff. It's just copy/paste for the last year or so and he still refuses to learn the basics.

And as for the selection, nowhere in your given code you make a selection (selstart/sellength), so I doubt you even have a selection...
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 06:04 PM.


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