Am 21.12.2011 um 18:11 schrieb Christian Schmitz:

> Am 21.12.2011 um 13:47 schrieb Maximilian Tyrtania:
> 
>> Is there a way to obtain a document icon for a file extension on windows?
> 
> make temp file with right extension and use folderitem.iconMBS function, 
> please.

Neat trick, but isn't IconMBS Mac only? I specifically asked for windows.

And this code :

  dim f as FolderItem=GetTemporaryFolderItem
  f.name="test.doc"
  Self.mIcon = new IconMBS(f)  //Self.mIcon is a property of the window (as 
iconMBS)
  Self.Canvas1.Invalidate 

and :

  if Self.mIcon isa IconMBS then
    Self.mIcon.DrawIcon(g,0,0,32,32)
  end if

in the canvas' paint event draws nothing (on Mac Carbon). I verified that the 
paint event is triggered by the .invalidate.

Maximilian Tyrtania
http://www.contactking.de
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to