Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Advanced ListView control


  • Please log in to reply
3 replies to this topic
RaptorX
  • Members
  • 751 posts
  • Last active: Feb 19 2015 02:47 AM
  • Joined: 19 Feb 2010
I am looking for a List view control that allows me to do something like this:
 
JCVrx.png
 
I will be managing some products, The checkmarks show available products while X would show unavailable products. There would be some basic id and pricing information which is something that the default ListView control doesnt allow me to do in Icon View.
 
I do not have experience creating custom controls and while I would LOVE to learn how to do it I need this solution as quickly as possible and later on I will get on the task of creating my own.
 
Any information on if this is possible or how to manually create this would be great!

AutoHotkey Toolkit [Main Project]
Scintilla Wrapper
LexAHKL

tidbit
  • Administrators
  • 2709 posts
  • Hates playing Janitor
  • Last active: Jan 15 2016 11:37 PM
  • Joined: 09 Mar 2008

Easiest way would be to use an ActiveX control and then use HTML/CSS/JS. Then do some fancy voodoo to get/set the info.

 

I made this in AHK probably 2 years ago with ActiveX, HTML, CSS and JS. http://i.imgur.com/3vyUrJh.png

Note: ActiveX doesn't use the latest IE, so you don't get css3 and html5. Though, geekdude figured out a hack to use your latest IE version with activeX: http://www.autohotke...-render-engine/

But then it might just be easier to make this a web-based program (doesn't need to be connected to the internet, just uses a browser as the main program)


rawr. be very afraid
*poke*
. Populate the AutoHotkey city. Pointless but somewhat fun. .


RaptorX
  • Members
  • 751 posts
  • Last active: Feb 19 2015 02:47 AM
  • Joined: 19 Feb 2010

While that seems like the most sensible approach I would have no knowledge on how to load information from an XML to the list in HTML, and I assume it would be done via PHP or something of the sort.

That means learning a few tricks. Unfortunately I dont have the time :(
Any quick hints on how to read/write information using this method? would it really be PHP or something that I am missing?


AutoHotkey Toolkit [Main Project]
Scintilla Wrapper
LexAHKL

tidbit
  • Administrators
  • 2709 posts
  • Hates playing Janitor
  • Last active: Jan 15 2016 11:37 PM
  • Joined: 09 Mar 2008

Probably JS or Jquery. Which it mildly easy. I've made a few ahk GUI's that use activex/js to power part of it.

 

The List would be a table (or preferably DIV tags with Float: left; CSS property.) wrapped in a div with a limited size (CSS: width: 100%; height: 500px;), then add the CSS property: overflow: auto;.

 

Getting XML data with JS looks pretty simple, like standard COM stuff in ahk:

http://stackoverflow...sing-javascript


rawr. be very afraid
*poke*
. Populate the AutoHotkey city. Pointless but somewhat fun. .