Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
d871ed7f
Commit
d871ed7f
authored
Feb 09, 2004
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Autoscrolling in table object
parent
ebf937b9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
3 deletions
+33
-3
xtt/lib/glow/src/glow_growapi.cpp
xtt/lib/glow/src/glow_growapi.cpp
+5
-0
xtt/lib/glow/src/glow_growapi.h
xtt/lib/glow/src/glow_growapi.h
+8
-0
xtt/lib/glow/src/glow_growscrollbar.cpp
xtt/lib/glow/src/glow_growscrollbar.cpp
+18
-0
xtt/lib/glow/src/glow_growscrollbar.h
xtt/lib/glow/src/glow_growscrollbar.h
+2
-3
No files found.
xtt/lib/glow/src/glow_growapi.cpp
View file @
d871ed7f
...
@@ -4118,6 +4118,11 @@ int grow_GetSelectedCell( grow_tObject object, int *column, int *row)
...
@@ -4118,6 +4118,11 @@ int grow_GetSelectedCell( grow_tObject object, int *column, int *row)
return
((
GrowTable
*
)
object
)
->
get_selected_cell
(
column
,
row
);
return
((
GrowTable
*
)
object
)
->
get_selected_cell
(
column
,
row
);
}
}
int
grow_TableMakeCellVisible
(
grow_tObject
object
,
int
column
,
int
row
)
{
return
((
GrowTable
*
)
object
)
->
make_cell_visible
(
column
,
row
);
}
void
grow_Convert
(
grow_tCtx
ctx
,
glow_eConvert
version
)
void
grow_Convert
(
grow_tCtx
ctx
,
glow_eConvert
version
)
{
{
((
GrowCtx
*
)
ctx
)
->
convert
(
version
);
((
GrowCtx
*
)
ctx
)
->
convert
(
version
);
...
...
xtt/lib/glow/src/glow_growapi.h
View file @
d871ed7f
...
@@ -2696,6 +2696,14 @@ typedef GlowTraceData glow_sTraceData;
...
@@ -2696,6 +2696,14 @@ typedef GlowTraceData glow_sTraceData;
*/
*/
int
grow_GetSelectedCell
(
grow_tObject
object
,
int
*
column
,
int
*
row
);
int
grow_GetSelectedCell
(
grow_tObject
object
,
int
*
column
,
int
*
row
);
//! Check if a cell is visible, and scroll if not.
/*!
\param object Table object.
\param column Cell column.
\param row Cell row.
*/
int
grow_TableMakeCellVisible
(
grow_tObject
object
,
int
column
,
int
row
);
void
grow_Convert
(
grow_tCtx
ctx
,
glow_eConvert
version
);
void
grow_Convert
(
grow_tCtx
ctx
,
glow_eConvert
version
);
//! Check if a nodeclass is extern.
//! Check if a nodeclass is extern.
...
...
xtt/lib/glow/src/glow_growscrollbar.cpp
View file @
d871ed7f
...
@@ -250,6 +250,24 @@ void GrowScrollBar::nav_erase( GlowTransform *t, void *node)
...
@@ -250,6 +250,24 @@ void GrowScrollBar::nav_erase( GlowTransform *t, void *node)
glow_eDrawType_LineErase
);
glow_eDrawType_LineErase
);
}
}
double
GrowScrollBar
::
set_value
(
double
value
,
double
length
)
{
bar_value
=
value
;
if
(
length
!=
0
)
bar_length
=
length
;
if
(
bar_value
<
min_value
)
bar_value
=
min_value
;
if
(
bar_value
>
max_value
-
bar_length
)
bar_value
=
max_value
-
bar_length
;
if
(
!
fill
)
erase
();
draw
();
return
bar_value
;
}
void
GrowScrollBar
::
set_range
(
double
min
,
double
max
)
void
GrowScrollBar
::
set_range
(
double
min
,
double
max
)
{
{
max_value
=
max
;
max_value
=
max
;
...
...
xtt/lib/glow/src/glow_growscrollbar.h
View file @
d871ed7f
...
@@ -146,10 +146,9 @@ class GrowScrollBar : public GrowRect {
...
@@ -146,10 +146,9 @@ class GrowScrollBar : public GrowRect {
/*!
/*!
\param value Bar value.
\param value Bar value.
\param length Bar length.
\param length Bar length.
\return The actual new bar value.
*/
*/
void
set_value
(
double
value
,
double
length
)
{
bar_value
=
value
;
bar_length
=
length
;
double
set_value
(
double
value
,
double
length
=
0
);
if
(
!
fill
)
erase
();
draw
();};
//! Set the range for the bar value
//! Set the range for the bar value
/*!
/*!
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment