Skip to content

Commit

Permalink
main.gudl: Use adjust_value for win32 trackbars.
Browse files Browse the repository at this point in the history
  • Loading branch information
madewokherd committed Sep 11, 2024
1 parent 8bbd0b2 commit b508907
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions xalia/main.gudl
Original file line number Diff line number Diff line change
Expand Up @@ -1257,6 +1257,16 @@ if (interactable) {
adjust_value_up_action: focusable and (set_focus+send_key.up) or adjust_value(-(minimum_increment or 25));
}

if (is_hwnd_trackbar) {
// set_focus + send_key doesn't work for these for some reason
targetable: true;

adjust_value_action: adjust_scrollbars(this, undefined);

adjust_value_left_action: adjust_value(-(minimum_increment or 25));
adjust_value_right_action: adjust_value(minimum_increment or 25);
}

if ((scroll_bar or slider or split_pane) and horizontal) {
targetable: true;

Expand Down

0 comments on commit b508907

Please sign in to comment.