(App Designer) windowscrollWheelFcn for sliders and knobs

4 ビュー (過去 30 日間)
Ledoux Laboratory
Ledoux Laboratory 2018 年 7 月 31 日
I just started using the App Designer for MATLAB and was wondering if there was a mouse wheel scroll function similar to one for GUI's. Specifically to change the values of a knob or slider component. Here's a preview of my code:
function CutoffFrequencyHzSliderValueChanging(app, event)
changingValue = event.Value;
app.EditField.Value = changingValue;
selectedButton = app.TrackingTypeButtonGroup.SelectedObject;
track = selectedButton.Text;
value = app.DropDown.Value;
% set(app.CutoffFrequencyHzSlider,'windowscrollWheelFcn',{@scrollfunc,gca})
% b = uicontrol('Style','WindowScrollWheel','Callback',{@eindoedscrollwheel_callback,gcf});
clear leg
file = app.(value);
data = file.(track);
.......
The 2 lines that are commented out are 2 separate attempts at adding scroll wheel functionality to my slider component.

回答 (0 件)

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

製品


リリース

R2017b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by