AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[module] Qhtm 1.01
Goto page 1, 2  Next
 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
majkinetor



Joined: 24 May 2006
Posts: 4511
Location: Belgrade

PostPosted: Tue Nov 18, 2008 6:30 pm    Post subject: [module] Qhtm 1.01 Reply with quote




_________________


Last edited by majkinetor on Mon Jan 10, 2011 2:53 pm; edited 9 times in total
Back to top
View user's profile Send private message
pokercurious



Joined: 16 Dec 2007
Posts: 48

PostPosted: Tue Nov 18, 2008 6:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
majkinetor



Joined: 24 May 2006
Posts: 4511
Location: Belgrade

PostPosted: Tue Nov 18, 2008 7:14 pm    Post subject: Reply with quote

Doh, my bad. I replaced functions from my StdLib. Thx for notifying me.
_________________
Back to top
View user's profile Send private message
Jezzaw
Guest





PostPosted: Tue Nov 18, 2008 9:22 pm    Post subject: Reply with quote

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

PostPosted: Tue Nov 18, 2008 11:23 pm    Post subject: Reply with quote

The module is now complete. I added Printing and Rendering functions.
_________________
Back to top
View user's profile Send private message
Laszlo



Joined: 14 Feb 2005
Posts: 4710
Location: Boulder, CO

PostPosted: Wed Nov 19, 2008 4:01 am    Post subject: Reply with quote

Wunderbar! Thanks for sharing it!
Back to top
View user's profile Send private message
majkinetor



Joined: 24 May 2006
Posts: 4511
Location: Belgrade

PostPosted: Wed Nov 19, 2008 12:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
Petru



Joined: 17 Dec 2007
Posts: 235
Location: Galati, Romania

PostPosted: Thu Nov 20, 2008 9:03 pm    Post subject: Reply with quote

But what if I have to resize the control?
Back to top
View user's profile Send private message Yahoo Messenger
n-l-i-d
Guest





PostPosted: Fri Nov 21, 2008 4:40 pm    Post subject: Reply with quote

Brilliant! Cool

Thank you very much for this!

Have you found out yet why the listbox doesn't work?
Back to top
majkinetor!
Guest





PostPosted: Fri Nov 21, 2008 6:45 pm    Post subject: Reply with quote

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





PostPosted: Fri Jan 30, 2009 12:01 pm    Post subject: Reply with 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.
Back to top
n-l-i-d
Guest





PostPosted: Mon Feb 02, 2009 6:11 pm    Post subject: Reply with quote

FYI: Qhtm has been updated, but the ListBox issue remains...
Back to top
BoBoģ
Guest





PostPosted: Mon Feb 02, 2009 8:42 pm    Post subject: Reply with quote

A(s always, a)n impressive piece of work. Thanks a lot for sharing your code with the AutoHotkey community. Much appreciated. Cool
Back to top
majkinetor !
Guest





PostPosted: Wed Feb 04, 2009 2:35 pm    Post subject: Reply with quote

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

PostPosted: Sun Jun 21, 2009 5:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group