2015-10-29 03:12 UTC+0100 Viktor Szakats (vszakats users.noreply.github.com)
This commit is contained in:
@@ -8,7 +8,6 @@
|
|||||||
See copyright/license at the end of the file.
|
See copyright/license at the end of the file.
|
||||||
Encoding: UTF-8 (No BOM) Notation (in 5th position):
|
Encoding: UTF-8 (No BOM) Notation (in 5th position):
|
||||||
* Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment
|
* Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment
|
||||||
*/
|
|
||||||
|
|
||||||
2015-10-29 11:52 UTC+0100 Viktor Szakats (vszakats users.noreply.github.com)
|
2015-10-29 11:52 UTC+0100 Viktor Szakats (vszakats users.noreply.github.com)
|
||||||
* src/rtl/gtwin/gtwin.c
|
* src/rtl/gtwin/gtwin.c
|
||||||
@@ -30,6 +29,15 @@
|
|||||||
! fixed msvc sanitize warnings
|
! fixed msvc sanitize warnings
|
||||||
(2014-07-16 17:37 UTC+0200 Viktor Szakats)
|
(2014-07-16 17:37 UTC+0200 Viktor Szakats)
|
||||||
|
|
||||||
|
2015-10-29 03:12 UTC+0100 Viktor Szakats (vszakats users.noreply.github.com)
|
||||||
|
* src/rtl/achoice.prg
|
||||||
|
+ tests/achoice6.prg
|
||||||
|
! fix AChoice() RTE/visual glitch when certain non-integer
|
||||||
|
values are passed as top/bottom values.
|
||||||
|
Simplified and slightly corrected version of
|
||||||
|
patch/example authored by Alexey Myronenko:
|
||||||
|
https://github.com/harbour/core/pull/113
|
||||||
|
|
||||||
2015-10-28 17:10 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
|
2015-10-28 17:10 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
|
||||||
* src/rtl/gtkeycod.c
|
* src/rtl/gtkeycod.c
|
||||||
! fixed typo in CTRL+[UP|DOWN] mapping
|
! fixed typo in CTRL+[UP|DOWN] mapping
|
||||||
|
|||||||
@@ -44,9 +44,10 @@ FUNCTION AChoice( nTop, nLeft, nBottom, nRight, acItems, xSelect, xUserFunc, nPo
|
|||||||
LOCAL cKey
|
LOCAL cKey
|
||||||
LOCAL nAux
|
LOCAL nAux
|
||||||
|
|
||||||
hb_default( @nTop, 0 )
|
nTop := Int( hb_defaultValue( nTop, 0 ) )
|
||||||
|
nBottom := Int( hb_defaultValue( nBottom, 0 ) )
|
||||||
|
|
||||||
hb_default( @nLeft, 0 )
|
hb_default( @nLeft, 0 )
|
||||||
hb_default( @nBottom, 0 )
|
|
||||||
hb_default( @nRight, 0 )
|
hb_default( @nRight, 0 )
|
||||||
|
|
||||||
IF nRight > MaxCol()
|
IF nRight > MaxCol()
|
||||||
|
|||||||
23
tests/achoice6.prg
Normal file
23
tests/achoice6.prg
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
#include "inkey.ch"
|
||||||
|
|
||||||
|
/* An RTE and visual glitch while playing arrows
|
||||||
|
up and down and change y1 or y2 to not integer
|
||||||
|
value and number of items less/equal then/to
|
||||||
|
number of rows in window. */
|
||||||
|
|
||||||
|
PROCEDURE Main()
|
||||||
|
|
||||||
|
LOCAL x1 := 24
|
||||||
|
LOCAL x2 := 35
|
||||||
|
LOCAL y1 := 7.6
|
||||||
|
LOCAL y2 := 9.9
|
||||||
|
|
||||||
|
hb_keyPut( { K_DOWN, K_DOWN } ) // RTE
|
||||||
|
|
||||||
|
CLS
|
||||||
|
DispBox( y1, x1, y2 + 1, x2 + 1,, "W+/B,N/BG" )
|
||||||
|
AChoice( y1 + 1, x1 + 1, y2, x2, ;
|
||||||
|
{ "menu 1", "menu 2", "menu 3" }, ;
|
||||||
|
{ .T., .F., .T. } )
|
||||||
|
|
||||||
|
RETURN
|
||||||
Reference in New Issue
Block a user