Jump to content

need help with my GUI please.


 Share

Recommended Posts

hi,

ok I am having problem with coloring a label. this is my code:

If $agent11 = "AUX  "  Then $agent11 = "הפסקה"
        If $agent11 = "Avail  "  Then $agent11 = "זמין לשיחה"
        If $agent11 = "Other  "  Then $agent11 = "מצב ביניים"
        If $agent11 = "ExtnOut"  Then $agent11 = "שיחה יוצאת"
        
        $H7[$i] = GUICtrlCreateLabel($agent2, 25, $p)
        $H8[$i] = GUICtrlCreateLabel($agent5 & "           " & $agent8 & "         ", 150, $p)
        $H9[$i] = GUICtrlCreateLabel($agent11, 270, $p)
        If $agent11 = "הפסקה"  Then GUICtrlSetBkColor(-1, 0xff0000)
        If $agent11 = "זמין לשיחה"  Then GUICtrlSetBkColor(-1, 0x00ff00)

then it is run again using Guictrlsetdata for $agent 11:

If $agent11 = "AUX  "  Then $agent11 = "הפסקה"
            If $agent11 = "Avail  "  Then $agent11 = "זמין לשיחה"
            If $agent11 = "Other  "  Then $agent11 = "מצב ביניים"
            If $agent11 = "ExtnOut"  Then $agent11 = "שיחה יוצאת"
            GUICtrlSetData($H7[$i], $agent2)
            GUICtrlSetData($H8[$i], $agent5 & "        " & $agent8 & "         ")
            GUICtrlSetData($H9[$i], $agent11)
            If $agent11 = "הפסקה"  Then GUICtrlSetBkColor($H9[$i], 0xff0000)
            If $agent11 = "זמין לשיחה"  Then GUICtrlSetBkColor($H9[$i], 0x00ff00)

that keep reapet itself over and over, according to $agent11 status the color of $agent11 needs to be changed. when the GUI first activated it is ok, but when the first loop and so on occurs, then, it cut off I don't get it why this happens, see pictures.

Edited by erezlevi
Link to comment
Share on other sites

Just going by the pictures it looks like the string is too big

for the label, so double check the size.

Have no experience with 'foreign' (Hebrew, I suppose?)

char. sets though, so forgive me if this makes no sense.

wim

Edited by whim
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...