twig / dcxdll

Dialog Control eXtensions for mIRC
BSD 3-Clause "New" or "Revised" License
23 stars 2 forks source link

Blurry TreeView text items #76

Open oreleraki opened 1 year ago

oreleraki commented 1 year ago

After years of continuing to develop my dialog which contains a tree view, i reencounter an old issue i had with Blurry Tree View text items. If I try to remember I don't remember if it's a Dcx issue or mIRC issue.

mIRC version: 7.71 Dcx version: 3.1-git469 Operation System: Microsoft Windows [Version 10.0.19043.1826] (Windows 10 21H1)

I'm pretty sure it's not OS issue neither mIRC issue, because it happened in a older version of mIRC and Windows as well.

Picture: image

Here is a little snippet:

### Test blurry treeview text

alias testtreeview {
  dialog -ma testtreeview testtreeview_tb
}
dialog testtreeview_tb {
  title "Test Blurry TreeView text"
  size -1 -1 500 310
}
on *:dialog:testtreeview:*:*: {
  if ($devent == init) {

    dcx Mark $dname testtreeview_cb
    xdialog -b $dname +otny
    testtreeview_init_dcx
  }
}

alias -l testtreeview_init_dcx {
  xdialog -c $dname 1 treeview 5 5 155 270 alpha haslines showsel hasbuttons
  xdialog -c $dname 2 button 5 280 155 25 default
  xdid -t $dname 2 Ok

  testtreeview_loaditems $dname
}

alias testtreeview_loaditems {
  xdid -r $1 1
  xdid -a $1 1 1 $+($chr(9),+be 1 1 0 0 0 -1 -1 Root Settings,$chr(9),Root)

  var %items = AAA,BBB,CCC
  var %tmp, %x 1, %count 1, %l xdid -a $1 1 1

  while ($gettok(%items, %x, 44)) {
    %tmp = $v1
    if (perform.* !iswm %tmp && @* !iswm %tmp) {
      %l %count $+($chr(9),+b 1 1 0 0 0 -1 -1 %tmp,$chr(9),%tmp Settings)
      %l %count $+(1,$chr(9),+b 1 1 0 0 0 -1 -1 Settings,$chr(9),Settings)
      ;%l %count $+(4,$chr(9),+b 1 1 0 0 0 -1 -1 Servers,$chr(9),Settings)
      %l %count $+(2,$chr(9),+b 1 1 0 0 0 -1 -1 Channels,$chr(9),Channels)
      %l %count $+(3,$chr(9),+b 1 1 0 0 0 -1 -1 Perform,$chr(9),Perform)
      inc %count
    }
    inc %x
  }
}
EpicNet commented 1 year ago

I am using "mIRC v7.69/7.71" + "DCX dll v3.1-git469" in system "Windows 8.1 x64".

I try your test code on my computer and couldn't reproduce given problem. Everything is displayed clearly:

image

Perhaps this information will be useful and narrow down the search for a solution to the problem.

OokEek commented 1 year ago

This is cause by the alpha style being used, this style is broken in treeview atm & is being worked on. The solution is to simply remove that style for now.

oreleraki commented 1 year ago

This is cause by the alpha style being used, this style is broken in treeview atm & is being worked on. The solution is to simply remove that style for now.

Thanks. I've removed it for now :)