AutoHotkey Community

It is currently May 26th, 2012, 1:12 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 24 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: [module] Qhtm 1.01
PostPosted: November 18th, 2008, 7:30 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade


_________________
Image


Last edited by majkinetor on January 10th, 2011, 3:53 pm, edited 9 times in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 18th, 2008, 7:46 pm 
Offline

Joined: December 16th, 2007, 12:55 pm
Posts: 48
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 18th, 2008, 8:14 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
Doh, my bad. I replaced functions from my StdLib. Thx for notifying me.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 18th, 2008, 10:22 pm 
World keeps turning because of people like

I can´t express enough how awesome you are


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 19th, 2008, 12:23 am 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
The module is now complete. I added Printing and Rendering functions.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 19th, 2008, 5:01 am 
Offline

Joined: February 14th, 2005, 4:05 pm
Posts: 4710
Location: Boulder, CO
Wunderbar! Thanks for sharing it!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 19th, 2008, 1:22 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
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.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 20th, 2008, 10:03 pm 
Offline

Joined: December 17th, 2007, 6:39 pm
Posts: 235
Location: Galati, Romania
But what if I have to resize the control?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 21st, 2008, 5:40 pm 
Brilliant! 8)

Thank you very much for this!

Have you found out yet why the listbox doesn't work?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 21st, 2008, 7:45 pm 
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..


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 30th, 2009, 1:01 pm 
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.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 2nd, 2009, 7:11 pm 
FYI: Qhtm has been updated, but the ListBox issue remains...


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 2nd, 2009, 9:42 pm 
A(s always, a)n impressive piece of work. Thanks a lot for sharing your code with the AutoHotkey community. Much appreciated. 8)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 4th, 2009, 3:35 pm 
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.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: June 21st, 2009, 6:05 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
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.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 24 posts ]  Go to page 1, 2  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], IsNull and 20 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group