Page MenuHomeFeedback Tracker

[Feature Request] New scripting commands: ctrlSetStyle & ctrlStyle
New, NormalPublic

Description

I'm not sure if it's possible, but it would be nice to have a command to change the style of a control after it has been created.

Ctrl ctrlSetStyle styleNumber

and a command to return the style:

ctrlStyle Ctrl

If it's not possible to support all styles, supporting simple styles (like ST_CENTER for text, or ST_KEEP_ASPECT_RATIO for pictures) is good enough.

Details

Severity
Feature
Resolution
Open
Reproducibility
N/A
Operating System
Windows 7
Category
Feature Request

Event Timeline

Yes to control style no to control set style. After control is created changing style may lead to crash

Is it possible to delete the ctrl and recreate it with the new style?

DrSova added a subscriber: DrSova.Sep 4 2020, 3:18 PM
BIS_fnc_KK removed BIS_fnc_KK as the assignee of this task.Nov 24 2020, 6:13 PM
BIS_fnc_KK added a subscriber: BIS_fnc_KK.

Isn't it possible to update ctrlCreate so that we can change the style there?
e.g.

_disp ctrlCreate ["RscText", -1, controlNull, ST_LEFT]