Sign in to follow this  
Followers 0
mary

what kind of control for this datagrid

4 posts in this topic

#1 ·  Posted (edited)

hi!

my project need to use a planning. so, is there a way to do same thing with autoit like this ? :

Planning vista

Posted Image

or

like this

Posted Image

Edited by mary

Share this post


Link to post
Share on other sites



This and this maybe helpful.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

This and this maybe helpful.

You could also do somewthing like this

#include <GUIConstantsEx.au3>
#include <staticconstants.au3>
$gui = GUICreate("label over gradient", 440, 500)

$vertlabs = StringSplit("Jan|Feb|mar|April|May|June|July|", "|")
For $n = 1 To 8
    GUICtrlCreateLabel("", 10, 50 + $n * 22, 400, 1)
    GUICtrlSetBkColor(-1, 0x555555)
    GUICtrlCreateLabel("", 10, 51 + $n * 22, 400, 1)
    GUICtrlSetBkColor(-1, 0xffffff)
    GUICtrlCreateLabel($vertlabs[$n], 12, 54 + $n * 22)
Next

For $n = 0 To 10
    GUICtrlCreateLabel("", 10 + $n * 40, 73, 1, 7 * 22)
    GUICtrlSetBkColor(-1, 0)
Next
Dim $lab[64]
$index = 1
For $n = 1 To 7
    For $p = 1 To 9
        $lab[$index] = GUICtrlCreateLabel("", 12 + $p * 40, 52 + $n * 22, 37, 19, $SS_NOTIFY)
        $index += 1;
        GUICtrlSetBkColor(-1, 0xffffff)
    Next
Next

GUISetState()


For $n = 1 To 17
    GUICtrlSetBkColor($lab[Random(0, 63, 1)], 0x0000ff)
Next

While 1
    $Msg = GUIGetMsg()
    If $Msg = -3 Then Exit
   ;if $Msg = $lab[9] then ConsoleWrite("tNo 1" & @CRLF)
    Switch $Msg
        Case $lab[1] To $lab[63]
            $labNo = 0
            For $n = 1 To 63
                If $Msg = $lab[$n] Then
                    $labNo = $n
                    ExitLoop
                EndIf
            Next
            If $labNo <> 0 Then

                $row = Int(($labNo - 1) / 9)
                ConsoleWrite($row & @CRLF)
                MsgBox(262144, "you clicked", "Row " & $vertlabs[$row + 1] & ' No. ' & $labNo - ($row) * 9)
                GUICtrlSetBkColor($Msg, 0x00FF00)
            EndIf

    EndSwitch

WEnd

EDIT: added msgboix when box clicked.

Edited by martin

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

Super !! :D

Thanks a lot !!

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  
Followers 0