Jump to content
Sign in to follow this  
roby

Gui example..

Recommended Posts

Hi,

I am writing a program to manage a database and I must use toolbar and listview.. (Thank you Rover for example)

Well, I find this work solution, but I have some questions.

For example, the function GuiregisterMsg(...) must be only one and must put it in main menu of application?

Must I insert all toolbars and listviews in this function?

The code of function is right?

Please, if smbody has a better solution, help me....

Another question:

Why, if I use this code work...

.....
        Case $hListView And $code = $NM_CLICK
            ;Recupero il codice del record
            $iItemIndex = _GUICtrlListView_GetSelectedIndices($hListView)
        Case $hListView And $code = $LVN_KEYDOWN
            If _IsPressed("26") And BitAND(WinGetState("Uffici", ""), 8) Then ; up
                If $iItemIndex > 0 Then
                    $iItemIndex = _GUICtrlListView_GetSelectedIndices($hListView) - 1
                EndIf
            EndIf
            If _IsPressed("28") And BitAND(WinGetState("Uffici", ""), 8) Then ; down
                $iItemIndex = _GUICtrlListView_GetSelectedIndices($hListView) + 1
                
            EndIf
        Case $hListView And $code = $NM_DBLCLK
            _Dettaglio()
    EndSwitch
......oÝ÷ Ù©Ýò.±ëaÇ(uéè·
+rjëh×6                   Case $hListView 
                                     $code = $NM_CLICK
                                         .....
                                      $code = $NM_DBCLICK
                                         ......         
                                EndSwitch

Thank you

Regards Roby

prova_maschera_NUOVO.zip

Edited by roby

Share this post


Link to post
Share on other sites

my first tip use code or autoit tags....

my second tip This should prolly be in general help and support,

and I'll look over it for you

Well, thank you for replay...

But, what mean "use code or autoit tags"??

Please, can you explain me it?

Thank you again...

Roby

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...