AutoHotkey Community

It is currently May 27th, 2012, 5:20 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 177 posts ]  Go to page Previous  1 ... 5, 6, 7, 8, 9, 10, 11, 12  Next
Author Message
 Post subject:
PostPosted: January 7th, 2011, 1:24 pm 
Offline

Joined: February 11th, 2007, 4:10 pm
Posts: 185
the bug with scroller offset still exists. I test it in a panel.
When I drag scrollbar down and up several times, all the controls will move down togather.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Toolbar
PostPosted: January 7th, 2011, 4:33 pm 
Hi, it's me again.
I have one more question: is it possible to make a toolbar owned by a tab control?
So that each single tab has its own toolbar?
I tried it with
Code:
#Include C:\Users\Dominik\Skripts\KAPROG\forms\inc\Toolbar.ahk
Gui, Add, Tab, hwndTab h400, Tab1|Tab2
Gui +LastFound
hGui := WinExist()
Gui, Tab, Tab1
N := Toolbar_Add(hGui, "", "flat", "", "x25 y50 w300") ;this one
H := Toolbar_Add(Tab, "", "flat", "", "x25 y150 w300") ;and with this one
btns=
(
button1
button2
)
Toolbar_Insert(N, Btns)
Toolbar_Insert(H, Btns)
Gui Show, w300 h400

but both didn't work.

Is there a way to do it?
This would be really helpful!

Regards
maul.esel

P.S.: I still love the framework :!: :D :!:


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 7th, 2011, 4:52 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
I dont use tabs. I use Panels instead.
What u want is possible if u connect those two or if u create ur own navigator for that will switch between different panels. U have sample in samples/form folder (PseudoTabs)



Quote:
the bug with scroller offset still exists. I test it in a panel.
When I drag scrollbar down and up several times, all the controls will move down togather.

Please post me sample. Thx.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 8th, 2011, 12:56 pm 
Offline

Joined: February 11th, 2007, 4:10 pm
Posts: 185
Can u tell me your email? I'll send the whole little app to u.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 17th, 2011, 11:08 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
2Hungman
Sorry for the big delay, I was buisy.

I think I identified the problem and hopefully it is fixed now. U should grab the latest version here. Check it out and report if it solves the problem there.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 20th, 2011, 2:29 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
Revision: r1127 wrote:
+ QHTM wrapper updated to support AHK_L
+ Qhtm.dll changed to qhtmu.dll (which is renamed to qhtm.dll as wrapper requires that)
- Ansi qhtm.dll deleted. Its available via qhtm page.


Available via repository.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 20th, 2011, 4:14 pm 
Great stuff, majkinetor!

Quote:
Ansi qhtm.dll deleted. Its available via qhtm page.


The [url=GipsySoft.com]qhtm site[/url] is down for quite some time now. Could you put a backup-copy up somewhere for those who don't use AutoHotkey_L or are on Win9x? It would be nice to have a backup of all files and the documentation from the site. I guess you have it somewhere. If not, I think I have some of the archives somewhere myself.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 21st, 2011, 7:55 am 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
All dll files I found are availalbe via main download on QHTMpage.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 23rd, 2011, 12:39 pm 
Offline

Joined: June 17th, 2008, 7:51 am
Posts: 243
Really great, majkinetor. :P

I'm just exploring it. Until now I only use RichEdit. As far as I see, it's not possible, to show images, that are integrated into the RTF-Code. Will there be an update, so that it will be possible in future? Or is there perhaps already a possibility, which I haven't found?

_________________
Greetings
Rog


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 23rd, 2011, 1:18 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
No, currently there is no such possibility.

Images can be added via 2 mechanisms: COM and RTF.
RTF should be easier and I tried but I didn't succeed so far.
In case somebody want to try to implement that the Delphi code is located here.

I also tried COM but I was stuck too as it looks like AHK_L COM features can't be used. In case somebody wants to help, question is here.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 26th, 2011, 8:44 pm 
Hi,
I'm using Forms and Panels with several Listviews. I know I can set the GUI to default using
Code:
Form_Default(HForm)
But how to set the default listview?
I thought of using the function you mentioned in the documentation:
Forms-documentation about Form_New wrote:
To obtain Gui number use Form_GetNum function with label or hwnd argument.
But a call to this function is producing an error, maybe because it is not defined in Form.ahk ;-)
Well, this part of the documentation seems to be incomplete:
Quote:
If you are adding control to the panel, Margin...
... ?
So is there a new way to retrieve the Gui-number? And, by the way, would this work:
Code:
Num := Form_GetNum(HForm)
Gui %Num%: Listview, ListScripts
:?:

Regards
maul.esel


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 26th, 2011, 8:57 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
I am sorry for this, seems like unfinished thought or uncommited work.

For now, you can use this command to get the num:

Code:
n := Form( hForm )


Quote:
If you are adding control to the panel, Margin...

... will influence control position. Set Margin to 0, 0 (you can do this via Form_New as mx.y option) or use x & y coordinates in Form_Add when you add controls to the panel. Or you can leave it there. With scroller on, it can produce some offset while scrolling.

BTW, there was some bug related to ListView and subclassing in all versions of AHK so far. Depending on what you do with ListView it can freeze the script rarely. Lexikos did some changes but I think he reverted. If you encounter script freezing, let me know.

Thx for notification.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 8th, 2011, 1:11 pm 
Offline

Joined: February 11th, 2007, 4:10 pm
Posts: 185
the color of the text control inside a panel can't be changed as the same control added by the command gui,add.
Code:
   Gui, Add, Text, vT1, Test1
   Gui, Font, cRed
   GuiControl, font, T1

Code:
   hPanel := Form_Add(hGui, "Panel", "", "y50 w300 h300")
   Form_Add(hPanel, "Text", "Test2", "vT2 HWNDhT2")
   Gui, Font, cRed
   GuiControl, font, T1


Then how should I changed the text forecolor?
I have tried GDI API SetTextColor, it failed yet.
Code:
Win_Get(hT2, "D", hdcT2)
DllCall("gdi32\SetTextColor", UInt, hdcT2, UInt, 0x0000FF)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 8th, 2011, 1:23 pm 
Offline

Joined: February 11th, 2007, 4:10 pm
Posts: 185
Code:
Win_GetClassNN(HCtrl, HRoot="") {
   ifEqual, HRoot,, SetEnv, HRoot, % DllCall("GetAncestor", "uint", HCtrl, "Uint", 2, "Uint")
   WinGet, hlist, ControlListHwnd, ahk_id %HRoot%
    WinGetClass, tclass, ahk_id %HCtrl%
    Loop, Parse, hlist, `n
    {
        WinGetClass, lclass, ahk_id %A_LoopField%
        if (lclass == tclass)
        {
            nn += 1
            if A_LoopField = %HCtrl%
                return tclass nn
        }
    }
}


This funciton always return null. I tried several times and found the problem.
Code:
 return tclass nn

should be changed as follow
Code:
 return, tclass nn

or
Code:
  return tclass . nn


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 8th, 2011, 2:00 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
Quote:
the color of the text control inside a panel can't be changed as the same control added by the command gui,add.

For some reason I didn't check, this stops working once control is inside the Panel. This code for instance:


Code:
   hGui := Form_New("w300 h200")
   hPanel := Form_Add(hGui, "Panel", "", "y0 w300 h300")

   Gui, Add, Text, cred hwndh, test
   
   Form_Add(hPanel, h)   ;add existing control in the panel.
   Form_Show(hGui)


colors red before Form_Add(hPanel, h) is used (at which moment Text control is in the Gui, not the panel), but colors black after it is moved to Panel.
I don't know what can be used now as a workaround.

BTW, you can't you don't have to use HWND option with framework. Form_Add(..) returns it.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 177 posts ]  Go to page Previous  1 ... 5, 6, 7, 8, 9, 10, 11, 12  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 3 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