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
42dca517
Commit
42dca517
authored
9 years ago
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ge bugfix in pulldown menu for menues with hole in instance
parent
9df66bc7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
xtt/lib/glow/src/glow_growmenu.cpp
xtt/lib/glow/src/glow_growmenu.cpp
+3
-3
xtt/lib/glow/src/glow_growmenu.h
xtt/lib/glow/src/glow_growmenu.h
+1
-0
No files found.
xtt/lib/glow/src/glow_growmenu.cpp
View file @
42dca517
...
...
@@ -58,7 +58,7 @@ GrowMenu::GrowMenu( GrowCtx *glow_ctx, const char *name, glow_sMenuInfo *menu_in
glow_mDisplayLevel_1
,
fill_rect
,
display_border
,
0
,
fill_d_type
,
1
),
info
(
*
menu_info
),
text_size
(
t_size
),
text_drawtype
(
t_drawtype
),
text_color
(
t_color
),
text_color_disabled
(
t_color_disabled
),
item_cnt
(
0
),
item_height
(
0
),
current_item
(
-
1
),
new_item
(
0
),
old_item
(
-
1
),
item_cnt
(
0
),
item_height
(
0
),
current_item
(
-
1
),
current_idx
(
-
1
),
new_item
(
0
),
old_item
(
-
1
),
parent_menu
(
parent
),
min_width
(
min_w
),
input_focus
(
0
),
font
(
t_font
)
{
if
(
!
nodraw
)
...
...
@@ -353,10 +353,10 @@ int GrowMenu::local_event_handler( GlowWind *w, glow_eEvent event, double x, dou
item
=
item_cnt
-
1
;
if
(
item
<
0
)
item
=
0
;
if
(
item
!=
current_i
tem
)
{
if
(
item
!=
current_i
dx
)
{
new_item
=
1
;
old_item
=
current_item
;
current_i
tem
=
item
;
current_i
dx
=
item
;
for
(
int
i
=
0
,
item_idx
=
0
;
i
<
32
;
i
++
)
{
if
(
!
info
.
item
[
i
].
occupied
)
continue
;
...
...
This diff is collapsed.
Click to expand it.
xtt/lib/glow/src/glow_growmenu.h
View file @
42dca517
...
...
@@ -133,6 +133,7 @@ class GrowMenu : public GrowRect {
int
item_cnt
;
//!< Number of menu items.
double
item_height
;
//!< Menu item height in pixel.
int
current_item
;
//!< Hot item.
int
current_idx
;
//!< Current index.
int
new_item
;
//!< New current item.
int
old_item
;
//!< Current item in previous event.
GlowArrayElem
*
parent_menu
;
//!< Parent menu.
...
...
This diff is collapsed.
Click to expand it.
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