Jump to content

maba

Active Members
  • Posts

    38
  • Joined

  • Last visited

About maba

  • Birthday 09/14/1980

Profile Information

  • Location
    IT
  • WWW
    http://moreweb.it

Recent Profile Visitors

178 profile views

maba's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Ok, ok.. no bolded text for now Thanks
  2. Grrr.. why it works with your code?? I've tried many times with different result! :/ Thanks, see you tomorrow!
  3. Melba23, watch your crystal ball and tell me if it is possible? $cCombo2 = GUICtrlCreateCombo("", 10, 40, 200, 20, $CBS_DROPDOWNLIST) _GUICtrlComboBox_BeginUpdate($cCombo2) ; for cycle _GUICtrlComboBox_AddString($cCombo2, "Item1") ;<<<<<<<<<<<<<<<<<<<<<<< how to make this bold? ; other for cycle _GUICtrlComboBox_AddString($cCombo2, " subitem1 1") _GUICtrlComboBox_AddString($cCombo2, " subitem1 2") _GUICtrlComboBox_EndUpdate($cCombo2)
  4. Hi, validation is, generally speaking. I've a web oriented background and in it exists "global and/or generic" validator class.. Something general for password, email, required input in a form, etc.. Thanks
  5. Any ideas or suggestions? Is it a wrong things? Thanks
  6. Ok, ok.. silly question! Is this the best solution? Func _populateARRAY() ; Get the entries Local $aLocal_Array = IniReadSection(@ScriptDir & "\arrayMultiTest.ini", "Systems") ; Check for max item count $iMax = 0 For $i = 1 To $aLocal_Array[0][0] ; Count the delimiters - the actual string is unchanged StringReplace($aLocal_Array[$i][1], "|", "") ; Add 1 to get number of items and compare to the current max value If @extended + 1 > $iMax Then ; Reset the max value $iMax = @extended + 1 EndIf Next ; Size the Global array correctly Global $sGlobal_Array[$aLocal_Array[0][0] + 1][$iMax + 1] Local $aSplit For $i = 1 To $aLocal_Array[0][0] ; Split the delimited string into an array $aSplit = StringSplit($aLocal_Array[$i][1], "|") ; Now add the elements to the Global array For $j = 1 To $aSplit[0] $sGlobal_Array[$i][0] = $aLocal_Array[$i][0] ;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< $sGlobal_Array[$i][$j] = $aSplit[$j] Next Next EndFunc ;==>_populateARRAY But.. How to find $sGlobal_Array[$i] count? $cCombo3 = GUICtrlCreateCombo("", 10, 70, 200, 20, $CBS_DROPDOWNLIST + $WS_VSCROLL) _GUICtrlComboBox_BeginUpdate($cCombo3) For $i = 1 To UBound($sGlobal_Array) -1 _GUICtrlComboBox_AddString($cCombo3, $sGlobal_Array[$i][0]) For $j = 1 To 8 ;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< If $sGlobal_Array[$i][$j] <> "" Then _GUICtrlComboBox_AddString($cCombo3, ' ' & $sGlobal_Array[$i][$j]) EndIf Next Next _GUICtrlComboBox_EndUpdate($cCombo3) I've tried with _ArrayAdd and _ArrayInsert (with $aSplit[0] value), UBound but no luck. Thanks
  7. Hi, hi.. Yes it works! So.. I have another question for it If a would use also the KEY in my array? I use it for my problematic combobox.. ALI --ALI1 ASP --ASP1 AUG --AUG1 CLI --CLI1 --CLI2
  8. Hi all, I use the M23's code for a while, now I have a ini file like this [Systems] ALI=ALI1 ASP=ASP1 AUG=AUG1 CLI=CLI1|CLI2 ELE=ELE0|ELE2|ELE3|ELE4 ENE=ENE1|ENE3 where the item's number in value can change sometimes. Is it possible change the code and make it more dynamic? Thanks
  9. Silly test.. #include <GUIConstantsEx.au3> #include <GuiComboBox.au3> $sData = "Item1|--subitem1 1|--subitem1 2|--subitem1 3|Item2|--subitem2 1|--subitem2 2|Item3|--subitem3 1|Item4|--subitem4 1|--subitem4 2|--subitem4 3|--subitem4 4|--subitem4 5" $hGUI = GUICreate("Test", 500, 500) $cCombo = GUICtrlCreateCombo("", 10, 10, 200, 20) GUICtrlSetData(-1, $sData) $cCombo2 = GUICtrlCreateCombo("", 10, 40, 200, 20, $CBS_DROPDOWNLIST) _GUICtrlComboBox_BeginUpdate($cCombo2) GUISetFont(-1, 800) $a = _GUICtrlComboBox_AddString($cCombo2, "Item1") GUICtrlSetFont($a, 800) GUICtrlCreateLabel("Bold", 250, 40) GUISetFont(-1, 400) _GUICtrlComboBox_AddString($cCombo2, " subitem1 1") _GUICtrlComboBox_AddString($cCombo2, " subitem1 2") GUICtrlCreateLabel("Normal", 250, 60) _GUICtrlComboBox_EndUpdate($cCombo2) GUISetState() While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit Case $cCombo $sSel = GUICtrlRead($cCombo) If StringLeft($sSel, 2) <> "--" Then _GUICtrlComboBox_SetEditText($cCombo, "") Else MsgBox(0, "Combo Sel", $sSel) EndIf EndSwitch WEnd I think that I have to use _WM_MEASUREITEM _WM_DRAWITEM
  10. Mmm.. use _GUICtrlComboBox_BeginUpdate and _GUICtrlComboBox_EndUpdate or _WM_DRAWITEM..? Soooo hard sometime.
  11. Oooh yes. Good start! I'll try to apply a style to the "headers", and remove -- from the sub*. If is it possible. As ever.. Thanks M23
  12. Hi all, probably I've do a very bad search.. Is not possible to have a "multilevel" combobox? Item1 --subitem1 1 --subitem1 2 --subitem1 3 Item2 --subitem2 1 --subitem2 2 Item3 --subitem3 1 Item4 --subitem4 1 --subitem4 2 --subitem4 3 --subitem4 4 --subitem4 5 Item[1,2,3,4] are labels. Thanks!
  13. Yes, I have founded some docs. Suggestion: flags or the dummy controls?
  14. Hi all, I've searched for a while on the forum.. I have found some examples but not a UDF or similar to manage input validation and input (stardard) creation. Ok, now you can say "write your own", but I'm a AutoIT noob and many features are hide to me. How you create and validate your (big) forms? StringIs*, some regexp, etc.. And.. when a input box is required? Switch/Case in a _WM_* func?
×
×
  • Create New...