| View previous topic :: View next topic |
| Author |
Message |
majkinetor
Joined: 24 May 2006 Posts: 4511 Location: Belgrade
|
Posted: Tue Nov 18, 2008 6:30 pm Post subject: [module] Qhtm 1.01 |
|
|
_________________

Last edited by majkinetor on Mon Jan 10, 2011 2:53 pm; edited 9 times in total |
|
| Back to top |
|
 |
pokercurious
Joined: 16 Dec 2007 Posts: 48
|
Posted: Tue Nov 18, 2008 6:46 pm Post subject: |
|
|
This looks fantastic - I can't wait to play with it.
I have a small problem. You call the function Mem_AtStrAdr() in the script. It looks like it's a call to a stdlib library (assuming "mem.ahk"?), but i can't seem to find any mention of it outside this thread that doesn't tell me where to find it. Can you please point me to it?
Found it, but through the strangest path. The thread is here. If only I had searched for the function sans prefix - I wouldn't have had to jump through such convoluted loops to find it. |
|
| Back to top |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 4511 Location: Belgrade
|
Posted: Tue Nov 18, 2008 7:14 pm Post subject: |
|
|
Doh, my bad. I replaced functions from my StdLib. Thx for notifying me. _________________
 |
|
| Back to top |
|
 |
Jezzaw Guest
|
Posted: Tue Nov 18, 2008 9:22 pm Post subject: |
|
|
World keeps turning because of people like
I canīt express enough how awesome you are |
|
| Back to top |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 4511 Location: Belgrade
|
Posted: Tue Nov 18, 2008 11:23 pm Post subject: |
|
|
The module is now complete. I added Printing and Rendering functions. _________________
 |
|
| Back to top |
|
 |
Laszlo
Joined: 14 Feb 2005 Posts: 4710 Location: Boulder, CO
|
Posted: Wed Nov 19, 2008 4:01 am Post subject: |
|
|
| Wunderbar! Thanks for sharing it! |
|
| Back to top |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 4511 Location: Belgrade
|
Posted: Wed Nov 19, 2008 12:22 pm Post subject: |
|
|
For the end, I included function that loads HTML from the resource or compiled script and custom API AdjustControl that resizes Button (and eventually ListBox) after HTML is drawn so you don't have to guess the height of the html-ized button.
I also included qhtmLight.dll which is 150KB smaller (250 KB) that provides most important subset of qhtm.dll. You can choose whatever is appropriate for your script, the same wrapper worrks with both. If you use light version, you should rename it it qhtm.dll.
Enjoy. _________________
 |
|
| Back to top |
|
 |
Petru
Joined: 17 Dec 2007 Posts: 235 Location: Galati, Romania
|
Posted: Thu Nov 20, 2008 9:03 pm Post subject: |
|
|
| But what if I have to resize the control? |
|
| Back to top |
|
 |
n-l-i-d Guest
|
Posted: Fri Nov 21, 2008 4:40 pm Post subject: |
|
|
Brilliant!
Thank you very much for this!
Have you found out yet why the listbox doesn't work? |
|
| Back to top |
|
 |
majkinetor! Guest
|
Posted: Fri Nov 21, 2008 6:45 pm Post subject: |
|
|
Thx.
No, I didnt fix the Listbox issue although I have some progress. I found that when you add certain style it is htmlized partially.
Ill wait some more for author to respond, then I will eventualy return to this problem if I need it.
However, due to the Print functions, its easy to implement OverDrawn controls, and basically, implement any control as HTML. You only need to implement WM PAINT message and render text to the appropriate rectangle using one qhtm call. So, if somebody needs it, he can implement htmlized listbox, listview, treeview, or anything else.. |
|
| Back to top |
|
 |
PetruD-Guest Guest
|
Posted: Fri Jan 30, 2009 12:01 pm Post subject: |
|
|
| Now I've got a question. There is a MsgBox function but how to determine witch button the user has pressed? Ifmsgbox doesn't work. |
|
| Back to top |
|
 |
n-l-i-d Guest
|
Posted: Mon Feb 02, 2009 6:11 pm Post subject: |
|
|
| FYI: Qhtm has been updated, but the ListBox issue remains... |
|
| Back to top |
|
 |
BoBoģ Guest
|
Posted: Mon Feb 02, 2009 8:42 pm Post subject: |
|
|
A(s always, a)n impressive piece of work. Thanks a lot for sharing your code with the AutoHotkey community. Much appreciated.  |
|
| Back to top |
|
 |
majkinetor ! Guest
|
Posted: Wed Feb 04, 2009 2:35 pm Post subject: |
|
|
| Quote: | | Now I've got a question. There is a MsgBox function but how to determine witch button the user has pressed? Ifmsgbox doesn't work. |
By using the return value of the function. See return values of System API MEssageBox. For instance, "Cancel" equals to 2. |
|
| Back to top |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 4511 Location: Belgrade
|
Posted: Sun Jun 21, 2009 5:05 pm Post subject: |
|
|
In version 1.01 I updated DLLs in the package to the latest version and added additional DLLs - Unicode and 64bit version (some people may find it usefull).
U only need 1 of those dlls in your script. _________________
 |
|
| Back to top |
|
 |
|