View Issue Details

IDProjectCategoryView StatusLast Update
0003068PluginsLuaMacro / Macro Browserpublic2015-09-01 09:11
ReporterJohnDoe Assigned Toshmuel  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version3.0 
Summary0003068: LuaFAR: не работает изменение цветовых атрибутов в DN_CTLCOLORDLGITEM
DescriptionНе получается в DN_CTLCOLORDLGITEM изменить атрибуты цвета (для примера DI_EDIT, но другими типами элементов то же самое).
Steps To Reproducelocal F,C = far.Flags,far.Colors
local c = far.AdvControl(F.ACTL_GETCOLOR,C.COL_WARNDIALOGTEXT)
Event {
  group="DialogEvent";
  action=function(Event,param)
    if Event==F.DE_DLGPROCEND and param.Msg==F.DN_INITDIALOG then
      far.SubscribeDialogDrawEvents()
    elseif param.Msg==F.DN_CTLCOLORDLGITEM then
      local item = param.hDlg:send(F.DM_GETDLGITEM,param.Param1)
      if item and item[1]==F.DI_EDIT then
        mf.beep()
        return {c,c,c,c}
      end
    end
  end;
}
Additional Informationhttp://api.farmanager.com/ru/dialogapi/dmsg/dn_ctlcolordlgitem.html
http://forum.farmanager.com/viewtopic.php?p=132043#p132043
TagsNo tags attached.

Activities

shmuel

2015-08-31 16:37

developer   bugnote:0013810

LuaFAR build 524.

JohnDoe

2015-09-01 08:43

updater   bugnote:0013813

Спасибо, всё работает.

Issue History

Date Modified Username Field Change
2015-08-19 13:08 JohnDoe New Issue
2015-08-31 16:37 shmuel Note Added: 0013810
2015-08-31 16:37 shmuel Assigned To => shmuel
2015-08-31 16:37 shmuel Status new => feedback
2015-09-01 08:43 JohnDoe Note Added: 0013813
2015-09-01 08:43 JohnDoe Status feedback => assigned
2015-09-01 09:11 shmuel Status assigned => closed
2015-09-01 09:11 shmuel Resolution open => fixed