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
496f4bac
Commit
496f4bac
authored
Jul 19, 2011
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ge table select, element unselected when clicked on if already selected
parent
eda4ed5a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
xtt/lib/ge/src/ge_dyn.cpp
xtt/lib/ge/src/ge_dyn.cpp
+4
-1
xtt/lib/glow/src/glow_growtable.cpp
xtt/lib/glow/src/glow_growtable.cpp
+2
-2
No files found.
xtt/lib/ge/src/ge_dyn.cpp
View file @
496f4bac
...
...
@@ -8250,6 +8250,7 @@ int GeTable::action( grow_tObject object, glow_tEvent event)
sts
=
grow_GetSelectedCell
(
object
,
&
column
,
&
row
);
if
(
ODD
(
sts
)
&&
sel_p
[
column
])
{
// Reset previously selected
db
=
dyn
->
parse_attr_name
(
sel_attribute
[
column
],
parsed_name
,
&
inverted
,
&
attr_type
,
&
attr_size
);
value
=
0
;
...
...
@@ -8257,7 +8258,9 @@ int GeTable::action( grow_tObject object, glow_tEvent event)
sts
=
gdh_SetObjectInfo
(
parsed_name
,
&
value
,
sizeof
(
value
));
if
(
EVEN
(
sts
))
printf
(
"Table error: %s
\n
"
,
parsed_name
);
}
if
(
sel_p
[
event
->
table
.
column
])
{
if
(
sel_p
[
event
->
table
.
column
]
&&
!
(
event
->
table
.
column
==
column
&&
event
->
table
.
row
==
row
))
{
// Set new selected, if not same as previous selected
db
=
dyn
->
parse_attr_name
(
sel_attribute
[
event
->
table
.
column
],
parsed_name
,
&
inverted
,
&
attr_type
,
&
attr_size
);
value
=
1
;
...
...
xtt/lib/glow/src/glow_growtable.cpp
View file @
496f4bac
...
...
@@ -544,7 +544,7 @@ void GrowTable::draw( GlowWind *w, GlowTransform *t, int highlight, int hot, voi
break
;
}
}
ctx
->
gdraw
->
text
(
w
,
text_x
,
int
(
y
-
2
),
ctx
->
gdraw
->
text
(
w
,
text_x
,
int
(
y
-
5
),
cell_value
+
offs
,
strlen
(
cell_value
+
offs
),
text_drawtype
,
text_color_drawtype
,
text_idx
,
highlight
,
0
,
font
,
tsize
,
0
);
}
...
...
@@ -671,7 +671,7 @@ void GrowTable::draw( GlowWind *w, GlowTransform *t, int highlight, int hot, voi
}
}
ctx
->
gdraw
->
text
(
w
,
text_x
,
int
(
y
-
2
),
ctx
->
gdraw
->
text
(
w
,
text_x
,
int
(
y
-
5
),
cell_value
+
offs
,
strlen
(
cell_value
+
offs
),
text_drawtype
,
text_color_drawtype
,
text_idx
,
highlight
,
0
,
font
,
tsize
,
0
);
}
...
...
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