Search found 40 matches: redisplay

Return to advanced search

Re: Update xBrowse automatically

Otto,

It is going to be continuously updating if it takes more than one second to redisplay the entire browse (especially if you are doing this over the internet).

Consider instead, just adding a Refresh button.
by James Bott
Sat Oct 23, 2021 8:07 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Update xBrowse automatically
Replies: 8
Views: 959

Re: To Nages searching on xbrowse

... don't know how to do it with three fields? For a single field, you just use a GET with an ON CHANGE clause. For each change you do a seek, then redisplay the browse. When you have more than one GET, then things can get really complicated. They could each work independently, or all three at once. ...
by James Bott
Wed Sep 05, 2018 3:46 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: To Nages searching on xbrowse
Replies: 11
Views: 2542

Re: Save dialog coordinates then redisplay same place

Antonio,

Antonio Linares wrote:So do we need to modify something in FWH regarding this ?


Not that I'm aware of.

EMG
by Enrico Maria Giordano
Sat Dec 13, 2014 9:35 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Save dialog coordinates then redisplay same place
Replies: 26
Views: 5217

Re: Save dialog coordinates then redisplay same place

Enrico, James,

Thanks!

So do we need to modify something in FWH regarding this ?
by Antonio Linares
Sat Dec 13, 2014 8:35 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Save dialog coordinates then redisplay same place
Replies: 26
Views: 5217

Re: Save dialog coordinates then redisplay same place

Enrico,

Thanks for finding that.
by James Bott
Thu Dec 11, 2014 8:37 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Save dialog coordinates then redisplay same place
Replies: 26
Views: 5217

Re: Save dialog coordinates then redisplay same place

James, from the MSDN, GetWindowRect() function: In conformance with conventions for the RECT structure, the bottom-right coordinates of the returned rectangle are exclusive. In other words, the pixel at (right, bottom) lies immediately outside the rectangle. So, the +1 has been already taken into ac...
by Enrico Maria Giordano
Thu Dec 11, 2014 1:41 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Save dialog coordinates then redisplay same place
Replies: 26
Views: 5217

Re: Save dialog coordinates then redisplay same place

Enrico, OK, I have done some tests and if you add 1 to the width and height, each time you save and restore it, the values grow by one. Try the test code below. Although 101-100 = 1 and the true width is 2 pixels, it seems that Windows (or FW, or (x)Harbour) draws it correctly when you specify the w...
by James Bott
Wed Dec 10, 2014 4:15 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Save dialog coordinates then redisplay same place
Replies: 26
Views: 5217

Re: Save dialog coordinates then redisplay same place

Enrico,

Ok, I see what you're saying, but my example seems to be working. I'll do more tests.
by James Bott
Tue Dec 09, 2014 10:51 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Save dialog coordinates then redisplay same place
Replies: 26
Views: 5217

Re: Save dialog coordinates then redisplay same place

James,

no! :-)

Size of 100, 101 is 2 pixels (100 and 101) not 1 pixel.

EMG
by Enrico Maria Giordano
Tue Dec 09, 2014 10:36 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Save dialog coordinates then redisplay same place
Replies: 26
Views: 5217

Re: Save dialog coordinates then redisplay same place

Enrico,

I guess you are confirming my point?

The +1 in not needed, at least in this instance.

James
by James Bott
Tue Dec 09, 2014 10:30 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Save dialog coordinates then redisplay same place
Replies: 26
Views: 5217

Re: Save dialog coordinates then redisplay same place

James,

aCoord := {100,100,101,101}

width = 101 - 100 = 1

or

width = 101 - 100 + 1 = 2

?

:-)

EMG
by Enrico Maria Giordano
Tue Dec 09, 2014 10:11 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Save dialog coordinates then redisplay same place
Replies: 26
Views: 5217

Re: Save dialog coordinates then redisplay same place

Sorry, I don't understand. The coordinates are aCoord := {100,100,300,500}, so the dimensions are:

width:= 500 - 100 = 400
height:= 300 - 100 = 200
by James Bott
Tue Dec 09, 2014 9:07 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Save dialog coordinates then redisplay same place
Replies: 26
Views: 5217

Re: Save dialog coordinates then redisplay same place

James,

it is just a guess. To properly calculate a dimension we need to use +1.

If +1 is not needed then somewhere there is a wrong code...
by Antonio Linares
Tue Dec 09, 2014 10:24 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Save dialog coordinates then redisplay same place
Replies: 26
Views: 5217

Re: Save dialog coordinates then redisplay same place

Antonio,

Are you saying there is a bug in the Windows class, or in my example, or elsewhere?

James
by James Bott
Sun Dec 07, 2014 11:48 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Save dialog coordinates then redisplay same place
Replies: 26
Views: 5217
Next

Return to advanced search