messages
listlengths 1
1
| topic
stringlengths 2
60
|
|---|---|
[
{
"date": "2014-06-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "In ::New() of this class are the code \n[code=fw:3tb8tx41]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> <span style=\"color: #00C800;\">if</span> ! ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">l2013</span></div>[/code:3tb8tx41]\nWhen I use this button-class outside from ribbon e.g. in a Dialog this couldnt functioning as the data l2013 not present.",
"time": "09:00",
"topic": "BUG in Trbbtn",
"username": "byte-one"
}
] |
BUG in Trbbtn
|
[
{
"date": "2014-06-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "In the trbtn.prg, the condition is like this:\n[code=fw:3kna8l6i]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">IsKindOf</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"TRIBBONBAR\"</span> <span style=\"color: #000000;\">)</span> .or. ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">IsKindOf</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"TRBGROUP\"</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> .and. ;<br /> ! ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">l2013</span><br /> </div>[/code:3kna8l6i]\n\nThe condition ! ::oWnd:l2013 is checked only if ::oWnd is RibbonBar or TRbGroup, [b:3kna8l6i]provided /z compiler flag is not used while compiling trbtn.prg.[/b:3kna8l6i] All FWH lib prgs are complied without /z flag because FWH sources use shortcutting. \n\nI hope you are not compiling this prg separately with /z flag and linking with your application.",
"time": "10:34",
"topic": "BUG in Trbbtn",
"username": "nageswaragunupudi"
}
] |
BUG in Trbbtn
|
[
{
"date": "2014-09-09",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Joaquín,\n\n\nGracias! Por favor cambia asi el método MouseMove() de la Clase TMsgBar:\n\n[code=fw:1nog9w82]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">METHOD</span> MouseMove<span style=\"color: #000000;\">(</span> nRow, nCol, nFlags <span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TMsgBar<br /><br /> <span style=\"color: #00C800;\">local</span> n, oItem<br /><br /> <span style=\"color: #00C800;\">for</span> n = <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> Len<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">aItems</span> <span style=\"color: #000000;\">)</span><br /> oItem = ::<span style=\"color: #000000;\">aItems</span><span style=\"color: #000000;\">[</span> n <span style=\"color: #000000;\">]</span><br /> <span style=\"color: #00C800;\">if</span> oItem:<span style=\"color: #000000;\">IsOver</span><span style=\"color: #000000;\">(</span> nRow, nCol <span style=\"color: #000000;\">)</span> <br /> <span style=\"color: #00C800;\">if</span> oItem:<span style=\"color: #000000;\">bAction</span> != <span style=\"color: #00C800;\">nil</span><br /> CursorHand<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span> <br /> <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">nItem</span> != n<br /> ::<span style=\"color: #000000;\">nItem</span> := n<br /> ::<span style=\"color: #000000;\">DestroyToolTip</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /> ::<span style=\"color: #000000;\">CheckToolTip</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /> <span style=\"color: #00C800;\">endif</span><br /> <span style=\"color: #00C800;\">next</span><br /> ::<span style=\"color: #000000;\">DestroyToolTip</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> ::<span style=\"color: #000000;\">nItem</span> := <span style=\"color: #000000;\">0</span><br /><br /><span style=\"color: #00C800;\">return</span> ::<span style=\"color: #00C800;\">Super</span>:<span style=\"color: #000000;\">MouseMove</span><span style=\"color: #000000;\">(</span> nRow, nCol, nFlags <span style=\"color: #000000;\">)</span></div>[/code:1nog9w82]",
"time": "07:50",
"topic": "BUG msgitem (Antonio)",
"username": "Antonio Linares"
}
] |
BUG msgitem (Antonio)
|
[
{
"date": "2014-09-08",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Hola,\n\nEn un mensaje anterior del que nadie comentó nada, dije que cuando asignaba un tooltip a un msgitem, ni salía el cursor dedo del ratón al ponerse\nencima ni mostraba el tooltip.\n\nMe he dado cuenta que es un bug en la clase msgitem. [b:10tyxx02]No funciona el tooltip, si no está definido una ACTION.[/b:10tyxx02]\n\n DEFINE MSGITEM oMsgTTS OF oMsgprin PROMPT \"TTS\" ;\n SIZE 40;\n COLOR If(ltts,CLR_WHITE,CLR_GRAY),If(ltts,CLR_GREEN,CLR_HGRAY);\n [b:10tyxx02]ACTION .T. ;[/b:10tyxx02]\n TOOLTIP If(ltts,\"TTS activo\",\"TTS desactivado\") \n\n[b:10tyxx02]Esto SÍ funciona[/b:10tyxx02], sin el ACTION no funciona.\n\nDeduzco que el ACTION no está definido por defecto cuando existe un tooltip y no una acción.",
"time": "23:13",
"topic": "BUG msgitem (Antonio)",
"username": "jmartial"
}
] |
BUG msgitem (Antonio)
|
[
{
"date": "2020-01-30",
"forum": "FiveWin for Harbour/xHarbour",
"text": "In the new 19/12 are no input to make on a REDEFINE GET with clausula password in the RC-file. Also the Picture-clausula are not respected!\nWith DEFINE GET... i do not know!",
"time": "15:45",
"topic": "BUG on GETS with password",
"username": "byte-one"
}
] |
BUG on GETS with password
|
[
{
"date": "2020-01-30",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[code=fw:rouqxcej]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"Fivewin.ch\"</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> Main<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">LOCAL</span> oDlg, oBtn<br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Test PassWord\"</span><br /><br /> @<span style=\"color: #000000;\">1.5</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtn <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Test GET and PASSWORD\"</span> ;<br /> <span style=\"color: #0000ff;\">ACTION</span> TESTPASSW<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> TESTPASSW<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">LOCAL</span> oDlg, oGet1, oGet2, oGet3<br /> <span style=\"color: #00C800;\">LOCAL</span> cUserName := <span style=\"color: #ff0000;\">\"Byte-One \"</span> + SPACE<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">32</span> <span style=\"color: #000000;\">)</span>, ;<br /> cPassword := SPACE<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">40</span> <span style=\"color: #000000;\">)</span>, cPassword2 := SPACE<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">40</span> <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Test Password in FiveWin\"</span><br /><br /> @ <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">GET</span> oGet1 <span style=\"color: #0000ff;\">VAR</span> cUserName <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">120</span>, <span style=\"color: #000000;\">12</span> <span style=\"color: #0000ff;\">OF</span> oDlg<br /><br /> @ <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">GET</span> oGet2 <span style=\"color: #0000ff;\">VAR</span> cPassword PASSWORD <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">120</span>, <span style=\"color: #000000;\">12</span> <span style=\"color: #0000ff;\">OF</span> oDlg<br /><br /> @ <span style=\"color: #000000;\">3.5</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">GET</span> oGet3 <span style=\"color: #0000ff;\">VAR</span> cPassword2 PASSWORD <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">120</span>, <span style=\"color: #000000;\">12</span> <span style=\"color: #0000ff;\">OF</span> oDlg<br /><br /> <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><span style=\"color: #B900B9;\">/*<br /> Using Resources:<br /><br /> EDITTEXT 20, 101, 63, 50, 14, ES_CENTER | ES_MULTILINE | ES_PASSWORD | WS_BORDER | WS_GROUP | WS_TABSTOP<br />*/</span><br /> </div>[/code:rouqxcej]\n\nRegards.",
"time": "16:19",
"topic": "BUG on GETS with password",
"username": "karinha"
}
] |
BUG on GETS with password
|
[
{
"date": "2020-01-30",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thanks i will try. For now i have removed in the RC clausula \"password\", in my program i set oGet:lPassword to .T.. Now is functioning.",
"time": "16:54",
"topic": "BUG on GETS with password",
"username": "byte-one"
}
] |
BUG on GETS with password
|
[
{
"date": "2020-02-05",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Have a small example for testing with REDEFINE GET? Make a DEMO and post for download please.\n\nRegards.",
"time": "13:51",
"topic": "BUG on GETS with password",
"username": "karinha"
}
] |
BUG on GETS with password
|
[
{
"date": "2020-02-05",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Further tests show, that a REDEFINE GET with password will not functioning, if a ON CHANGE clausula is using (the length of the get-variable will be shorter and shorter and overwrite the text is impossible). Also a PICTURE-clausula is not respected!",
"time": "12:27",
"topic": "BUG on GETS with password",
"username": "byte-one"
}
] |
BUG on GETS with password
|
[
{
"date": "2020-02-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello karinha, now i found the reason for this problem. \nIn my routine to sign in a have a timer, which go to standard-user after 10 secs. On the password get i have a clausula ON CHANGE: \n[code=fw:1jj5d9fw]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">oTimer:<span style=\"color: #000000;\">deactivate</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span></div>[/code:1jj5d9fw]\nNow if i press letter for letter this is always executed and i cannot input further. Now i use:\n[code=fw:1jj5d9fw]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span>oTimer:<span style=\"color: #000000;\">lactive</span>,oTimer:<span style=\"color: #000000;\">deactivate</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>,<span style=\"color: #000000;\">)</span></div>[/code:1jj5d9fw]\nand then it was functioning. But I use this for years. From 1912 on, this is so.\n\nBut the picture-clause from a passwort-get is not respected on input and also overwrite is not functioning (also mark all and press any letter the old input is not erased)!!",
"time": "13:44",
"topic": "BUG on GETS with password",
"username": "byte-one"
}
] |
BUG on GETS with password
|
[
{
"date": "2020-02-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I didn't understand the need to use a Timer () when asking for a simple password.\n\nSenha = Password.\n\n<!-- m --><a class=\"postlink\" href=\"https://i.imgur.com/49gl4LC.png\">https://i.imgur.com/49gl4LC.png</a><!-- m -->\n\n[img:3k27i9n2]https://i.imgur.com/49gl4LC.png[/img:3k27i9n2]\n\nRegards, saludos.",
"time": "14:57",
"topic": "BUG on GETS with password",
"username": "karinha"
}
] |
BUG on GETS with password
|
[
{
"date": "2020-02-13",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Karinha, the software is also using in a automode if after start nobody types in a password. After 10 secs the password-dialog ends and a predefined password is using. If inside the 10 secs a user types in a char, the timer stops and the user must type in the password. This problem is solved.\n\n[color=#FF0000:3nc6cqgt]NOT SOLVED!!\nThe picture-clause (in my case \"@!\") from a passwort-get is not respected on input and also overwrite is not functioning (also mark all and press any letter the old input is not erased)!![/color:3nc6cqgt]",
"time": "14:11",
"topic": "BUG on GETS with password",
"username": "byte-one"
}
] |
BUG on GETS with password
|
[
{
"date": "2020-02-13",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Mister Günther, in this case, it is better that you speak directly with Master Cristóbal. Please send an email to Master Cristóbal. He is the ideal person to verify this fact. Sorry I can't help anymore.\n\nRegards.",
"time": "14:27",
"topic": "BUG on GETS with password",
"username": "karinha"
}
] |
BUG on GETS with password
|
[
{
"date": "2020-02-13",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"byte-one\":1gogo2kr]Karinha, the software is also using in a automode if after start nobody types in a password. After 10 secs the password-dialog ends and a predefined password is using. If inside the 10 secs a user types in a char, the timer stops and the user must type in the password. This problem is solved.\n\n[color=#FF0000:1gogo2kr]NOT SOLVED!!\nThe picture-clause (in my case \"@!\") from a passwort-get is not respected on input and also overwrite is not functioning (also mark all and press any letter the old input is not erased)!![/color:1gogo2kr][/quote:1gogo2kr]\n\nI am looking into this.",
"time": "14:40",
"topic": "BUG on GETS with password",
"username": "nageswaragunupudi"
}
] |
BUG on GETS with password
|
[
{
"date": "2020-02-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "We are looking into the points raised by you one by one.\n\n[quote:3r1zei11]\nIn the new 19/12 are no input to make on a REDEFINE GET with clausula password in the RC-file\n[/quote:3r1zei11]\n\nThe command REDEFINE GET never had the clause \"PASSWORD\" in any of the previous versions also. FWH1912 is not different from previous versions.\n\nThe only way to redefine a Password Get is to set ES_PASSWORD flag of the control in the rc file. Example:\n[code=fw:3r1zei11]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />EDITTEXT <span style=\"color: #000000;\">102</span>, <span style=\"color: #000000;\">33</span>, <span style=\"color: #000000;\">71</span>, <span style=\"color: #000000;\">131</span>, <span style=\"color: #000000;\">12</span>, ES_PASSWORD | WS_BORDER | WS_TABSTOP<br /> </div>[/code:3r1zei11]\nThis is the only way.\n\n[quote:3r1zei11]\nAlso the Picture-clausula are not respected\n[/quote:3r1zei11]\n\nYou are right. Clause PICTURE '@!\" is not respected in REDEFINE'd password Get in version 1912 only. Fixed now.\n\nNow, we can use the flag ES_UPPERCASE to force input of capital letters\n[code=fw:3r1zei11]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />EDITTEXT <span style=\"color: #000000;\">102</span>, <span style=\"color: #000000;\">33</span>, <span style=\"color: #000000;\">71</span>, <span style=\"color: #000000;\">131</span>, <span style=\"color: #000000;\">12</span>, ES_PASSWORD | WS_BORDER | WS_TABSTOP | ES_UPPERCASE<br /> </div>[/code:3r1zei11]\n\nHowever in case if Gets defined from source code, we can use PASSWORD clause and the picture \"@!\" also works.\n\nWe will deal with other issues in the next posts.",
"time": "04:05",
"topic": "BUG on GETS with password",
"username": "nageswaragunupudi"
}
] |
BUG on GETS with password
|
[
{
"date": "2020-02-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "All the other issues raised are addressed in the next version under release.",
"time": "21:17",
"topic": "BUG on GETS with password",
"username": "nageswaragunupudi"
}
] |
BUG on GETS with password
|
[
{
"date": "2007-04-21",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Antonio, \n\nUtilizando o código abaixo:\n\nuBrw := TXBrowse():New( oDlp )\n\nbStruc :={{\"\",\"Sim\",0,CTOD(\"\"),CTOD(\"\"),0}}\n\nuBrw:SetArray( bStruc )\n\nuBrw:aCols[1]:cHeader := \"Parcela\"\nubrw:aCols[1]:nWidth := 50 \nuBrw:aCols[1]:cEditPicture := \"999\"\nuBrw:aCols[1]:bClrEdit := uBrw:bClrStd\nuBrw:aCols[1]:bOnPostEdit := {|o,x| bStruc[ uBrw:nArrayAt, 1 ] := x }\n\nuBrw:aCols[2]:cHeader := \"Recebida\"\nubrw:aCols[2]:nWidth := 60 \nuBrw:aCols[2]:nDataStrAlign := AL_LEFT\nuBrw:aCols[2]:nHeadStrAlign := AL_LEFT\nuBrw:aCols[2]:nEditType := EDIT_LISTBOX\nuBrw:aCols[2]:aEditListTxt := {\"Sim\", \"Não\"}\nuBrw:aCols[2]:bOnPostEdit := {|o,x| bStruc[ uBrw:nArrayAt, 2 ] := x }\nuBrw:aCols[2]:aEditListBound := {\"Sim\", \"Não\"}\nuBrw:aCols[2]:bClrEdit := uBrw:bClrStd\n\nuBrw:aCols[3]:cHeader := \"Valor\"\nubrw:aCols[3]:nWidth := 70 \nuBrw:aCols[3]:cEditPicture := \"@E 999,999.99\"\nuBrw:aCols[3]:nDataStrAlign := AL_RIGHT\nuBrw:aCols[3]:nHeadStrAlign := AL_RIGHT\nuBrw:aCols[3]:bOnPostEdit := {|o,x| bStruc[uBrw:nArrayAt, 3 ] := x }\nuBrw:aCols[3]:nEditType := EDIT_GET\nuBrw:aCols[3]:bStrData := {|| TRANS(bStruc[uBrw:nArrayAt, 3 ] ,\"@E 999,999.99\")} \n\nuBrw:aCols[4]:cHeader := padc(\"Vencimento\",11)\nubrw:aCols[4]:nWidth := 80 \nuBrw:aCols[4]:nDataStrAlign := AL_CENTER\nuBrw:aCols[4]:nHeadStrAlign := AL_CENTER\nuBrw:aCols[4]:bOnPostEdit := {|o,x| bStruc[ uBrw:nArrayAt, 4 ] := x }\nuBrw:aCols[4]:nEditType := EDIT_GET\n\nuBrw:aCols[5]:cHeader := padc(\"Data Pgto\",11)\nubrw:aCols[5]:nWidth := 80 \nuBrw:aCols[5]:nDataStrAlign := AL_CENTER\nuBrw:aCols[5]:nHeadStrAlign := AL_CENTER\nuBrw:aCols[5]:bOnPostEdit := {|o,x| bStruc[ uBrw:nArrayAt, 5 ] := x }\nuBrw:aCols[5]:nEditType := EDIT_GET\n\nuBrw:aCols[6]:cHeader := \"Valor Pgto\"\nubrw:aCols[6]:nWidth := 70 \nuBrw:aCols[6]:cEditPicture := \"@E 999,999.99\"\nuBrw:aCols[6]:nDataStrAlign := AL_RIGHT\nuBrw:aCols[6]:nHeadStrAlign := AL_RIGHT\nuBrw:aCols[6]:bOnPostEdit := {|o,x| bStruc[ uBrw:nArrayAt, 6 ] := x}\nuBrw:aCols[6]:nEditType := EDIT_GET\nuBrw:aCols[6]:bStrData := {|| TRANS(bStruc[uBrw:nArrayAt, 6 ],\"@E 999,999.99\")} \n\nuBrw:nMarqueeStyle := MARQSTYLE_HIGHLCELL\nuBrw:nColDividerStyle := LINESTYLE_DARKGRAY \nuBrw:lColDividerComplete := .t.\nuBrw:nFooterLines := 2\nuBrw:lFooter := .t.\nuBrw:aCols[ 1 ]:cFooter := \"Total:\"\n\nuBrw:bClrStd := { ||{ RGB(0,0,0), iif( uBrw:nArrayAt % 2 == 0, RGB(234,255,234) , RGB(255,255,255) ) } }\nuBrw:nFreeze := 6\nuBrw:lHScroll := .f.\nuBrw:lVScroll := .f.\nuBrw:lFastEdit := .T. //ENTER cod barras\nuBrw:CreateFromResource( 101 )\n\n***********************************************************\nSTATIC FUNCTION CRIA_TITULOS(cocond,iniciemis,tivalor,uBrw)\n***********************************************************\nLOCAL X,vvaltotal:=0,calcv:=0,ultparc\n\nselect condicoes\ndbsetorder(1)\nif dbseek(cocond)\n bStruc:={}\n calcv :=round(tivalor/condicoes->co_parc,2) \n Select TabCondicoes\n dbsetorder(1)\n dbseek(str(cocond,4,0))\n do while TabCondicoes->pg_codi==cocond .and. TabCondicoes->(! eof())\n iniciemis+=TabCondicoes->pg_praz\n AADD(bStruc,{TabCondicoes->pg_nupa,\"Sim\",calcv,iniciemis,ctod(\"\"),0}) \n TabCondicoes->(dbskip())\n enddo\n IF LEN(bStruc)>0\n vvaltotal:=0\n ultparc :=len(bStruc)\n FOR X:=1 TO (LEN(bStruc)-1)\n vvaltotal+=round(bStruc[x][3],2)\n NEXT\n bStruc[ultparc][3]:=round(tivalor-vvaltotal,2)\n else\n bStruc :={{\"\",\"Sim\",0,CTOD(\"\"),CTOD(\"\"),0}}\n ENDIF\n uBrw:aArrayData := aClone( bStruc ) \n uBrw:refresh()\nendif\nRETURN(.T.)\n\n\n\nEsta acontecendo o seguinte, vamos supor que o meu array tenha uns 100 registros, e, eu queira corre-los para baixo. aperto a seta para baixo e os registros começam a correr, porém, os dados de todas colunas(menos a ultima) assumem valores estranhos ex:\n\n<!-- m --><a class=\"postlink\" href=\"http://img255.imageshack.us/img255/1310/seta1cb3.jpg\">http://img255.imageshack.us/img255/1310/seta1cb3.jpg</a><!-- m -->\n\nE se a seta for para cima, ai o BUG é ao contrário, ou seja, todas as linhas ficam certas menos a ultima. ex: \n\n<!-- m --><a class=\"postlink\" href=\"http://img150.imageshack.us/img150/7351/seta2fz5.jpg\">http://img150.imageshack.us/img150/7351/seta2fz5.jpg</a><!-- m -->\n\nusing fwh 7.01\n\nAOKISANTOS\n\n <!-- s:cry: --><img src=\"{SMILIES_PATH}/icon_cry.gif\" alt=\":cry:\" title=\"Crying or Very sad\" /><!-- s:cry: -->",
"time": "13:30",
"topic": "BUG xBrowse - Antonio olhe isso por favor !",
"username": "AOKISANTOS"
}
] |
BUG xBrowse - Antonio olhe isso por favor !
|
[
{
"date": "2007-04-22",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Hola AOKISANTOS:\n\nEl problema que planteas me tiene desconcertado, no por que se produzca, ya que es un error que conocía, sino porque tal como defines xBrouse en un recurso y sin borde, no debería producirse, salvo que hayas alterado el código original del xbrouse.prg. (y creo que sí)\n\nEn principio este problema se produce por un mal cálculo del la altura del xbrouse cuando esta definido el control con borde (WS_BORDER), por recursos, (.RC) y se utiliza con Footer, en estos casos hay una discordancia entre el pintado (::Paint()) y el scroll de la función XBrwScroll() que es el bug que tú indicas y además pinta mal el Footer (que como veras en los JPGs que adjuntas , esta cortado, le falta las últimas líneas de pixels) \n\nTemporalmente la solución, y estoy trabajando en corregir este problema y otros, es cambiar en el código de xBrowse.prg para que METHOD BrwHeight() devuelva 2 ó 4 pixels menos, algo así como:\n\n METHOD BrwHeight() INLINE ( ::nHeight - 2 - iif( ::lHScroll, GetSysMetrics( SM_CYHSCROLL ), 0 ) )\n\nó\n\n METHOD BrwHeight() INLINE ( ::nHeight - 4 - iif( ::lHScroll, GetSysMetrics( SM_CYHSCROLL ), 0 ) )\n\n\nY también hay un bug en el METHOD GoUp() que te puede afectar cuando la altura de la cabecera y la de las líneas de datos son diferentes, donde pone:\n\n::EraseData( ( Int(nHeight/::nRowHeight) + 1 )* ::nRowHeight )\n\nDebería poner:\n\n ::EraseData( Int(nHeight/::nRowHeight) * ::nRowHeight + ::HeaderHeight() ) \n\n\n \nUn saludo,\n\nRamón Avendaño.",
"time": "19:07",
"topic": "BUG xBrowse - Antonio olhe isso por favor !",
"username": "Ramón Avendaño"
}
] |
BUG xBrowse - Antonio olhe isso por favor !
|
[
{
"date": "2008-12-01",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Tengo el siguiente problema: \r\n\r\n\r\n[code:3i6ql3m3]\n#include \"fivewin.ch\"\n#include \"xbrowse.ch\"\n\nfunction Main2()\n\n local oDlg, oBrw, cSaveState, cPath := \"c:\\\"\n\n cSaveState := GETPVPROFSTRING( \"BrowseArray\", \"SaveState\", \"\", cPath + \"prueba.ini\" )\n msginfo( cSaveState )\n\n DEFINE DIALOG oDlg SIZE 600, 200\n\n @ 0, 0 XBROWSE oBrw OF oDlg ARRAY { { \"uno\",\"dos\",\"tres\", \"cuatro\", \"cinco\", \"seis\", \"siete\", \"ocho\", \"nueve\", \"diez\" } } AUTOCOLS\n \n oBrw:CreateFromCode()\n\n oBrw:bKeyDown = { || oDlg:SetText( Str( oBrw:nColSel ) ) } \n \n ACTIVATE DIALOG oDlg CENTER ON INIT ( IIF( !EMPTY( cSaveState ), oBrw:RestoreState( cSaveState ), \"\" ), oDlg:oClient := oBrw, oDlg:Resize() );\n VALID ( cSaveState := oBrw:savestate(), msginfo( cSaveState), WritePProString( \"BrowseArray\", \"SaveState\", cSaveState, cPath + \"prueba.ini\" ), .t. )\n\n\nreturn nil\n[/code:3i6ql3m3]\r\n\r\n\r\nSi pongo la columna numero diez entre la 6 y la 7, al hacer el restorestate me cambia el orden de las columnas 7, 8 y 9, alguna idea?\r\n\r\n\r\ngracias",
"time": "19:01",
"topic": "BUG xBrowse savestate, restorestate",
"username": "pymsoft"
}
] |
BUG xBrowse savestate, restorestate
|
[
{
"date": "2008-12-03",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Antonio, \r\n\r\n\r\nEs un problema que da fastidio a mis clientes, ya que todo mi programa ahora usa xbrowse, y salva/recupera las posiciones de cada columna.\r\nSe logra entender cual es el problema o pongo imagenes?\r\n\r\n\r\ngracias",
"time": "12:46",
"topic": "BUG xBrowse savestate, restorestate",
"username": "pymsoft"
}
] |
BUG xBrowse savestate, restorestate
|
[
{
"date": "2008-12-03",
"forum": "FiveWin para Harbour/xHarbour",
"text": "siempre una imagen habla mas que mil palabras... <!-- s:wink: --><img src=\"{SMILIES_PATH}/icon_wink.gif\" alt=\":wink:\" title=\"Wink\" /><!-- s:wink: -->",
"time": "15:39",
"topic": "BUG xBrowse savestate, restorestate",
"username": "Daniel Garcia-Gil"
}
] |
BUG xBrowse savestate, restorestate
|
[
{
"date": "2008-12-03",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Abro la ventana con el browse:\r\n\r\n[url=http://img261.imageshack.us/my.php?image=img1kl2.jpg:29mg1bot][img:29mg1bot]http://img261.imageshack.us/img261/6537/img1kl2.th.jpg[/img:29mg1bot][/url:29mg1bot]\r\n\r\n\r\n\r\nCambio la columna 10 y la meto entra la 6 y la 7:\r\n\r\n[url=http://img266.imageshack.us/my.php?image=img2pc7.jpg:29mg1bot][img:29mg1bot]http://img266.imageshack.us/img266/9199/img2pc7.th.jpg[/img:29mg1bot][/url:29mg1bot]\r\n\r\nCierro el browse, salvo en el archivo .ini y luego re-abro el browse:\r\n\r\n[url=http://img266.imageshack.us/my.php?image=img3px4.jpg:29mg1bot][img:29mg1bot]http://img266.imageshack.us/img266/1594/img3px4.th.jpg[/img:29mg1bot][/url:29mg1bot]\r\n\r\nEl orden deberia ser: 1,2,3,4,5,6,10,7,8,9\r\n\r\nEn vez, el orden es: 1,2,3,4,5,6,10,9,8,7\r\n\r\nAhora deberia ser mas claro.\r\n\r\nSaludos",
"time": "16:59",
"topic": "BUG xBrowse savestate, restorestate",
"username": "pymsoft"
}
] |
BUG xBrowse savestate, restorestate
|
[
{
"date": "2008-12-04",
"forum": "FiveWin para Harbour/xHarbour",
"text": "cambia el metodo RestoreState( cState )\r\npor este... espero se solucione tu problema\r\n[code:2y6tujy7]\nMETHOD RestoreState( cState ) CLASS TXBrowse\n\n local oCol\n local aMoved, aNaturalOrder\n local cCol\n local nLen, nOrder, nWidth, nFor, nAt, nHeight\n local lHide,cHeader,j\n\n if Empty( cState )\n return nil\n endif\n\n aMoved := {}\n aNaturalOrder := {}\n nLen := Len( ::aCols )\n\n nHeight := Val(StrToken( cState, 1, \";\" ) )\n\n if Empty( ::nRowHeight )\n return nil\n endif\n\n // Check integrity\n\n for nFor := 1 to nLen\n cCol := StrToken( cState, nFor + 1, \";\" )\n if Empty( cCol )\n return nil\n endif\n aadd( aNaturalOrder, nFor )\n next\n\n ::nRowHeight := nHeight\n\n for nFor := 1 to nLen\n cCol := StrToken( cState, nFor + 1, \";\" )\n nOrder := Val( StrToken( cCol, 1, \":\" ) )\n nWidth := Val( StrToken( cCol, 2, \":\" ) )\n cHeader := StrToken( cCol, 3, \":\" )\n lHide := ( AllTrim( StrToken( cCol, 4, \":\" ) ) == \"H\" )\n nAt := Ascan( ::aCols, {|v| v:nCreationOrder == nOrder } )\n if nAt > 0\n oCol := ::aCols[ nAt ]\n oCol:lHide := lHide\n oCol:nWidth := nWidth\n oCol:cHeader := cHeader\n endif\n if nOrder != nFor \n \tif nOrder != aNaturalOrder[ nFor ] .and. ( nAt := Ascan( aNaturalOrder, nOrder ) ) != 0 \n ::SwapCols( nFor, nAt, .f. ) \n aNaturalOrder[ nFor ]:= nOrder\n aNaturalOrder[ nAt ]:= nFor\n endif\n endif \t\n next\n\n ::GetDisplayCols()\n ::Super:Refresh()\n\nreturn nil\n[/code:2y6tujy7]",
"time": "18:12",
"topic": "BUG xBrowse savestate, restorestate",
"username": "Daniel Garcia-Gil"
}
] |
BUG xBrowse savestate, restorestate
|
[
{
"date": "2008-12-04",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Daniel,\r\n\r\nmuchas gracias, lo acabo de probar y funciona <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\r\n\r\n\r\n\r\nAhora voy a fijarme cuales son las modificaciones que tu hiciste, serían de proponer a Antonio, porque es un bug en la clase original.\r\n\r\n\r\n\r\nSaludos y nuevamente gracias",
"time": "18:17",
"topic": "BUG xBrowse savestate, restorestate",
"username": "pymsoft"
}
] |
BUG xBrowse savestate, restorestate
|
[
{
"date": "2008-12-04",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Daniel, \r\n\r\n\r\nvisto el código escrito me quedó clarísimo.\r\n\r\nahora lo pruebo mas a fondo, pero te diría que quedó perfecto.\r\n\r\n\r\n\r\nsaludos",
"time": "18:20",
"topic": "BUG xBrowse savestate, restorestate",
"username": "pymsoft"
}
] |
BUG xBrowse savestate, restorestate
|
[
{
"date": "2008-12-04",
"forum": "FiveWin para Harbour/xHarbour",
"text": "siempre a la orden cualquier cosa mi messenger es <!-- e --><a href=\"mailto:danielgarciagil@cantv.net\">danielgarciagil@cantv.net</a><!-- e -->",
"time": "19:39",
"topic": "BUG xBrowse savestate, restorestate",
"username": "Daniel Garcia-Gil"
}
] |
BUG xBrowse savestate, restorestate
|
[
{
"date": "2012-06-21",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Ao Sair de um Get da Dialog e Caindo no Folder, se o 1º Get do Folder estiver com um valid ele eh acionado Automaticamente, veja:\nTestFold.prg\n[code=fw:2f6xqx53]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"Folder.ch\"</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">local</span> oDlg, oFld, oGet, oGetFld1, cGetFld2<br /> <span style=\"color: #00C800;\">local</span> cGet1 := Space<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">)</span>, nGetF1 := <span style=\"color: #000000;\">0</span>, cGetF2 := space<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"Test\"</span><br /><br /> <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">GET</span> oGet <span style=\"color: #0000ff;\">VAR</span> cGet1 <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">21</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">\"@!\"</span> <span style=\"color: #0000ff;\">UPDATE</span> <span style=\"color: #B900B9;\">//valid !Empty(cGet1)</span><br /><br /> <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">FOLDER</span> oFld <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">110</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br /> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Test\"</span> ;<br /> <span style=\"color: #0000ff;\">DIALOGS</span> <span style=\"color: #ff0000;\">\"Sub1\"</span> ;<br /> <span style=\"color: #0000ff;\">UPDATE</span><br /><br /> <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">GET</span> oGetFld1 <span style=\"color: #0000ff;\">VAR</span> nGetF1 <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">21</span> <span style=\"color: #0000ff;\">OF</span> oFld:<span style=\"color: #000000;\">aDialogs</span><span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">]</span> <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">\"999\"</span> <span style=\"color: #0000ff;\">valid</span> ValidGet<span style=\"color: #000000;\">(</span> nGetF1 <span style=\"color: #000000;\">)</span> <span style=\"color: #0000ff;\">UPDATE</span><br /> <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">GET</span> oGetFld2 <span style=\"color: #0000ff;\">VAR</span> cGetF2 <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">22</span> <span style=\"color: #0000ff;\">OF</span> oFld:<span style=\"color: #000000;\">aDialogs</span><span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">]</span> <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">\"@\"</span> <br /> <br /> <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br /> <br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br />********************************************************************************<br /><span style=\"color: #00C800;\">function</span> ValidGet<span style=\"color: #000000;\">(</span> _nGetF1 <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">if</span> _nGetF1 == <span style=\"color: #000000;\">0</span><br /> <span style=\"color: #0000ff;\">msginfo</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Valid Folder Get1 Erro\"</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">return</span> .f.<br /> <span style=\"color: #00C800;\">endif</span><br /><br /><span style=\"color: #00C800;\">return</span> .t.<br /> </div>[/code:2f6xqx53]\n\nTestFold.Rc\n[code=fw:2f6xqx53]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #B900B9;\">// RESOURCE SCRIPT generated by \"Pelles C for Windows, version 6.00\".</span><br /><br /><span style=\"color: #00D7D7;\">#include</span> <windows.h><br /><span style=\"color: #00D7D7;\">#include</span> <commctrl.h><br /><span style=\"color: #00D7D7;\">#include</span> <richedit.h><br /><br />LANGUAGE LANG_PORTUGUESE,SUBLANG_PORTUGUESE_BRAZILIAN<br /><br />TEST <span style=\"color: #0000ff;\">DIALOG</span> DISCARDABLE <span style=\"color: #000000;\">19</span>, <span style=\"color: #000000;\">47</span>, <span style=\"color: #000000;\">233</span>, <span style=\"color: #000000;\">157</span><br /><span style=\"color: #0000ff;\">STYLE</span> WS_POPUP|DS_MODALFRAME|WS_CAPTION|WS_SYSMENU<br />CAPTION <span style=\"color: #ff0000;\">\"FiveWin Folders Demo\"</span><br /><span style=\"color: #000000;\">{</span><br /> CONTROL <span style=\"color: #ff0000;\">\"Get1\"</span>, <span style=\"color: #000000;\">4001</span>, <span style=\"color: #ff0000;\">\"Static\"</span>, SS_CENTERIMAGE|WS_GROUP, <span style=\"color: #000000;\">8</span>, <span style=\"color: #000000;\">8</span>, <span style=\"color: #000000;\">32</span>, <span style=\"color: #000000;\">12</span>, WS_EX_STATICEDGE<br /> CONTROL <span style=\"color: #ff0000;\">\"\"</span>, <span style=\"color: #000000;\">21</span>, <span style=\"color: #ff0000;\">\"Edit\"</span>, ES_AUTOHSCROLL|WS_TABSTOP, <span style=\"color: #000000;\">44</span>, <span style=\"color: #000000;\">8</span>, <span style=\"color: #000000;\">176</span>, <span style=\"color: #000000;\">12</span>, WS_EX_STATICEDGE<br /> CONTROL <span style=\"color: #ff0000;\">\"\"</span>, <span style=\"color: #000000;\">110</span>, <span style=\"color: #ff0000;\">\"SysTabControl32\"</span>, WS_TABSTOP, <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">28</span>, <span style=\"color: #000000;\">225</span>, <span style=\"color: #000000;\">99</span><br /><span style=\"color: #000000;\">}</span><br /><br />SUB1 <span style=\"color: #0000ff;\">DIALOG</span> DISCARDABLE <span style=\"color: #000000;\">18</span>, <span style=\"color: #000000;\">18</span>, <span style=\"color: #000000;\">205</span>, <span style=\"color: #000000;\">80</span><br /><span style=\"color: #0000ff;\">STYLE</span> WS_CHILD|DS_3DLOOK<br /><span style=\"color: #000000;\">{</span><br /> CONTROL <span style=\"color: #ff0000;\">\"Valid\"</span>, <span style=\"color: #000000;\">4001</span>, <span style=\"color: #ff0000;\">\"Static\"</span>, SS_CENTERIMAGE|WS_GROUP, <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">32</span>, <span style=\"color: #000000;\">12</span>, WS_EX_STATICEDGE<br /> CONTROL <span style=\"color: #ff0000;\">\"\"</span>, <span style=\"color: #000000;\">21</span>, <span style=\"color: #ff0000;\">\"Edit\"</span>, ES_AUTOHSCROLL|WS_TABSTOP, <span style=\"color: #000000;\">40</span>, <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">136</span>, <span style=\"color: #000000;\">12</span>, WS_EX_STATICEDGE<br /> CONTROL <span style=\"color: #ff0000;\">\"Get\"</span>, <span style=\"color: #000000;\">4003</span>, <span style=\"color: #ff0000;\">\"Static\"</span>, SS_CENTERIMAGE|WS_GROUP, <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">32</span>, <span style=\"color: #000000;\">12</span>, WS_EX_STATICEDGE<br /> CONTROL <span style=\"color: #ff0000;\">\"\"</span>, <span style=\"color: #000000;\">22</span>, <span style=\"color: #ff0000;\">\"Edit\"</span>, ES_AUTOHSCROLL|WS_TABSTOP, <span style=\"color: #000000;\">40</span>, <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">136</span>, <span style=\"color: #000000;\">12</span>, WS_EX_STATICEDGE<br /><span style=\"color: #000000;\">}</span><br /> </div>[/code:2f6xqx53]\n\nNotei que o problema pode estar aqui :\n[code=fw:2f6xqx53]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> GotFocus<span style=\"color: #000000;\">(</span> hWndLoseFocus <span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TFolder<br /><br /> <span style=\"color: #00C800;\">Super</span>:<span style=\"color: #000000;\">GotFocus</span><span style=\"color: #000000;\">(</span> hWndLoseFocus <span style=\"color: #000000;\">)</span><br /> <br /> <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">nOption</span> > <span style=\"color: #000000;\">0</span> .and. ::<span style=\"color: #000000;\">nOption</span> <= Len<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">aDialogs</span> <span style=\"color: #000000;\">)</span><br /> ::<span style=\"color: #000000;\">aDialogs</span><span style=\"color: #000000;\">[</span> ::<span style=\"color: #000000;\">nOption</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AEvalWhen</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> ::<span style=\"color: #000000;\">aDialogs</span><span style=\"color: #000000;\">[</span> ::<span style=\"color: #000000;\">nOption</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #000000;\">0</span><br /> </div>[/code:2f6xqx53]\n\nSe eu Colocar um MsgInfo, o problema se resolve :\n[code=fw:2f6xqx53]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> GotFocus<span style=\"color: #000000;\">(</span> hWndLoseFocus <span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TFolder<br /><br /> <span style=\"color: #00C800;\">Super</span>:<span style=\"color: #000000;\">GotFocus</span><span style=\"color: #000000;\">(</span> hWndLoseFocus <span style=\"color: #000000;\">)</span><br /> <br /> <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">nOption</span> > <span style=\"color: #000000;\">0</span> .and. ::<span style=\"color: #000000;\">nOption</span> <= Len<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">aDialogs</span> <span style=\"color: #000000;\">)</span><br /> ::<span style=\"color: #000000;\">aDialogs</span><span style=\"color: #000000;\">[</span> ::<span style=\"color: #000000;\">nOption</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AEvalWhen</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> ::<span style=\"color: #000000;\">aDialogs</span><span style=\"color: #000000;\">[</span> ::<span style=\"color: #000000;\">nOption</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /> <br /> <span style=\"color: #0000ff;\">msginfo</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Pause\"</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #000000;\">0</span><br /> </div>[/code:2f6xqx53]\n\nQual seria a soluçao Correta ?\n\nSaluds, Ale",
"time": "14:36",
"topic": "BUG, 1º Get + Valid do Folder...",
"username": "Ale SB"
}
] |
BUG, 1º Get + Valid do Folder...
|
[
{
"date": "2012-06-28",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Coloquei Sim Joao.\n\nNeste exemplo Observe q nem Botao tem.\n\nSaluds, Ale",
"time": "14:29",
"topic": "BUG, 1º Get + Valid do Folder...",
"username": "Ale SB"
}
] |
BUG, 1º Get + Valid do Folder...
|
[
{
"date": "2012-06-27",
"forum": "FiveWin para Harbour/xHarbour",
"text": "sin embargo, no hay solución?\n\nSaluds, Ale",
"time": "13:30",
"topic": "BUG, 1º Get + Valid do Folder...",
"username": "Ale SB"
}
] |
BUG, 1º Get + Valid do Folder...
|
[
{
"date": "2012-06-27",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Você colocou o CANCEL UPDATE no Botão de Saida??\n\nExperimente colocar CANCEL UPDATE em todos os botões do DIALOGO do Folder para ver.\n\nAbs,",
"time": "16:57",
"topic": "BUG, 1º Get + Valid do Folder...",
"username": "karinha"
}
] |
BUG, 1º Get + Valid do Folder...
|
[
{
"date": "2013-04-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Here is a little test-program to show the Situation.\n\n[code=fw:olp3k6vu]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">function</span> test<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">local</span> oDlg , oCombo1<br /><br />dbcreate<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"testdb.dbf\"</span>,<span style=\"color: #000000;\">{</span><span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"feld1\"</span>,<span style=\"color: #ff0000;\">\"C\"</span>,<span style=\"color: #000000;\">10</span>,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">}</span><span style=\"color: #000000;\">}</span><span style=\"color: #000000;\">)</span><br />USE<br />USE <span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"testdb.dbf\"</span><span style=\"color: #000000;\">)</span> <span style=\"color: #0000ff;\">ALIAS</span> <span style=\"color: #ff0000;\">\"testdb\"</span> <span style=\"color: #00C800;\">NEW</span> EXCLUSIVE<br />testdb-><span style=\"color: #000000;\">(</span>dbappend<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br />testdb->feld1 := <span style=\"color: #ff0000;\">\"ABCDEFGHIJ\"</span><br />testdb-><span style=\"color: #000000;\">(</span>dbappend<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br />testdb->feld1 := replicate<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"B\"</span>,len<span style=\"color: #000000;\">(</span>testdb->feld1<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br />testdb-><span style=\"color: #000000;\">(</span>dbgotop<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Combobox CBS_DROPDOWN Test\"</span> <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">300</span>,<span style=\"color: #000000;\">300</span> <span style=\"color: #0000ff;\">PIXEL</span><br /><br />@ <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #0000ff;\">COMBOBOX</span> oCombo1 <span style=\"color: #0000ff;\">VAR</span> testdb->feld1 <span style=\"color: #0000ff;\">PROMPTS</span> <span style=\"color: #000000;\">{</span>replicate<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"A\"</span>,len<span style=\"color: #000000;\">(</span>testdb->feld1<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span>,replicate<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"B\"</span>,len<span style=\"color: #000000;\">(</span>testdb->feld1<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">}</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">80</span>,<span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">STYLE</span> CBS_DROPDOWN <span style=\"color: #0000ff;\">UPDATE</span><br /><br />@ <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">\"<\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span>testdb-><span style=\"color: #000000;\">(</span>recno<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span>><span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">(</span>testdb-><span style=\"color: #000000;\">(</span>dbskip<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">-1</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span>,oDlg:<span style=\"color: #0000ff;\">update</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span>,<span style=\"color: #0000ff;\">msginfo</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Begin of DB\"</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br />@ <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">\">\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span>testdb-><span style=\"color: #000000;\">(</span>recno<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><<span style=\"color: #000000;\">2</span>,<span style=\"color: #000000;\">(</span>testdb-><span style=\"color: #000000;\">(</span>dbskip<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span>,oDlg:<span style=\"color: #0000ff;\">update</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span>,<span style=\"color: #0000ff;\">msginfo</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"End of DB\"</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /><br />@ <span style=\"color: #000000;\">6</span>,<span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #ff0000;\">\"1. Go with > to the second record.\"</span>+CRLF+<span style=\"color: #ff0000;\">\"2. Go with < return to the first record\"</span>+CRLF+<span style=\"color: #ff0000;\">\"3. Open the Combobox with the arrow\"</span>+CRLF+CRLF+;<br /> <span style=\"color: #ff0000;\">\"Now you see, that the first record also is 'BBBBBBBBBB'\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">200</span>,<span style=\"color: #000000;\">50</span><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg<br /><br />USE<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span></div>[/code:olp3k6vu]",
"time": "18:18",
"topic": "BUG: COMBOBOX with style CBS_DROPDOWN",
"username": "byte-one"
}
] |
BUG: COMBOBOX with style CBS_DROPDOWN
|
[
{
"date": "2013-04-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "If using such Combobox and skip on a database, a userdefined field-text from a record are changed to the last selected text from the combobox in another record if the Combobox becomes Focus or clicking on the arrow. Also the colors from SetGetColorFocus() not using.",
"time": "13:08",
"topic": "BUG: COMBOBOX with style CBS_DROPDOWN",
"username": "byte-one"
}
] |
BUG: COMBOBOX with style CBS_DROPDOWN
|
[
{
"date": "2013-04-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Gunther\n\nHope this thread helps some ..\n\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=3&t=24915&p=135522&hilit=combobox#p135522\">viewtopic.php?f=3&t=24915&p=135522&hilit=combobox#p135522</a><!-- l -->\n\nAs far as the appearance .. the answer is in the thread above.\n\n[code=fw:1y6mn0ae]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />oCbx:<span style=\"color: #000000;\">oGet</span>:<span style=\"color: #000000;\">SetFont</span><span style=\"color: #000000;\">(</span> oFont <span style=\"color: #000000;\">)</span><br /> </div>[/code:1y6mn0ae]\n\nRick Lipkin",
"time": "14:12",
"topic": "BUG: COMBOBOX with style CBS_DROPDOWN",
"username": "Rick Lipkin"
}
] |
BUG: COMBOBOX with style CBS_DROPDOWN
|
[
{
"date": "2013-04-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thanks Rick, but not the font becomes different, just the free text (as CBS-DROPDOWN made possible to write free text) in [b:3a5xpw9k]this record[/b:3a5xpw9k] becomes (if i open the Combobox) the same value, in [b:3a5xpw9k]another record[/b:3a5xpw9k] was selected from the combobox-list and the free-text is erased.",
"time": "14:37",
"topic": "BUG: COMBOBOX with style CBS_DROPDOWN",
"username": "byte-one"
}
] |
BUG: COMBOBOX with style CBS_DROPDOWN
|
[
{
"date": "2013-04-03",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio, this is very important to me. But i found no solution for this.\n\n[b:qjle2aze]Antonio, i had sent to you a privat E-Mail for updating my FWH but no answer!?[/b:qjle2aze]",
"time": "07:53",
"topic": "BUG: COMBOBOX with style CBS_DROPDOWN",
"username": "byte-one"
}
] |
BUG: COMBOBOX with style CBS_DROPDOWN
|
[
{
"date": "2013-04-03",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Günther,\n\nI have just seen your example and I am going to test it.\n\nI have not received any emails from you, unless gmail move it to the spam folder... (edited: nothing in the spam folder also)\nPlease resend it, thanks",
"time": "13:34",
"topic": "BUG: COMBOBOX with style CBS_DROPDOWN",
"username": "Antonio Linares"
}
] |
BUG: COMBOBOX with style CBS_DROPDOWN
|
[
{
"date": "2013-04-03",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thanks!\nAntonio, i have sent it to <!-- e --><a href=\"mailto:alinares@fivetechsoft.com\">alinares@fivetechsoft.com</a><!-- e -->! I resend it.",
"time": "13:42",
"topic": "BUG: COMBOBOX with style CBS_DROPDOWN",
"username": "byte-one"
}
] |
BUG: COMBOBOX with style CBS_DROPDOWN
|
[
{
"date": "2013-04-03",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Günther,\n\nPlease resend me your email, as I have not received it.\n\nYour example fails because the first value you place in the field does not match any of the values in the combobox. \n\nPlease try your example with some little modifications from me and you will see that it works fine <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\n[code=fw:373stjo5]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">local</span> oDlg , oCombo1<br /><br /> dbcreate<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"testdb.dbf\"</span>,<span style=\"color: #000000;\">{</span><span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"feld1\"</span>,<span style=\"color: #ff0000;\">\"C\"</span>,<span style=\"color: #000000;\">10</span>,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">}</span><span style=\"color: #000000;\">}</span><span style=\"color: #000000;\">)</span><br /> USE<br /> USE <span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"testdb.dbf\"</span><span style=\"color: #000000;\">)</span> <span style=\"color: #0000ff;\">ALIAS</span> <span style=\"color: #ff0000;\">\"testdb\"</span> <span style=\"color: #00C800;\">NEW</span> EXCLUSIVE<br /> testdb-><span style=\"color: #000000;\">(</span>dbappend<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /> testdb->feld1 := replicate<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"A\"</span>, len<span style=\"color: #000000;\">(</span> testdb->feld1 <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// \"ABCDEFGHIJ\"</span><br /> testdb-><span style=\"color: #000000;\">(</span>dbappend<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /> testdb->feld1 := replicate<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"B\"</span>, len<span style=\"color: #000000;\">(</span> testdb->feld1 <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> testdb-><span style=\"color: #000000;\">(</span>dbgotop<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Combobox CBS_DROPDOWN Test\"</span> <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">300</span>,<span style=\"color: #000000;\">300</span> <span style=\"color: #0000ff;\">PIXEL</span><br /><br /> @ <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #0000ff;\">COMBOBOX</span> oCombo1 <span style=\"color: #0000ff;\">VAR</span> testdb->feld1 ;<br /> <span style=\"color: #0000ff;\">PROMPTS</span> <span style=\"color: #000000;\">{</span>replicate<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"A\"</span>,len<span style=\"color: #000000;\">(</span>testdb->feld1<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span>,replicate<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"B\"</span>,len<span style=\"color: #000000;\">(</span>testdb->feld1<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">}</span> ;<br /> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">80</span>, <span style=\"color: #000000;\">40</span> <span style=\"color: #0000ff;\">STYLE</span> CBS_DROPDOWN <span style=\"color: #0000ff;\">UPDATE</span><br /><br /> @ <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">\"<\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br /> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span>testdb-><span style=\"color: #000000;\">(</span>recno<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span>><span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">(</span>testdb-><span style=\"color: #000000;\">(</span>dbskip<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">-1</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span>,oDlg:<span style=\"color: #0000ff;\">update</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span>,<span style=\"color: #0000ff;\">msginfo</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Begin of DB\"</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /> <br /> @ <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">\">\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br /> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span>testdb-><span style=\"color: #000000;\">(</span>recno<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><<span style=\"color: #000000;\">2</span>,<span style=\"color: #000000;\">(</span>testdb-><span style=\"color: #000000;\">(</span>dbskip<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span>,oDlg:<span style=\"color: #0000ff;\">update</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span>,<span style=\"color: #0000ff;\">msginfo</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"End of DB\"</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /><br /> @ <span style=\"color: #000000;\">6</span>,<span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #ff0000;\">\"1. Go with > to the second record.\"</span> + CRLF + ;<br /> <span style=\"color: #ff0000;\">\"2. Go with < return to the first record\"</span> + CRLF + ;<br /> <span style=\"color: #ff0000;\">\"3. Open the Combobox with the arrow\"</span> + CRLF + CRLF + ;<br /> <span style=\"color: #ff0000;\">\"Now you see, that the first record also is 'BBBBBBBBBB'\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">200</span>, <span style=\"color: #000000;\">50</span><br /><br /> <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br /><br /> USE<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span></div>[/code:373stjo5]",
"time": "13:47",
"topic": "BUG: COMBOBOX with style CBS_DROPDOWN",
"username": "Antonio Linares"
}
] |
BUG: COMBOBOX with style CBS_DROPDOWN
|
[
{
"date": "2013-04-03",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Günther,\n\nStill haven't received your email. Please resend it to <!-- e --><a href=\"mailto:antonio.fivetech@gmail.com\">antonio.fivetech@gmail.com</a><!-- e --> thanks <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "13:50",
"topic": "BUG: COMBOBOX with style CBS_DROPDOWN",
"username": "Antonio Linares"
}
] |
BUG: COMBOBOX with style CBS_DROPDOWN
|
[
{
"date": "2013-04-03",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio, i think, style CBS_DROPDOWN lets me also another text to input (as it have a oGet-object), not only text from the list?",
"time": "13:57",
"topic": "BUG: COMBOBOX with style CBS_DROPDOWN",
"username": "byte-one"
}
] |
BUG: COMBOBOX with style CBS_DROPDOWN
|
[
{
"date": "2013-04-03",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Günther,\n\nYes, good observation <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nWith this little change in combobox.prg, your original example works fine:\n\nMETHOD Set( cNewItem ) CLASS TComboBox\n...\n if ValType( cNewItem ) == \"N\" .or. nAt != 0 .and. ::oGet == nil\n...\n\nIncluded for next FWH build",
"time": "15:09",
"topic": "BUG: COMBOBOX with style CBS_DROPDOWN",
"username": "Antonio Linares"
}
] |
BUG: COMBOBOX with style CBS_DROPDOWN
|
[
{
"date": "2013-04-04",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio, this solution is unperfected. Please test this new code with more the 2 records. This shows the problem more exact. And please show that SetGetColorFocus() not functioning on this ::oGet.\n\n[code=fw:1osa8ft0]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">function</span> test<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">local</span> oDlg , oCombo1<br /><br />dbcreate<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"testdb.dbf\"</span>,<span style=\"color: #000000;\">{</span><span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"feld1\"</span>,<span style=\"color: #ff0000;\">\"C\"</span>,<span style=\"color: #000000;\">10</span>,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">}</span><span style=\"color: #000000;\">}</span><span style=\"color: #000000;\">)</span><br />USE<br />USE <span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"testdb.dbf\"</span><span style=\"color: #000000;\">)</span> <span style=\"color: #0000ff;\">ALIAS</span> <span style=\"color: #ff0000;\">\"testdb\"</span> <span style=\"color: #00C800;\">NEW</span> EXCLUSIVE<br />testdb-><span style=\"color: #000000;\">(</span>dbappend<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br />testdb->feld1 := replicate<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"A\"</span>,len<span style=\"color: #000000;\">(</span>testdb->feld1<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br />testdb-><span style=\"color: #000000;\">(</span>dbappend<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br />testdb->feld1 := <span style=\"color: #ff0000;\">\"ABCDEFGHIJ\"</span><br />testdb-><span style=\"color: #000000;\">(</span>dbappend<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br />testdb->feld1 := replicate<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"B\"</span>,len<span style=\"color: #000000;\">(</span>testdb->feld1<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br />testdb-><span style=\"color: #000000;\">(</span>dbgotop<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /><br />SetGetColorFocus<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Combobox CBS_DROPDOWN Test\"</span> <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">300</span>,<span style=\"color: #000000;\">350</span> <span style=\"color: #0000ff;\">PIXEL</span><br /><br />@ <span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">2</span> <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #ff0000;\">\"Recno: \"</span>+alltrim<span style=\"color: #000000;\">(</span>str<span style=\"color: #000000;\">(</span>testdb-><span style=\"color: #000000;\">(</span>recno<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> <span style=\"color: #0000ff;\">UPDATE</span><br /><br />@ <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #0000ff;\">COMBOBOX</span> oCombo1 <span style=\"color: #0000ff;\">VAR</span> testdb->feld1 <span style=\"color: #0000ff;\">PROMPTS</span> <span style=\"color: #000000;\">{</span>replicate<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"A\"</span>,len<span style=\"color: #000000;\">(</span>testdb->feld1<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span>,replicate<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"B\"</span>,len<span style=\"color: #000000;\">(</span>testdb->feld1<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">}</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">80</span>,<span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">STYLE</span> CBS_DROPDOWN <span style=\"color: #0000ff;\">UPDATE</span><br /><br />@ <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">\"<\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span>testdb-><span style=\"color: #000000;\">(</span>recno<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span>><span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">(</span>testdb-><span style=\"color: #000000;\">(</span>dbskip<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">-1</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span>,oDlg:<span style=\"color: #0000ff;\">update</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span>,<span style=\"color: #0000ff;\">msginfo</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Begin of DB\"</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br />@ <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">\">\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">(</span>testdb-><span style=\"color: #000000;\">(</span>recno<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><<span style=\"color: #000000;\">3</span>,<span style=\"color: #000000;\">(</span>testdb-><span style=\"color: #000000;\">(</span>dbskip<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span>,oDlg:<span style=\"color: #0000ff;\">update</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span>,<span style=\"color: #0000ff;\">msginfo</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"End of DB\"</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /><br />@ <span style=\"color: #000000;\">6</span>,<span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #ff0000;\">\"1. Go with > to the second record.\"</span>+CRLF+<span style=\"color: #ff0000;\">\"2. Go with > to the third record\"</span>+CRLF+<span style=\"color: #ff0000;\">\"3. Go with < return to the second record\"</span>+CRLF+<span style=\"color: #ff0000;\">\"4. Open the Combobox with the arrow\"</span>+CRLF+CRLF+;<br /> <span style=\"color: #ff0000;\">\"Now you see, that the second record also is 'AAAAAAAAAA'\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">200</span>,<span style=\"color: #000000;\">50</span><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg<br /><br />USE<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span></div>[/code:1osa8ft0]",
"time": "11:16",
"topic": "BUG: COMBOBOX with style CBS_DROPDOWN",
"username": "byte-one"
}
] |
BUG: COMBOBOX with style CBS_DROPDOWN
|
[
{
"date": "2013-04-04",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Günther,\n\nPlease try this change:\n\n[code=fw:38q0mh9c]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">METHOD</span> LostFocus<span style=\"color: #000000;\">(</span> hWndGetFocus <span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TComboBox<br /><br /> <span style=\"color: #00C800;\">local</span> nAt := ::<span style=\"color: #000000;\">SendMsg</span><span style=\"color: #000000;\">(</span> CB_GETCURSEL <span style=\"color: #000000;\">)</span><br /><br /> ::<span style=\"color: #00C800;\">Super</span>:<span style=\"color: #000000;\">LostFocus</span><span style=\"color: #000000;\">(</span> hWndGetFocus <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">if</span> nAt != CB_ERR<br /> ::<span style=\"color: #000000;\">nAt</span> = nAt + <span style=\"color: #000000;\">1</span><br /> <span style=\"color: #00C800;\">if</span> ValType<span style=\"color: #000000;\">(</span> Eval<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">bSetGet</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> == <span style=\"color: #ff0000;\">\"N\"</span><br /> Eval<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">bSetGet</span>, nAt + <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">else</span><br /> Eval<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">bSetGet</span>, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">oGet</span> == <span style=\"color: #00C800;\">nil</span>, ::<span style=\"color: #000000;\">aItems</span><span style=\"color: #000000;\">[</span> nAt + <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>, ::<span style=\"color: #000000;\">oGet</span>:<span style=\"color: #000000;\">GetText</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /> <span style=\"color: #00C800;\">else</span><br /> Eval<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">bSetGet</span>, GetWindowText<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span></div>[/code:38q0mh9c]",
"time": "17:33",
"topic": "BUG: COMBOBOX with style CBS_DROPDOWN",
"username": "Antonio Linares"
}
] |
BUG: COMBOBOX with style CBS_DROPDOWN
|
[
{
"date": "2013-04-05",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio, now all is OK!!! Thanks. <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> \nOnly a second place in Combobox.prg is also to update:\n\n[code=fw:j1jy8zha]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">METHOD</span> VarGet<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TComboBox<br /><br /> <span style=\"color: #00C800;\">local</span> cRet, nAt := ::<span style=\"color: #000000;\">SendMsg</span><span style=\"color: #000000;\">(</span> CB_GETCURSEL <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">if</span> nAt != CB_ERR<br /> ::<span style=\"color: #000000;\">nAt</span> = nAt + <span style=\"color: #000000;\">1</span><br /> <span style=\"color: #B900B9;\">//cRet := ::aItems[ nAt + 1 ]</span><br /> cRet := <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">oGet</span> == <span style=\"color: #00C800;\">nil</span>, ::<span style=\"color: #000000;\">aItems</span><span style=\"color: #000000;\">[</span> nAt + <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>, ::<span style=\"color: #000000;\">oGet</span>:<span style=\"color: #000000;\">GetText</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span></div>[/code:j1jy8zha]",
"time": "12:09",
"topic": "BUG: COMBOBOX with style CBS_DROPDOWN",
"username": "byte-one"
}
] |
BUG: COMBOBOX with style CBS_DROPDOWN
|
[
{
"date": "2013-04-05",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Günther,\n\nAlready included for the next FWH build, many thanks <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nGreat feedback from you, thanks",
"time": "13:28",
"topic": "BUG: COMBOBOX with style CBS_DROPDOWN",
"username": "Antonio Linares"
}
] |
BUG: COMBOBOX with style CBS_DROPDOWN
|
[
{
"date": "2013-04-05",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio, all FW-users profit from the team!\n\nAnd at least: Please show that SetGetColorFocus() not functioning on this ::oGet.",
"time": "14:15",
"topic": "BUG: COMBOBOX with style CBS_DROPDOWN",
"username": "byte-one"
}
] |
BUG: COMBOBOX with style CBS_DROPDOWN
|
[
{
"date": "2013-04-08",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi Antonio,\nthere are still problem with dropdown combobox.\n\nWhen the dropdown combo hasn't the focus the values displayed is incorrect. See image 1\nOnly if I press the mouse button on the combo the right value appears. See image 2\n\nAny ideas ? \n\nImage 1 [img:16hhb540]http://www.softwarexp.co.uk/beta/image1.png[/img:16hhb540] \nImage 2 [img:16hhb540]http://www.softwarexp.co.uk/beta/image2.png[/img:16hhb540]",
"time": "10:20",
"topic": "BUG: COMBOBOX with style CBS_DROPDOWN",
"username": "Marco Turco"
}
] |
BUG: COMBOBOX with style CBS_DROPDOWN
|
[
{
"date": "2013-04-08",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Marco, has the Combobox clausula \"UPDATE\" ?",
"time": "11:02",
"topic": "BUG: COMBOBOX with style CBS_DROPDOWN",
"username": "byte-one"
}
] |
BUG: COMBOBOX with style CBS_DROPDOWN
|
[
{
"date": "2013-04-08",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Yes of course",
"time": "11:33",
"topic": "BUG: COMBOBOX with style CBS_DROPDOWN",
"username": "Marco Turco"
}
] |
BUG: COMBOBOX with style CBS_DROPDOWN
|
[
{
"date": "2013-04-08",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Can see no problems...!!??",
"time": "12:54",
"topic": "BUG: COMBOBOX with style CBS_DROPDOWN",
"username": "byte-one"
}
] |
BUG: COMBOBOX with style CBS_DROPDOWN
|
[
{
"date": "2013-04-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Marco,\n\nhave you applied the combobox fixes that I have published on this thread ? thanks",
"time": "15:20",
"topic": "BUG: COMBOBOX with style CBS_DROPDOWN",
"username": "Antonio Linares"
}
] |
BUG: COMBOBOX with style CBS_DROPDOWN
|
[
{
"date": "2013-04-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Colin, Marco,\n\nI modified Colin's code this way:\n[code=fw:2o5w4rma]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">METHOD</span> Set<span style=\"color: #000000;\">(</span> cNewItem <span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TComboBox<br /><br /> <span style=\"color: #00C800;\">local</span> nAt<br /><br /> <span style=\"color: #00C800;\">if</span> ValType<span style=\"color: #000000;\">(</span> cNewItem <span style=\"color: #000000;\">)</span> == <span style=\"color: #ff0000;\">\"N\"</span><br /> nAt = cNewItem<br /> <span style=\"color: #00C800;\">if</span> nAt == <span style=\"color: #000000;\">0</span><br /> nAt = <span style=\"color: #000000;\">1</span><br /> <span style=\"color: #00C800;\">endif</span><br /> <span style=\"color: #00C800;\">else</span><br /> nAt = AScan<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">aItems</span>,;<br /> <span style=\"color: #000000;\">{</span> | cItem | Upper<span style=\"color: #000000;\">(</span> AllTrim<span style=\"color: #000000;\">(</span> cItem <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> == ;<br /> Upper<span style=\"color: #000000;\">(</span> AllTrim<span style=\"color: #000000;\">(</span> cNewItem <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /><br /> <span style=\"color: #00C800;\">if</span> ValType<span style=\"color: #000000;\">(</span> cNewItem <span style=\"color: #000000;\">)</span> == <span style=\"color: #ff0000;\">\"N\"</span> .or. nAt != <span style=\"color: #000000;\">0</span> .and. ::<span style=\"color: #000000;\">oGet</span> == <span style=\"color: #00C800;\">nil</span><br /> ::<span style=\"color: #0000ff;\">Select</span><span style=\"color: #000000;\">(</span> nAt <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">else</span><br /> cNewItem := cValToChar<span style=\"color: #000000;\">(</span> cNewItem <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /><br /> Eval<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">bSetGet</span>, cNewItem <span style=\"color: #000000;\">)</span><br /> SetWindowText<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hWnd</span> , cNewItem <span style=\"color: #000000;\">)</span><br /> <br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /> </div>[/code:2o5w4rma]\n\nIncluded for the next FWH build, thanks! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "11:10",
"topic": "BUG: COMBOBOX with style CBS_DROPDOWN",
"username": "Antonio Linares"
}
] |
BUG: COMBOBOX with style CBS_DROPDOWN
|
[
{
"date": "2013-04-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi Colin,\nsolved with your code. Thank you very much.\n\nAntonio, could you pls.add the Colin's fix to the next FWH release ? Thank you.",
"time": "09:59",
"topic": "BUG: COMBOBOX with style CBS_DROPDOWN",
"username": "Marco Turco"
}
] |
BUG: COMBOBOX with style CBS_DROPDOWN
|
[
{
"date": "2013-04-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Yes, I'll try to prepare a self-contained sample to show you the problem asap. Thanks",
"time": "22:03",
"topic": "BUG: COMBOBOX with style CBS_DROPDOWN",
"username": "Marco Turco"
}
] |
BUG: COMBOBOX with style CBS_DROPDOWN
|
[
{
"date": "2013-04-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi Marco\n\nI had the same problem with comboboxes - not showing the correct value\n\n[code=fw:3sem908j]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">METHOD</span> Set<span style=\"color: #000000;\">(</span> cNewItem <span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TComboBox<br /><br /> <span style=\"color: #00C800;\">local</span> nAt<br /> <br /> <span style=\"color: #00C800;\">if</span> ValType<span style=\"color: #000000;\">(</span> cNewItem <span style=\"color: #000000;\">)</span> == <span style=\"color: #ff0000;\">\"N\"</span><br /> nAt = cNewItem<br /> <span style=\"color: #00C800;\">if</span> nAt == <span style=\"color: #000000;\">0</span><br /> nAt = <span style=\"color: #000000;\">1</span><br /> <span style=\"color: #00C800;\">endif</span><br /> <span style=\"color: #00C800;\">else</span><br /> nAt = AScan<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">aItems</span>,;<br /> <span style=\"color: #000000;\">{</span> | cItem | Upper<span style=\"color: #000000;\">(</span> AllTrim<span style=\"color: #000000;\">(</span> cItem <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> == ;<br /> Upper<span style=\"color: #000000;\">(</span> AllTrim<span style=\"color: #000000;\">(</span> cNewItem <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /> <span style=\"color: #00C800;\">if</span> ValType<span style=\"color: #000000;\">(</span> cNewItem <span style=\"color: #000000;\">)</span> == <span style=\"color: #ff0000;\">\"N\"</span> .or. nAt != <span style=\"color: #000000;\">0</span><br /> ::<span style=\"color: #0000ff;\">Select</span><span style=\"color: #000000;\">(</span> nAt <span style=\"color: #000000;\">)</span><br /> Eval<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">bSetGet</span>, cNewItem <span style=\"color: #000000;\">)</span><br /> SetWindowText<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hWnd</span> , cNewItem <span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// added this line </span><br /> <span style=\"color: #00C800;\">else</span><br /> cNewItem := cValToChar<span style=\"color: #000000;\">(</span> cNewItem <span style=\"color: #000000;\">)</span><br /> Eval<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">bSetGet</span>, cNewItem <span style=\"color: #000000;\">)</span><br /> SetWindowText<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hWnd</span> , cNewItem <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /> </div>[/code:3sem908j]\n\nHope this helps\n\nCheers\n\nColin",
"time": "23:31",
"topic": "BUG: COMBOBOX with style CBS_DROPDOWN",
"username": "Colin Haig"
}
] |
BUG: COMBOBOX with style CBS_DROPDOWN
|
[
{
"date": "2013-04-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio, with the last changes \"COMBOBOX from code\" is now ok but on \"REDEFINE COMBOBOX\" the ::oGet is created in all cases (tested with a characterlist) also on pure CBS_DROPDOWNLIST.\nI found the [code=fw:33u2wnnn]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">if</span> lAnd<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">nStyle</span>, CBS_DROPDOWN <span style=\"color: #000000;\">)</span></div>[/code:33u2wnnn] is not correct!? \nlAnd(2,3) == .T.\nlAnd(3,2) == .T.\n[b:33u2wnnn]What function can i use to gain the information from the RC-file that a Combobox is style CBS_DROPDOWN or CBS_DROPDOWNLIST ???[/b:33u2wnnn]\nI have tested\n[code=fw:33u2wnnn]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">if</span> !lAnd<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">nStyle</span>, CBS_DROPDOWNLIST <span style=\"color: #000000;\">)</span></div>[/code:33u2wnnn]\nand it seems functioning. But sideeffects must check Antonio.\n\nThis block of code in ::new is to transfer in ::init (parts are already in ::init)\n [code=fw:33u2wnnn]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">oGet</span> != <span style=\"color: #00C800;\">nil</span><br /> ::<span style=\"color: #000000;\">oGet</span>:<span style=\"color: #000000;\">hWnd</span> = GetWindow<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hWnd</span>, GW_CHILD <span style=\"color: #000000;\">)</span><br /> ::<span style=\"color: #000000;\">oGet</span>:<span style=\"color: #000000;\">Link</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> ::<span style=\"color: #000000;\">oGet</span>:<span style=\"color: #000000;\">bLostFocus</span> = ;<br /> <span style=\"color: #000000;\">{</span>| hCtlFocus, nAt, cItem| cItem := GetWindowText<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">)</span>, ;<br /> nAt := ::<span style=\"color: #000000;\">SendMsg</span><span style=\"color: #000000;\">(</span> CB_FINDSTRING, <span style=\"color: #000000;\">0</span>, Trim<span style=\"color: #000000;\">(</span> cItem <span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> + <span style=\"color: #000000;\">1</span>,;<br /> Eval<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">bSetGet</span>, cItem <span style=\"color: #000000;\">)</span>,;<br /> ::<span style=\"color: #0000ff;\">Select</span><span style=\"color: #000000;\">(</span> nAt <span style=\"color: #000000;\">)</span>,;<br /> SetWindowText<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hWnd</span>, cItem <span style=\"color: #000000;\">)</span>,;<br /> <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">bValid</span> != <span style=\"color: #00C800;\">nil</span> .and. ;<br /> GetParent<span style=\"color: #000000;\">(</span> hCtlFocus <span style=\"color: #000000;\">)</span> == GetParent<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">)</span>,;<br /> <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ! Eval<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">bValid</span>, ::<span style=\"color: #000000;\">oGet</span>, <span style=\"color: #00C800;\">Self</span> <span style=\"color: #000000;\">)</span>,;<br /> ::<span style=\"color: #000000;\">PostMsg</span><span style=\"color: #000000;\">(</span> WM_SETFOCUS <span style=\"color: #000000;\">)</span>,<span style=\"color: #000000;\">)</span>,<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span><br /> ::<span style=\"color: #000000;\">oGet</span>:<span style=\"color: #000000;\">SetFont</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">oFont</span> <span style=\"color: #000000;\">)</span><br /> ::<span style=\"color: #000000;\">oGet</span>:<span style=\"color: #000000;\">bKeyChar</span> = <span style=\"color: #000000;\">{</span> | nKey | <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span> nKey == VK_TAB .and. ! GetKeyState<span style=\"color: #000000;\">(</span> VK_SHIFT <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> .or. ;<br /> nKey == VK_RETURN,;<br /> <span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">GoNextCtrl</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">)</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span>,;<br /> <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> nKey == VK_TAB .and. GetKeyState<span style=\"color: #000000;\">(</span> VK_SHIFT <span style=\"color: #000000;\">)</span>,;<br /> <span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">GoPrevCtrl</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">)</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span>,<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #00C800;\">endif</span></div>[/code:33u2wnnn]\n\nThis code from ::redefine is in this case not required\n [code=fw:33u2wnnn]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> ::<span style=\"color: #000000;\">oGet</span>:<span style=\"color: #000000;\">bKeyChar</span> = <span style=\"color: #000000;\">{</span> | nKey | <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span> nKey == VK_TAB .and. ! GetKeyState<span style=\"color: #000000;\">(</span> VK_SHIFT <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> .or. ;<br /> nKey == VK_RETURN,;<br /> <span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">GoNextCtrl</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">)</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span>,;<br /> <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> nKey == VK_TAB .and. GetKeyState<span style=\"color: #000000;\">(</span> VK_SHIFT <span style=\"color: #000000;\">)</span>,;<br /> <span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">GoPrevCtrl</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">)</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span>,<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span></div>[/code:33u2wnnn]",
"time": "20:37",
"topic": "BUG: COMBOBOX with style CBS_DROPDOWN",
"username": "byte-one"
}
] |
BUG: COMBOBOX with style CBS_DROPDOWN
|
[
{
"date": "2013-04-14",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio, please check my last post.\nWhat function can i (we) use to gain the information from the RC-file that a Combobox has a decidedly style ???",
"time": "20:02",
"topic": "BUG: COMBOBOX with style CBS_DROPDOWN",
"username": "byte-one"
}
] |
BUG: COMBOBOX with style CBS_DROPDOWN
|
[
{
"date": "2013-04-14",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Günther,\n\nSee these defines:\n\n#define CBS_DROPDOWN 0x0002\n#define CBS_DROPDOWNLIST 0x0003\n\nSo you could use:\n\nnAnd( GetWindowLong( ::hWnd, GWL_STYLE ), CBS_DROPDOWNLIST ) == CBS_DROPDOWNLIST\n\nDon't use CBS_DROPDOWN in the above line, because CBS_DROPDOWN is contained in CBS_DROPDOWNLIST:\n\nCBS_DROPDOWN ==> 0000 0010\nCBS_DROPDOWNLIST ==> 000 0011",
"time": "22:40",
"topic": "BUG: COMBOBOX with style CBS_DROPDOWN",
"username": "Antonio Linares"
}
] |
BUG: COMBOBOX with style CBS_DROPDOWN
|
[
{
"date": "2013-04-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "From what moment on i can use GetWindowLong( ::hWnd, GWL_STYLE )->(::hWnd is existent)? Can we transfer the definition from the ::oGet in method init()?",
"time": "10:15",
"topic": "BUG: COMBOBOX with style CBS_DROPDOWN",
"username": "byte-one"
}
] |
BUG: COMBOBOX with style CBS_DROPDOWN
|
[
{
"date": "2013-04-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Günther,\n\nFrom this moment on:\n\n::Create( \"COMBOBOX\" ) // Method New()\n\nthe control has been created and ::hWnd should be valid.",
"time": "11:09",
"topic": "BUG: COMBOBOX with style CBS_DROPDOWN",
"username": "Antonio Linares"
}
] |
BUG: COMBOBOX with style CBS_DROPDOWN
|
[
{
"date": "2013-04-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "When the Method Initiate() is invoked, the control already exists and ::hWnd should be valid too <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "11:10",
"topic": "BUG: COMBOBOX with style CBS_DROPDOWN",
"username": "Antonio Linares"
}
] |
BUG: COMBOBOX with style CBS_DROPDOWN
|
[
{
"date": "2013-04-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio, i had sent to your private email the Combobox.prg with all my changes. Additional please note this points:\n1.) SetFocusColor() is not activ\n2.) Picture-clausula should also represented on the Combobox, not only while editing.",
"time": "16:53",
"topic": "BUG: COMBOBOX with style CBS_DROPDOWN",
"username": "byte-one"
}
] |
BUG: COMBOBOX with style CBS_DROPDOWN
|
[
{
"date": "2013-04-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio\n\nI have been watching this thread with interest .. One behavior that I have not seen discussed with CBS_DROPDOWN is the incremental search.\n\nI like the fact that you can enter any text into the CBS_DROPDOWN and and the field accepts that text .. however ( as in my screenshot ) the incremental search does not activate like CBS_DROPDOWNLIST. ( fwh1203 )\n\n[url=http://imageshack.us/photo/my-images/195/combo1m.jpg/:rprgsnpn][img:rprgsnpn]http://img195.imageshack.us/img195/7000/combo1m.jpg[/img:rprgsnpn][/url:rprgsnpn]\n\nI was hoping while you were looking at the Combobox code you might have a look at making the CBS_DROPDOWN behavior match the CBS_DROPDOWNLIST when you begin typing activating the incremental search.... I did not see that addressed in this thread and that feature may have been fixed since FWH1203 ?\n\nThanks\nRick Lipkin",
"time": "17:25",
"topic": "BUG: COMBOBOX with style CBS_DROPDOWN",
"username": "Rick Lipkin"
}
] |
BUG: COMBOBOX with style CBS_DROPDOWN
|
[
{
"date": "2013-04-16",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Rick,\n\nIf we take FWH/samples/combos.prg as a reference, there are three combos. Which combo behavior is the right for you ? thanks <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "16:59",
"topic": "BUG: COMBOBOX with style CBS_DROPDOWN",
"username": "Antonio Linares"
}
] |
BUG: COMBOBOX with style CBS_DROPDOWN
|
[
{
"date": "2013-04-16",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio\n\nCombobox 2 ( cbs_dropdown ) does not search the array when you type in a value. In the screenshot .. I typed in the letter \"T\" into the CBS_Dropdown and T in the third combobox ( cbs_DropdownList) .. as you can see .. the behavior is quite different.\n\nIf the second combobox can incrementally seek the typed value .. I would be most pleased. It appears this code fails in my example.\n\nThanks\nRick Lipkin\n\n[code=fw:ivtmxjr2]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">COMBOBOX</span> oCbx2 <span style=\"color: #0000ff;\">VAR</span> cItem2 <span style=\"color: #0000ff;\">ITEMS</span> <span style=\"color: #000000;\">{</span> <span style=\"color: #ff0000;\">\"One\"</span>, <span style=\"color: #ff0000;\">\"Two\"</span>, <span style=\"color: #ff0000;\">\"Three\"</span> <span style=\"color: #000000;\">}</span> ;<br /> <span style=\"color: #0000ff;\">ID</span> ID_DROPDOWN <span style=\"color: #0000ff;\">OF</span> oDlg ;<br /> <span style=\"color: #0000ff;\">STYLE</span> CBS_DROPDOWN ;<br /> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">CHANGE</span> <span style=\"color: #000000;\">(</span> cItem4 := cItem2, oSay:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> ;<br /> <span style=\"color: #0000ff;\">VALID</span> <span style=\"color: #000000;\">(</span> <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ! oCbx2:<span style=\"color: #000000;\">Find</span><span style=\"color: #000000;\">(</span> oCbx2:<span style=\"color: #000000;\">oGet</span>:<span style=\"color: #000000;\">GetText</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>,;<br /> oCbx2:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">(</span> oCbx2:<span style=\"color: #000000;\">oGet</span>:<span style=\"color: #000000;\">GetText</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>,<span style=\"color: #000000;\">)</span>, .t. <span style=\"color: #000000;\">)</span><br /> <br /> oCbx2:<span style=\"color: #000000;\">oGet</span>:<span style=\"color: #000000;\">bKeyDown</span> = <span style=\"color: #000000;\">{</span> | nKey | SearchItem<span style=\"color: #000000;\">(</span> nKey, oCbx2 <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span> <span style=\"color: #B900B9;\">// fails to find</span><br /> </div>[/code:ivtmxjr2]\n\n[url=http://imageshack.us/photo/my-images/849/combos1.jpg/:ivtmxjr2][img:ivtmxjr2]http://img849.imageshack.us/img849/8795/combos1.jpg[/img:ivtmxjr2][/url:ivtmxjr2]",
"time": "17:48",
"topic": "BUG: COMBOBOX with style CBS_DROPDOWN",
"username": "Rick Lipkin"
}
] |
BUG: COMBOBOX with style CBS_DROPDOWN
|
[
{
"date": "2013-04-23",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio ..\n\nJust wanted to see if you had a chance to look at my results from the previous post?\n\nMany Thanks!\nRick Lipkin",
"time": "13:50",
"topic": "BUG: COMBOBOX with style CBS_DROPDOWN",
"username": "Rick Lipkin"
}
] |
BUG: COMBOBOX with style CBS_DROPDOWN
|
[
{
"date": "2013-04-23",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Rick,\n\nI missed your previous post, don't know why, sorry <!-- s:-( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":-(\" title=\"Sad\" /><!-- s:-( -->\n\nI am going to review your comments, thanks",
"time": "16:17",
"topic": "BUG: COMBOBOX with style CBS_DROPDOWN",
"username": "Antonio Linares"
}
] |
BUG: COMBOBOX with style CBS_DROPDOWN
|
[
{
"date": "2013-04-23",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Rick,\n\nI have been doing some quick tests on combos.prg to see whats going on. I have not finished it yet, but this example helps to trace whats going on:\n\nmodified combos.prg\n[code=fw:1honttgn]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #B900B9;\">// Showing the use of different styles of ComboBoxes controls</span><br /><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"Combos.ch\"</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">local</span> oDlg, oSay<br /> <span style=\"color: #00C800;\">local</span> oCbx1, oCbx2, oCbx3<br /> <span style=\"color: #00C800;\">local</span> cItem1, cItem2 := <span style=\"color: #ff0000;\">\"One\"</span>, cItem3, cItem4 := <span style=\"color: #ff0000;\">\"None\"</span><br /><br /> SET _3DLOOK <span style=\"color: #0000ff;\">ON</span><br /><br /> <span style=\"color: #B900B9;\">// SkinButtons()</span><br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"Combos\"</span><br /><br /> <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">COMBOBOX</span> oCbx1 <span style=\"color: #0000ff;\">VAR</span> cItem1 <span style=\"color: #0000ff;\">ITEMS</span> <span style=\"color: #000000;\">{</span> <span style=\"color: #ff0000;\">\"One\"</span>, <span style=\"color: #ff0000;\">\"Two\"</span>, <span style=\"color: #ff0000;\">\"Three\"</span> <span style=\"color: #000000;\">}</span> ;<br /> <span style=\"color: #0000ff;\">ID</span> ID_SIMPLE <span style=\"color: #0000ff;\">OF</span> oDlg ;<br /> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">CHANGE</span> <span style=\"color: #000000;\">(</span> cItem4 := cItem1, oSay:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> ;<br /> <span style=\"color: #0000ff;\">VALID</span> <span style=\"color: #000000;\">(</span> cItem4 := cItem1, oSay:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, .t. <span style=\"color: #000000;\">)</span><br /> <br /> <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">COMBOBOX</span> oCbx2 <span style=\"color: #0000ff;\">VAR</span> cItem2 <span style=\"color: #0000ff;\">ITEMS</span> <span style=\"color: #000000;\">{</span> <span style=\"color: #ff0000;\">\"One\"</span>, <span style=\"color: #ff0000;\">\"Two\"</span>, <span style=\"color: #ff0000;\">\"Three\"</span> <span style=\"color: #000000;\">}</span> ;<br /> <span style=\"color: #0000ff;\">ID</span> ID_DROPDOWN <span style=\"color: #0000ff;\">OF</span> oDlg ;<br /> <span style=\"color: #0000ff;\">STYLE</span> CBS_DROPDOWN ;<br /> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">CHANGE</span> <span style=\"color: #000000;\">(</span> cItem4 := cItem2, oSay:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> ;<br /> <span style=\"color: #B900B9;\">// VALID ( If( ! oCbx2:Find( oCbx2:oGet:GetText() ),;</span><br /> <span style=\"color: #B900B9;\">// oCbx2:Add( oCbx2:oGet:GetText() ),), .t. )</span><br /> <br /> oCbx2:<span style=\"color: #000000;\">oGet</span>:<span style=\"color: #000000;\">bKeyChar</span> = <span style=\"color: #000000;\">{</span> | nKey | SearchItem<span style=\"color: #000000;\">(</span> nKey, oCbx2 <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span><br /> <br /> <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">COMBOBOX</span> oCbx3 <span style=\"color: #0000ff;\">VAR</span> cItem3 <span style=\"color: #0000ff;\">ITEMS</span> <span style=\"color: #000000;\">{</span> <span style=\"color: #ff0000;\">\"One\"</span>, <span style=\"color: #ff0000;\">\"Two\"</span>, <span style=\"color: #ff0000;\">\"Three\"</span> <span style=\"color: #000000;\">}</span> ;<br /> <span style=\"color: #0000ff;\">ID</span> ID_DROPDOWNLIST <span style=\"color: #0000ff;\">OF</span> oDlg ;<br /> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">CHANGE</span> <span style=\"color: #000000;\">(</span> cItem4 := cItem3, oSay:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> ;<br /> <span style=\"color: #0000ff;\">VALID</span> <span style=\"color: #000000;\">(</span> cItem4 := cItem3, oSay:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, .t. <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">SAY</span> oSay <span style=\"color: #0000ff;\">PROMPT</span> cItem4 <span style=\"color: #0000ff;\">ID</span> ID_SELECTION <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">COLOR</span> <span style=\"color: #ff0000;\">\"R+/W\"</span><br /><br /> <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">function</span> SearchItem<span style=\"color: #000000;\">(</span> nKey, oCbx <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">local</span> nAt, cText<br /><br /> <span style=\"color: #00C800;\">if</span> ! Empty<span style=\"color: #000000;\">(</span> oCbx:<span style=\"color: #000000;\">oGet</span>:<span style=\"color: #000000;\">GetText</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> oCbx:<span style=\"color: #000000;\">oGet</span>:<span style=\"color: #000000;\">oGet</span>:<span style=\"color: #000000;\">Insert</span><span style=\"color: #000000;\">(</span> Chr<span style=\"color: #000000;\">(</span> nKey <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> cText = AllTrim<span style=\"color: #000000;\">(</span> oCbx:<span style=\"color: #000000;\">oGet</span>:<span style=\"color: #000000;\">oGet</span>:<span style=\"color: #000000;\">buffer</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span> nAt := AScan<span style=\"color: #000000;\">(</span> oCbx:<span style=\"color: #000000;\">aItems</span>, <span style=\"color: #000000;\">{</span> | c | Upper<span style=\"color: #000000;\">(</span> <span style=\"color: #0000ff;\">Left</span><span style=\"color: #000000;\">(</span> c, Len<span style=\"color: #000000;\">(</span> cText <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> == ;<br /> Upper<span style=\"color: #000000;\">(</span> cText <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> != <span style=\"color: #000000;\">0</span><br /> MsgBeep<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> oCbx:<span style=\"color: #000000;\">oGet</span>:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">(</span> oCbx:<span style=\"color: #000000;\">aItems</span><span style=\"color: #000000;\">[</span> nAt <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #000000;\">0</span><br /> <span style=\"color: #00C800;\">endif</span><br /> <span style=\"color: #00C800;\">endif</span><br /> <br /><span style=\"color: #00C800;\">return</span> nKey <br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span></div>[/code:1honttgn]",
"time": "17:34",
"topic": "BUG: COMBOBOX with style CBS_DROPDOWN",
"username": "Antonio Linares"
}
] |
BUG: COMBOBOX with style CBS_DROPDOWN
|
[
{
"date": "2013-04-23",
"forum": "FiveWin for Harbour/xHarbour",
"text": "This version behaves better:\n\n[code=fw:1by8gz7r]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">function</span> SearchItem<span style=\"color: #000000;\">(</span> nKey, oCbx <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">local</span> nAt, cText<br /><br /> <span style=\"color: #00C800;\">if</span> nKey >= <span style=\"color: #0000ff;\">Asc</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"a\"</span> <span style=\"color: #000000;\">)</span> .and. nKey >= <span style=\"color: #0000ff;\">Asc</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Z\"</span> <span style=\"color: #000000;\">)</span><br /> oCbx:<span style=\"color: #000000;\">oGet</span>:<span style=\"color: #000000;\">oGet</span>:<span style=\"color: #000000;\">Insert</span><span style=\"color: #000000;\">(</span> Chr<span style=\"color: #000000;\">(</span> nKey <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> cText = AllTrim<span style=\"color: #000000;\">(</span> oCbx:<span style=\"color: #000000;\">oGet</span>:<span style=\"color: #000000;\">oGet</span>:<span style=\"color: #000000;\">buffer</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span> nAt := AScan<span style=\"color: #000000;\">(</span> oCbx:<span style=\"color: #000000;\">aItems</span>, <span style=\"color: #000000;\">{</span> | c | Upper<span style=\"color: #000000;\">(</span> <span style=\"color: #0000ff;\">Left</span><span style=\"color: #000000;\">(</span> c, Len<span style=\"color: #000000;\">(</span> cText <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> == ;<br /> Upper<span style=\"color: #000000;\">(</span> cText <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> != <span style=\"color: #000000;\">0</span><br /> MsgBeep<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> oCbx:<span style=\"color: #000000;\">oGet</span>:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">(</span> oCbx:<span style=\"color: #000000;\">aItems</span><span style=\"color: #000000;\">[</span> nAt <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #000000;\">0</span><br /> <span style=\"color: #00C800;\">endif</span><br /> <span style=\"color: #00C800;\">endif</span><br /> <br /><span style=\"color: #00C800;\">return</span> nKey <br /> </div>[/code:1by8gz7r]",
"time": "17:39",
"topic": "BUG: COMBOBOX with style CBS_DROPDOWN",
"username": "Antonio Linares"
}
] |
BUG: COMBOBOX with style CBS_DROPDOWN
|
[
{
"date": "2013-04-23",
"forum": "FiveWin for Harbour/xHarbour",
"text": "An enhanced version:\n\n[code=fw:2jzsy78d]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">function</span> SearchItem<span style=\"color: #000000;\">(</span> nKey, oCbx <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">local</span> nAt, cText<br /><br /> <span style=\"color: #00C800;\">if</span> nKey >= <span style=\"color: #0000ff;\">Asc</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"a\"</span> <span style=\"color: #000000;\">)</span> .and. nKey >= <span style=\"color: #0000ff;\">Asc</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Z\"</span> <span style=\"color: #000000;\">)</span><br /> oCbx:<span style=\"color: #000000;\">oGet</span>:<span style=\"color: #000000;\">oGet</span>:<span style=\"color: #000000;\">Insert</span><span style=\"color: #000000;\">(</span> Chr<span style=\"color: #000000;\">(</span> nKey <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> cText = AllTrim<span style=\"color: #000000;\">(</span> oCbx:<span style=\"color: #000000;\">oGet</span>:<span style=\"color: #000000;\">oGet</span>:<span style=\"color: #000000;\">buffer</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span> nAt := AScan<span style=\"color: #000000;\">(</span> oCbx:<span style=\"color: #000000;\">aItems</span>, <span style=\"color: #000000;\">{</span> | c | Upper<span style=\"color: #000000;\">(</span> <span style=\"color: #0000ff;\">Left</span><span style=\"color: #000000;\">(</span> c, Len<span style=\"color: #000000;\">(</span> cText <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> == ;<br /> Upper<span style=\"color: #000000;\">(</span> cText <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> != <span style=\"color: #000000;\">0</span><br /> MsgBeep<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> oCbx:<span style=\"color: #000000;\">oGet</span>:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">(</span> oCbx:<span style=\"color: #000000;\">aItems</span><span style=\"color: #000000;\">[</span> nAt <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /> oCbx:<span style=\"color: #000000;\">oGet</span>:<span style=\"color: #000000;\">SetPos</span><span style=\"color: #000000;\">(</span> oCbx:<span style=\"color: #000000;\">oGet</span>:<span style=\"color: #000000;\">oGet</span>:<span style=\"color: #000000;\">pos</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #000000;\">0</span><br /> <span style=\"color: #00C800;\">endif</span><br /> <span style=\"color: #00C800;\">endif</span><br /> <br /><span style=\"color: #00C800;\">return</span> nKey</div>[/code:2jzsy78d]",
"time": "17:44",
"topic": "BUG: COMBOBOX with style CBS_DROPDOWN",
"username": "Antonio Linares"
}
] |
BUG: COMBOBOX with style CBS_DROPDOWN
|
[
{
"date": "2013-04-23",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio\n\nIt appears to be working .. however, now that it incrementally finds \"One\", \"Two\" or \"Three\" .. if the search finds a match, it does not allow you to keep adding letters for a user defined entry.\n\nI think you are VERY CLOSE!! <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> \n\nRick Lipkin",
"time": "18:02",
"topic": "BUG: COMBOBOX with style CBS_DROPDOWN",
"username": "Rick Lipkin"
}
] |
BUG: COMBOBOX with style CBS_DROPDOWN
|
[
{
"date": "2013-04-23",
"forum": "FiveWin for Harbour/xHarbour",
"text": "If we find a way to increase the size (of the internal buffer) of a Clipper's GET then we may be able to have it too... <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "18:59",
"topic": "BUG: COMBOBOX with style CBS_DROPDOWN",
"username": "Antonio Linares"
}
] |
BUG: COMBOBOX with style CBS_DROPDOWN
|
[
{
"date": "2013-04-23",
"forum": "FiveWin for Harbour/xHarbour",
"text": "A quick workaround would be to use wider items:\n\n[code=fw:24oo6qlh]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #000000;\">{</span> <span style=\"color: #ff0000;\">\"one \"</span>, <span style=\"color: #ff0000;\">\"two \"</span>, <span style=\"color: #ff0000;\">\"three \"</span> <span style=\"color: #000000;\">}</span></div>[/code:24oo6qlh]\n\nI am trying to change the size of the Clipper GET without success yet...",
"time": "19:25",
"topic": "BUG: COMBOBOX with style CBS_DROPDOWN",
"username": "Antonio Linares"
}
] |
BUG: COMBOBOX with style CBS_DROPDOWN
|
[
{
"date": "2013-04-23",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio\n\nThats fine .. generally I build my arrays on the length of the field anyway .. Do I need to include the SearchItem function in my code or is that something that can be added to your FWH Libs?\n\nThanks\nRick Lipkin",
"time": "20:04",
"topic": "BUG: COMBOBOX with style CBS_DROPDOWN",
"username": "Rick Lipkin"
}
] |
BUG: COMBOBOX with style CBS_DROPDOWN
|
[
{
"date": "2013-04-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Rick,\n\nWe should place it inside Class TComboBox so there is no need to modify your sources\n\n::oGet:bKeyChar is already used from the Class, so we need to implement a new method:\n\n[code=fw:hbspkjpf]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">METHOD</span> GetKeyChar<span style=\"color: #000000;\">(</span> nKey <span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TComboBox<br /><br /> <span style=\"color: #00C800;\">local</span> nAt, cText<br /><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span> nKey == VK_TAB .and. ! GetKeyState<span style=\"color: #000000;\">(</span> VK_SHIFT <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> .or. nKey == VK_RETURN<br /> ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">GoNextCtrl</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #000000;\">0</span><br /> <span style=\"color: #00C800;\">else</span> <br /> <span style=\"color: #00C800;\">if</span> nKey == VK_TAB .and. GetKeyState<span style=\"color: #000000;\">(</span> VK_SHIFT <span style=\"color: #000000;\">)</span><br /> ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">GoPrevCtrl</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #000000;\">0</span><br /> <span style=\"color: #00C800;\">endif</span><br /> <span style=\"color: #00C800;\">endif</span><br /> <br /> <span style=\"color: #00C800;\">if</span> nKey >= <span style=\"color: #0000ff;\">Asc</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"a\"</span> <span style=\"color: #000000;\">)</span> .and. nKey >= <span style=\"color: #0000ff;\">Asc</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Z\"</span> <span style=\"color: #000000;\">)</span><br /> ::<span style=\"color: #000000;\">oGet</span>:<span style=\"color: #000000;\">oGet</span>:<span style=\"color: #000000;\">Insert</span><span style=\"color: #000000;\">(</span> Chr<span style=\"color: #000000;\">(</span> nKey <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> cText = AllTrim<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">oGet</span>:<span style=\"color: #000000;\">oGet</span>:<span style=\"color: #000000;\">buffer</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span> nAt := AScan<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">aItems</span>, <span style=\"color: #000000;\">{</span> | c | Upper<span style=\"color: #000000;\">(</span> <span style=\"color: #0000ff;\">Left</span><span style=\"color: #000000;\">(</span> c, Len<span style=\"color: #000000;\">(</span> cText <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> == ;<br /> Upper<span style=\"color: #000000;\">(</span> cText <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> != <span style=\"color: #000000;\">0</span><br /> MsgBeep<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> ::<span style=\"color: #000000;\">oGet</span>:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">aItems</span><span style=\"color: #000000;\">[</span> nAt <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /> ::<span style=\"color: #000000;\">oGet</span>:<span style=\"color: #000000;\">SetPos</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">oGet</span>:<span style=\"color: #000000;\">oGet</span>:<span style=\"color: #000000;\">pos</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #000000;\">0</span><br /> <span style=\"color: #00C800;\">endif</span><br /> <span style=\"color: #00C800;\">endif</span><br /> <br /><span style=\"color: #00C800;\">return</span> nKey <br /> </div>[/code:hbspkjpf]\n\nand in the two places where bKeyChar is used in the class, change them to this:\n\n::oGet:bKeyChar = { | nKey | ::GetKeyChar( nKey ) }",
"time": "08:48",
"topic": "BUG: COMBOBOX with style CBS_DROPDOWN",
"username": "Antonio Linares"
}
] |
BUG: COMBOBOX with style CBS_DROPDOWN
|
[
{
"date": "2013-04-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antiono\n\nThank you very much! .. it is about time for me to start up my FTDN subscription .. I appreciate your expertise and Help.\n\nRick Lipkin",
"time": "13:34",
"topic": "BUG: COMBOBOX with style CBS_DROPDOWN",
"username": "Rick Lipkin"
}
] |
BUG: COMBOBOX with style CBS_DROPDOWN
|
[
{
"date": "2019-12-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi,\n\nThose fonts are not released:\n\n -- FONT,-1710615546,TWINDOW:GETFONT(2995)->TWINDOW:NEW(960)->MAIN(657)\n\t\n -- BRUSH,152049635,TRPANEL:REGISTER(779)->TRPANEL:NEW(50)->TRIBBONBAR:NEW(314)->MAIN(664)\n\t\n -- FONT,-1811279512,TRICHEDIT:REDEFINE(403)->ALTASCLIENTE(1527)->->TXBROWSE:LDBLCLICK(5071)->TWINDOW:HANDLEEVENT(0)->TCONTROL:HANDLEEVENT(1801)->TXBROWSE:HANDLEEVENT(11221)->_FWH(3559)->DIALOGBOXINDIRECT(0)->TDIALOG:ACTIVATE(304)->VERCLIENTES(2036)->(b)MAIN(685)->TRBTN:CLICK(717)->TRBTN:LBUTTONUP(917)->TCONTROL:HANDLEEVENT(1791)->TRBTN:HANDLEEVENT(1575)->_FWH(3559)->WINRUN(0)->TWINDOW:ACTIVATE(1097)->MAIN(761)\n\t\n====================================================================================================\t\n\nThank you.",
"time": "18:37",
"topic": "BUG: FONTS NOT RELEASED IN LATEST FWH",
"username": "MOISES"
}
] |
BUG: FONTS NOT RELEASED IN LATEST FWH
|
[
{
"date": "2019-12-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "At the end of your app\nRelease ofontname",
"time": "18:33",
"topic": "BUG: FONTS NOT RELEASED IN LATEST FWH",
"username": "Silvio.Falconi"
}
] |
BUG: FONTS NOT RELEASED IN LATEST FWH
|
[
{
"date": "2019-12-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Silvio,\n\nI haven't defined any font, these are Fivewin's internal fonts.",
"time": "10:48",
"topic": "BUG: FONTS NOT RELEASED IN LATEST FWH",
"username": "MOISES"
}
] |
BUG: FONTS NOT RELEASED IN LATEST FWH
|
[
{
"date": "2019-12-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"MOISES\":2v54klc7]Silvio,\n\nI haven't defined any font, these are Fivewin's internal fonts.[/quote:2v54klc7]\n\nI do not get any message of resources not destroyed in any of my applications (for example FivEdit uses more than 20 fonts in the different controls).\nIt is usually an incorrect assignment of the font, for example (:: oFont: = oFont1, instead of using its method :: SetFont (oFont1))",
"time": "11:05",
"topic": "BUG: FONTS NOT RELEASED IN LATEST FWH",
"username": "cnavarro"
}
] |
BUG: FONTS NOT RELEASED IN LATEST FWH
|
[
{
"date": "2019-12-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Cristóbal,\n\nCan you please try to use a Ribbon and a RICHEDIT control?\n\nI don´t define fonts, so it is an internal issue of Fivewin.\n\nThank you.",
"time": "12:00",
"topic": "BUG: FONTS NOT RELEASED IN LATEST FWH",
"username": "MOISES"
}
] |
BUG: FONTS NOT RELEASED IN LATEST FWH
|
[
{
"date": "2019-12-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "It is possible that there is some control in which this problem occurs. Can you give a simple example to check?",
"time": "12:24",
"topic": "BUG: FONTS NOT RELEASED IN LATEST FWH",
"username": "cnavarro"
}
] |
BUG: FONTS NOT RELEASED IN LATEST FWH
|
[
{
"date": "2019-12-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Sure.\n\nThis is a RTF sample:\n\n[code=fw:308kk4ce]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#Include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"richedit.ch\"</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">Function</span> Main<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">Local</span> oDlg, oRich, cRtf := <span style=\"color: #ff0000;\">\"\"</span><br /> <span style=\"color: #00C800;\">Local</span> hRichDLL := LoadLibrary<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"riched20.dll\"</span> <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">local</span> lBold := .F., nPos := <span style=\"color: #000000;\">0</span><br /><br /><br /><br /><br /> <span style=\"color: #B900B9;\">// Debug Checkres</span><br /> FErase<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"checkres.txt\"</span><span style=\"color: #000000;\">)</span><br /> SetResDebug<span style=\"color: #000000;\">(</span> .T. <span style=\"color: #000000;\">)</span><br /><br /><br /><br /><br /> cRtf:=<span style=\"color: #ff0000;\">\"{<span style=\"color: #000000;\">\\r</span>tf1<span style=\"color: #000000;\">\\a</span>nsi<span style=\"color: #000000;\">\\d</span>eff0{<span style=\"color: #000000;\">\\f</span>onttbl{<span style=\"color: #000000;\">\\f</span>0<span style=\"color: #000000;\">\\f</span>nil<span style=\"color: #000000;\">\\f</span>charset0 Courier New;}}\"</span>+CRLF+;<br /> <span style=\"color: #ff0000;\">\"{<span style=\"color: #000000;\">\\c</span>olortbl ;<span style=\"color: #000000;\">\\r</span>ed0<span style=\"color: #000000;\">\\g</span>reen77<span style=\"color: #000000;\">\\b</span>lue187;<span style=\"color: #000000;\">\\r</span>ed192<span style=\"color: #000000;\">\\g</span>reen80<span style=\"color: #000000;\">\\b</span>lue77;}\"</span>+CRLF+;<br /> <span style=\"color: #ff0000;\">\"{<span style=\"color: #000000;\">\\*</span><span style=\"color: #000000;\">\\g</span>enerator Msftedit 5.41.21.2510;}<span style=\"color: #000000;\">\\v</span>iewkind4<span style=\"color: #000000;\">\\u</span>c1<span style=\"color: #000000;\">\\p</span>ard<span style=\"color: #000000;\">\\c</span>f1<span style=\"color: #000000;\">\\l</span>ang1031<span style=\"color: #000000;\">\\f</span>0<span style=\"color: #000000;\">\\f</span>s22 This is <span style=\"color: #000000;\">\\b</span> colored <span style=\"color: #000000;\">\\b</span>0 text<span style=\"color: #000000;\">\\c</span>f0 . <span style=\"color: #000000;\">\\c</span>f2 The background is color 1 and the foreground is color 2<span style=\"color: #000000;\">\\c</span>f0<span style=\"color: #000000;\">\\p</span>ar\"</span>+CRLF+CRLF+;<br /> <span style=\"color: #ff0000;\">\"}\"</span><br /><br /><br /><br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Test\"</span><br /><br /><br /><br /><br /> <span style=\"color: #0000ff;\">REDEFINE</span> RICHEDIT oRich <span style=\"color: #0000ff;\">VAR</span> cRTF <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">100</span><br /><br /> <span style=\"color: #B900B9;\">//oRich:lHighLight = .f.</span><br /><br /><br /><br /> <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">110</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">(</span> oRich:<span style=\"color: #000000;\">LoadFromRTFFile</span><span style=\"color: #000000;\">(</span> cGetFile<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Archivo RTF (*.rtf) | *.rtf\"</span> <span style=\"color: #000000;\">)</span>, oRich:<span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /><br /><br /><br /> <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">120</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">(</span> lBold := ! lBold, ;<br /> oRich:<span style=\"color: #000000;\">SetBold</span><span style=\"color: #000000;\">(</span> lBold <span style=\"color: #000000;\">)</span>, oDlg:<span style=\"color: #0000ff;\">Update</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, oRich:<span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, oDlg:<span style=\"color: #000000;\">cTitle</span> := <span style=\"color: #ff0000;\">\"IsBold \"</span>+cValtoChar<span style=\"color: #000000;\">(</span>lBold<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /><br /><br /> oRich:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">(</span> cRtf <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #B900B9;\">//oRich:bGotFocus = { || oRich:HideSel(), oRich:SetSel( nPos, nPos ) }</span><br /> <span style=\"color: #B900B9;\">//oRich:bLostFocus = { || nPos := oRich:GetPos() }</span><br /><br /><br /> <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br /><br /> FreeLibrary<span style=\"color: #000000;\">(</span> hRichDLL <span style=\"color: #000000;\">)</span><br /><br /><br /><br /> <span style=\"color: #B900B9;\">/* CheckRes Recursos FWH*/</span><br /> CheckRes<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> WinExec<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"notepad checkres\"</span><span style=\"color: #000000;\">)</span><br /><br /><br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">nil</span><br /><br /> </div>[/code:308kk4ce]\n\n\nBug at: TRICHEDIT:REDEFINE(403)-\n\nYou have an unreleased Font, defined in both new and redefine methods.\n\nThank you.",
"time": "19:43",
"topic": "BUG: FONTS NOT RELEASED IN LATEST FWH",
"username": "MOISES"
}
] |
BUG: FONTS NOT RELEASED IN LATEST FWH
|
[
{
"date": "2019-12-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Please send me .rc file, thanks",
"time": "20:21",
"topic": "BUG: FONTS NOT RELEASED IN LATEST FWH",
"username": "cnavarro"
}
] |
BUG: FONTS NOT RELEASED IN LATEST FWH
|
[
{
"date": "2019-12-23",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Sure, here is:\n\n[code=fw:2f20f45q]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <windows.h><br /><br /><span style=\"color: #00D7D7;\">#define</span> IDC_EDIT1 <span style=\"color: #000000;\">101</span><br /><br />Test <span style=\"color: #0000ff;\">DIALOG</span> <span style=\"color: #000000;\">41</span>, <span style=\"color: #000000;\">64</span>, <span style=\"color: #000000;\">409</span>, <span style=\"color: #000000;\">199</span><br /><span style=\"color: #0000ff;\">STYLE</span> DS_MODALFRAME | 0x4L | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU<br />CAPTION <span style=\"color: #ff0000;\">\"Testing the RichEdit control\"</span><br /><span style=\"color: #0000ff;\">FONT</span> <span style=\"color: #000000;\">8</span>, <span style=\"color: #ff0000;\">\"MS Sans Serif\"</span><br /><span style=\"color: #000000;\">{</span><br /> CONTROL <span style=\"color: #ff0000;\">\"\"</span>, <span style=\"color: #000000;\">100</span>, <span style=\"color: #ff0000;\">\"RichEdit20A\"</span>, <span style=\"color: #000000;\">4100</span> | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_VSCROLL | WS_TABSTOP, <span style=\"color: #000000;\">6</span>, <span style=\"color: #000000;\">12</span>, <span style=\"color: #000000;\">398</span>, <span style=\"color: #000000;\">163</span><br /> PUSHBUTTON <span style=\"color: #ff0000;\">\"&Load text file\"</span>, <span style=\"color: #000000;\">110</span>, <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">179</span>, <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">16</span><br /> PUSHBUTTON <span style=\"color: #ff0000;\">\"&Bold\"</span>, <span style=\"color: #000000;\">120</span>, <span style=\"color: #000000;\">95</span>, <span style=\"color: #000000;\">179</span>, <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">16</span><br /><br /><span style=\"color: #000000;\">}</span></div>[/code:2f20f45q]\n\nThank you.",
"time": "09:32",
"topic": "BUG: FONTS NOT RELEASED IN LATEST FWH",
"username": "MOISES"
}
] |
BUG: FONTS NOT RELEASED IN LATEST FWH
|
[
{
"date": "2019-12-23",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Moises, thanks, you are right\nPlease modify METHOD Redefine in TRichEdit CLASS\n[code=fw:11p5ebrt]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #0000ff;\">ReDefine</span><span style=\"color: #000000;\">(</span> nId, bSetGet, oWnd, nHelpId, oFont, cMsg, lReadOnly, ;<br /> lHighlight, cFileName, nRTFSize, lNoURL, bWhen, bValid, ;<br /> bChanged <span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TRichEdit<br /><br /> <span style=\"color: #00C800;\">DEFAULT</span> lReadOnly := .f., ;<br /> lHighlight := .f., ;<br /> cFileName := <span style=\"color: #ff0000;\">\"\"</span> , ;<br /> nRTFSize := <span style=\"color: #000000;\">1024</span> * <span style=\"color: #000000;\">1024</span>, ;<br /> lNoURL := .f., ;<br /> oWnd := GetWndDefault<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> ::<span style=\"color: #000000;\">nId</span> = nId<br /> ::<span style=\"color: #000000;\">bSetGet</span> = bSetGet<br /> ::<span style=\"color: #000000;\">uOriginalValue</span> = Eval<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">bSetGet</span> <span style=\"color: #000000;\">)</span><br /> ::<span style=\"color: #000000;\">oWnd</span> = oWnd<br /> ::<span style=\"color: #000000;\">nHelpId</span> = nHelpId<br /> ::<span style=\"color: #000000;\">cMsg</span> = cMsg<br /> ::<span style=\"color: #000000;\">bWhen</span> = bWhen<br /> ::<span style=\"color: #000000;\">bValid</span> = bValid<br /> ::<span style=\"color: #000000;\">lReadOnly</span> = lReadOnly<br /> ::<span style=\"color: #000000;\">bChange</span> = bChanged<br /> ::<span style=\"color: #000000;\">cFileName</span> = cFileName<br /> ::<span style=\"color: #000000;\">nRTFSize</span> = <span style=\"color: #0000ff;\">Max</span><span style=\"color: #000000;\">(</span> nRTFSize, <span style=\"color: #000000;\">32</span> * <span style=\"color: #000000;\">1024</span> <span style=\"color: #000000;\">)</span><br /> ::<span style=\"color: #000000;\">lURL</span> = !lNoURL<br /><br /> ::<span style=\"color: #000000;\">lHighlight</span> = lHighlight<br /> ::<span style=\"color: #000000;\">aKeywords1</span> = <span style=\"color: #000000;\">{</span> <span style=\"color: #ff0000;\">\"CLASS\"</span>, <span style=\"color: #ff0000;\">\"FROM\"</span>, <span style=\"color: #ff0000;\">\"ENDCLASS\"</span>, <span style=\"color: #ff0000;\">\"DATA\"</span>, <span style=\"color: #ff0000;\">\"AS\"</span>, <span style=\"color: #ff0000;\">\"METHOD\"</span>,;<br /> <span style=\"color: #ff0000;\">\"CONSTRUCTOR\"</span>, <span style=\"color: #ff0000;\">\"function\"</span>, <span style=\"color: #ff0000;\">\"return\"</span>, <span style=\"color: #ff0000;\">\"OBJECT\"</span>, <span style=\"color: #ff0000;\">\"ENDOBJECT\"</span> <span style=\"color: #000000;\">}</span><br /> ::<span style=\"color: #000000;\">aKeywords2</span> = <span style=\"color: #000000;\">{</span> <span style=\"color: #ff0000;\">\"#include\"</span>, <span style=\"color: #ff0000;\">\"Self\"</span>, <span style=\"color: #ff0000;\">\"nil\"</span>, <span style=\"color: #ff0000;\">\"public\"</span>, <span style=\"color: #ff0000;\">\"local\"</span>, <span style=\"color: #ff0000;\">\"Super\"</span> <span style=\"color: #000000;\">}</span><br /> ::<span style=\"color: #000000;\">cSeparators</span> = <span style=\"color: #ff0000;\">\" +-()[]:*/{},=\"</span><br /><br /> ::<span style=\"color: #000000;\">nClrNumber</span> = CLR_HMAGENTA<br /> ::<span style=\"color: #000000;\">nClrString</span> = CLR_YELLOW<br /> ::<span style=\"color: #000000;\">nClrComment</span> = CLR_HBLUE<br /> ::<span style=\"color: #000000;\">nClrSeparator</span> = CLR_WHITE<br /> ::<span style=\"color: #000000;\">nClrText</span> = CLR_BLACK<br /> ::<span style=\"color: #000000;\">nClrKey1</span> = CLR_HGREEN<br /> ::<span style=\"color: #000000;\">nClrKey2</span> = CLR_HCYAN<br /><br /> <span style=\"color: #00C800;\">if</span> oFont == <span style=\"color: #00C800;\">nil</span><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> ::<span style=\"color: #000000;\">oFont</span> <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"ARIAL\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> LargeFonts<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, <span style=\"color: #000000;\">-11</span>, <span style=\"color: #000000;\">-13</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">else</span><br /> ::<span style=\"color: #000000;\">SetFont</span><span style=\"color: #000000;\">(</span> oFont <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /><br /> ::<span style=\"color: #000000;\">SetOleInit</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #B900B9;\">//::Register( nOr( CS_VREDRAW, CS_HREDRAW, CS_DBLCLKS ) )</span><br /> oWnd:<span style=\"color: #000000;\">DefControl</span><span style=\"color: #000000;\">(</span> <span style=\"color: #00C800;\">Self</span> <span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">Self</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /> </div>[/code:11p5ebrt]\n\nand in CLASS TRICHEDIT5 ( fwh\\source\\classes\\triched5.prg )\n\n[code=fw:11p5ebrt]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #0000ff;\">ReDefine</span><span style=\"color: #000000;\">(</span> nId, bSetGet, oWnd, nHelpId, oFont, cMsg, lReadOnly, ;<br /> lHighlight, cFileName, nRTFSize, lNoURL, bWhen, bValid, ;<br /> bChanged, nLeftMargin, lNew <span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TRichEdit5<br /><br /> <span style=\"color: #00C800;\">local</span> cDll<br /> <span style=\"color: #00C800;\">DEFAULT</span> lReadOnly := .f., ;<br /> lHighlight := .f., ;<br /> cFileName := <span style=\"color: #ff0000;\">\"\"</span> , ;<br /> nRTFSize := <span style=\"color: #000000;\">1024</span> * <span style=\"color: #000000;\">1024</span>, ;<br /> lNoURL := .f., ;<br /> oWnd := GetWndDefault<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, ;<br /> nLeftMargin := <span style=\"color: #000000;\">0</span><span style=\"color: #B900B9;\">//, ;</span><br /> lNew := .T.<br /><br /> ::<span style=\"color: #000000;\">lUnicode</span> := FW_SetUnicode<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> ::<span style=\"color: #000000;\">nId</span> := nId<br /> ::<span style=\"color: #000000;\">bSetGet</span> := bSetGet<br /> ::<span style=\"color: #000000;\">uOriginalValue</span> = Eval<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">bSetGet</span> <span style=\"color: #000000;\">)</span><br /> ::<span style=\"color: #000000;\">oWnd</span> := oWnd<br /> ::<span style=\"color: #000000;\">nHelpId</span> := nHelpId<br /> ::<span style=\"color: #000000;\">cMsg</span> := cMsg<br /> ::<span style=\"color: #000000;\">bWhen</span> := bWhen<br /> ::<span style=\"color: #000000;\">bValid</span> := bValid<br /> ::<span style=\"color: #000000;\">lReadOnly</span> := lReadOnly<br /> ::<span style=\"color: #000000;\">bChange</span> := bChanged<br /> ::<span style=\"color: #000000;\">cFileName</span> := cFileName<br /> ::<span style=\"color: #000000;\">nRTFSize</span> := <span style=\"color: #0000ff;\">Max</span><span style=\"color: #000000;\">(</span> nRTFSize, <span style=\"color: #000000;\">32</span> * <span style=\"color: #000000;\">1024</span> <span style=\"color: #000000;\">)</span><br /> ::<span style=\"color: #000000;\">lURL</span> := !lNoURL<br /> ::<span style=\"color: #000000;\">lCaptured</span> := .f.<br /> <span style=\"color: #00C800;\">if</span> lNew<br /> ::<span style=\"color: #000000;\">cCtrl_Class</span> := <span style=\"color: #ff0000;\">\"RichEdit50W\"</span><br /> cDll := <span style=\"color: #ff0000;\">\"Msftedit.dll\"</span><br /> <span style=\"color: #00C800;\">else</span><br /> ::<span style=\"color: #000000;\">cCtrl_Class</span> := <span style=\"color: #ff0000;\">\"RichEdit20A\"</span><br /> cDll := <span style=\"color: #ff0000;\">\"RichEd20.dll\"</span><br /> <span style=\"color: #00C800;\">endif</span><br /> <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">nInst</span> == <span style=\"color: #000000;\">0</span><br /> ::<span style=\"color: #000000;\">hLib</span> := LoadLibrary<span style=\"color: #000000;\">(</span> cDll <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /> ::<span style=\"color: #000000;\">nInst</span> ++<br /> <span style=\"color: #00C800;\">if</span> bSetGet != <span style=\"color: #00C800;\">nil</span><br /> ::<span style=\"color: #000000;\">cCaption</span> := cValToChar<span style=\"color: #000000;\">(</span> Eval<span style=\"color: #000000;\">(</span> bSetGet <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">else</span><br /> ::<span style=\"color: #000000;\">cCaption</span> := <span style=\"color: #ff0000;\">\"\"</span><br /> <span style=\"color: #00C800;\">endif</span><br /><br /> ::<span style=\"color: #000000;\">lHighlight</span> := lHighlight<br /> ::<span style=\"color: #000000;\">aKeyWords1</span> := <span style=\"color: #000000;\">{</span><span style=\"color: #000000;\">}</span><br /> ::<span style=\"color: #000000;\">aKeyWords1</span> := <span style=\"color: #000000;\">{</span><span style=\"color: #000000;\">}</span><br /> ::<span style=\"color: #000000;\">cSeparators</span> := <span style=\"color: #ff0000;\">\"\"</span><br /> ::<span style=\"color: #000000;\">aCharFormat</span> := <span style=\"color: #000000;\">{</span><span style=\"color: #000000;\">}</span> <span style=\"color: #B900B9;\">// Array( 14 )</span><br /><br /> ::<span style=\"color: #000000;\">nClrNumber</span> := CLR_HMAGENTA<br /> ::<span style=\"color: #000000;\">nClrString</span> := CLR_YELLOW<br /> ::<span style=\"color: #000000;\">nClrComment</span> := CLR_HBLUE<br /> ::<span style=\"color: #000000;\">nClrSeparator</span> := CLR_WHITE<br /> ::<span style=\"color: #000000;\">nClrText</span> := CLR_BLACK<br /> ::<span style=\"color: #000000;\">nClrKey1</span> := CLR_HGREEN<br /> ::<span style=\"color: #000000;\">nClrKey2</span> := CLR_HCYAN<br /> ::<span style=\"color: #000000;\">nClrProtect</span> := CLR_HRED<br /> ::<span style=\"color: #000000;\">nMarginLeft</span> := nLeftMargin<br /><br /> <span style=\"color: #00C800;\">if</span> oFont == <span style=\"color: #00C800;\">nil</span><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> ::<span style=\"color: #000000;\">oFont</span> <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"ARIAL\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> LargeFonts<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, <span style=\"color: #000000;\">-11</span>, <span style=\"color: #000000;\">-13</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">else</span><br /> ::<span style=\"color: #000000;\">SetFont</span><span style=\"color: #000000;\">(</span> oFont <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /><br /> ::<span style=\"color: #000000;\">aTableFormat</span> := Array<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">7</span> <span style=\"color: #000000;\">)</span><br /> ::<span style=\"color: #000000;\">aPos</span> := <span style=\"color: #000000;\">{</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">}</span><br /> ::<span style=\"color: #000000;\">aOldPos</span> := <span style=\"color: #000000;\">{</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">}</span><br /><br /> ::<span style=\"color: #000000;\">SetOleInit</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> ::<span style=\"color: #00C800;\">Default</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> ::<span style=\"color: #000000;\">SendMsg</span><span style=\"color: #000000;\">(</span> WM_SETFONT, ::<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">hFont</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span><br /> oWnd:<span style=\"color: #000000;\">DefControl</span><span style=\"color: #000000;\">(</span> <span style=\"color: #00C800;\">Self</span> <span style=\"color: #000000;\">)</span><br /><br /> ::<span style=\"color: #000000;\">SetFont2RTF</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">nHeight</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// to adjust point size</span><br /><br /> <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">lHighlight</span><br /> ::<span style=\"color: #000000;\">HighLightAllText</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// PostMessage( ::hWnd, FM_HIGHLIGHTALL )</span><br /> <span style=\"color: #00C800;\">endif</span><br /><br /> <span style=\"color: #00C800;\">if</span> !Empty<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">nMarginLeft</span> <span style=\"color: #000000;\">)</span><br /> ::<span style=\"color: #000000;\">SetMargin</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">Self</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /> </div>[/code:11p5ebrt]\n\nI recommend that you use the new TRICHEDIT5 class",
"time": "11:31",
"topic": "BUG: FONTS NOT RELEASED IN LATEST FWH",
"username": "cnavarro"
}
] |
BUG: FONTS NOT RELEASED IN LATEST FWH
|
[
{
"date": "2013-04-05",
"forum": "FiveWin for Harbour/xHarbour",
"text": "On this type of editstyle we can input a free text in this col, but when i open and then only close the Combobox without select any item, this text are instantly overwritten with the first item from the list.\nAnother error when i Input TAB on the open listbox: \n[quote:1pvi79zk]Error BASE/1005 Class: 'NIL' has no property: NLASTKEY\n Args:\n [ 1] = U \n [ 2] = N 13[/quote:1pvi79zk]",
"time": "12:16",
"topic": "BUG: XBROWSE editstyle EDIT_GET_LISTBOX",
"username": "byte-one"
}
] |
BUG: XBROWSE editstyle EDIT_GET_LISTBOX
|
[
{
"date": "2013-04-05",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Günther,\n\nI have fixed it this way. Search for LISTBOX inside xbrowse.prg and change this:\n[code=fw:3r1mokce]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> @ <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">LISTBOX</span> ::<span style=\"color: #000000;\">oEditLbx</span> <span style=\"color: #0000ff;\">VAR</span> nAt <span style=\"color: #0000ff;\">OF</span> ::<span style=\"color: #000000;\">oBrw</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">ITEMS</span> ::<span style=\"color: #000000;\">aEditListTxt</span> ;<br /> <span style=\"color: #0000ff;\">COLOR</span> aColors<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>, aColors<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #0000ff;\">FONT</span> oFont<br /><br /> ::<span style=\"color: #000000;\">oEditLbx</span>:<span style=\"color: #000000;\">bLostFocus</span> := <span style=\"color: #000000;\">{</span> | oLbx, hWndFocus | ::<span style=\"color: #000000;\">PostEdit</span><span style=\"color: #000000;\">(</span> aBound<span style=\"color: #000000;\">[</span> <span style=\"color: #0000ff;\">Max</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">1</span>, nAt <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span><br /><br /> ::<span style=\"color: #000000;\">oEditLbx</span>:<span style=\"color: #000000;\">bLButtonUp</span> := <span style=\"color: #000000;\">{</span>|| ::<span style=\"color: #000000;\">oEditLbx</span>:<span style=\"color: #0000ff;\">Change</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>,;<br /> <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">oEditLbx</span> != <span style=\"color: #00C800;\">nil</span>, ::<span style=\"color: #000000;\">oEditLbx</span>:<span style=\"color: #000000;\">nLastKey</span> := VK_RETURN,<span style=\"color: #000000;\">)</span>,;<br /> ::<span style=\"color: #000000;\">PostEdit</span><span style=\"color: #000000;\">(</span> aBound<span style=\"color: #000000;\">[</span> nAt <span style=\"color: #000000;\">]</span>, .t. <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span><br /><br /> ::<span style=\"color: #000000;\">oEditLbx</span>:<span style=\"color: #000000;\">bChange</span> = <span style=\"color: #000000;\">{</span>|| <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">oEditLbx</span> != <span style=\"color: #00C800;\">nil</span>, ::<span style=\"color: #000000;\">oEditLbx</span>:<span style=\"color: #000000;\">nLastKey</span> := VK_RETURN,<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">IF</span> ::<span style=\"color: #000000;\">oBrw</span>:<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">IsKindOf</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"TDIALOG\"</span> <span style=\"color: #000000;\">)</span><br /> ::<span style=\"color: #000000;\">oEditLbx</span>:<span style=\"color: #000000;\">nDlgCode</span> = DLGC_WANTALLKEYS<br /> ::<span style=\"color: #000000;\">oEditLbx</span>:<span style=\"color: #000000;\">bKeyDown</span> := <span style=\"color: #000000;\">{</span>|k| <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">oEditLbx</span> != <span style=\"color: #00C800;\">nil</span>, ::<span style=\"color: #000000;\">oEditLbx</span>:<span style=\"color: #000000;\">nLastKey</span> := k,<span style=\"color: #000000;\">)</span>, <span style=\"color: #00C800;\">nil</span> <span style=\"color: #000000;\">}</span><br /> ...<br /> </div>[/code:3r1mokce]\nalso here:\n[code=fw:3r1mokce]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> <span style=\"color: #00C800;\">case</span> ::<span style=\"color: #000000;\">nEditType</span> == EDIT_LISTBOX<br /> <span style=\"color: #00C800;\">if</span> xValue != <span style=\"color: #00C800;\">nil</span><br /> <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">bEditWhen</span> == <span style=\"color: #00C800;\">nil</span> .or. Eval<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">bEditWhen</span>, <span style=\"color: #00C800;\">Self</span> <span style=\"color: #000000;\">)</span> .and. ::<span style=\"color: #000000;\">oEditLbx</span>:<span style=\"color: #000000;\">nLastKey</span> == VK_RETURN<br /> Eval<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">bOnPostEdit</span>, <span style=\"color: #00C800;\">Self</span>, xValue, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">oEditLbx</span> != <span style=\"color: #00C800;\">nil</span>, ::<span style=\"color: #000000;\">oEditLbx</span>:<span style=\"color: #000000;\">nLastKey</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /> </div>[/code:3r1mokce]\nwith those changes this example seems to be working fine:\n[code=fw:3r1mokce]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">local</span> oDlg, oBrw, aValues := <span style=\"color: #000000;\">{</span> Array<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">500</span>, <span style=\"color: #000000;\">300</span><br /> <br /> @ <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrw <span style=\"color: #0000ff;\">OF</span> oDlg ;<br /> FIELDS aValues<span style=\"color: #000000;\">[</span> oBrw:<span style=\"color: #000000;\">nArrayAt</span> <span style=\"color: #000000;\">]</span><span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>, aValues<span style=\"color: #000000;\">[</span> oBrw:<span style=\"color: #000000;\">nArrayAt</span> <span style=\"color: #000000;\">]</span><span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span> ;<br /> COLSIZES <span style=\"color: #000000;\">220</span>, <span style=\"color: #000000;\">220</span> ;<br /> HEADERS <span style=\"color: #ff0000;\">\"One\"</span>, <span style=\"color: #ff0000;\">\"Two\"</span><br /><br /> oBrw:<span style=\"color: #000000;\">SetArray</span><span style=\"color: #000000;\">(</span> aValues <span style=\"color: #000000;\">)</span><br /> oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">nEditType</span> = EDIT_GET_LISTBOX<br /> oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">aEditListTxt</span> = <span style=\"color: #000000;\">{</span> <span style=\"color: #ff0000;\">\"111111\"</span>, <span style=\"color: #ff0000;\">\"22222\"</span> <span style=\"color: #000000;\">}</span><br /> oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">bOnPostEdit</span> = <span style=\"color: #000000;\">{</span> | o, v | <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">(</span> v <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span><br /> oBrw:<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> oDlg:<span style=\"color: #000000;\">oClient</span> = oBrw<br /><br /> <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span> ;<br /> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> oDlg:<span style=\"color: #000000;\">ReSize</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span></div>[/code:3r1mokce]",
"time": "15:49",
"topic": "BUG: XBROWSE editstyle EDIT_GET_LISTBOX",
"username": "Antonio Linares"
}
] |
BUG: XBROWSE editstyle EDIT_GET_LISTBOX
|
[
{
"date": "2013-04-05",
"forum": "FiveWin for Harbour/xHarbour",
"text": "This seems a better implementation, as now we can use Enter to select an item:\n\n[code=fw:2n5g8e72]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> @ <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">LISTBOX</span> ::<span style=\"color: #000000;\">oEditLbx</span> <span style=\"color: #0000ff;\">VAR</span> nAt <span style=\"color: #0000ff;\">OF</span> ::<span style=\"color: #000000;\">oBrw</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">ITEMS</span> ::<span style=\"color: #000000;\">aEditListTxt</span> ;<br /> <span style=\"color: #0000ff;\">COLOR</span> aColors<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>, aColors<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #0000ff;\">FONT</span> oFont<br /><br /> ::<span style=\"color: #000000;\">oEditLbx</span>:<span style=\"color: #000000;\">bLostFocus</span> := <span style=\"color: #000000;\">{</span> | oLbx, hWndFocus | ::<span style=\"color: #000000;\">PostEdit</span><span style=\"color: #000000;\">(</span> aBound<span style=\"color: #000000;\">[</span> <span style=\"color: #0000ff;\">Max</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">1</span>, nAt <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span><br /><br /> ::<span style=\"color: #000000;\">oEditLbx</span>:<span style=\"color: #000000;\">bLButtonUp</span> := <span style=\"color: #000000;\">{</span>|| ::<span style=\"color: #000000;\">oEditLbx</span>:<span style=\"color: #0000ff;\">Change</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>,;<br /> ::<span style=\"color: #000000;\">PostEdit</span><span style=\"color: #000000;\">(</span> aBound<span style=\"color: #000000;\">[</span> nAt <span style=\"color: #000000;\">]</span>, .t. <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span><br /><br /> ::<span style=\"color: #000000;\">oEditLbx</span>:<span style=\"color: #000000;\">bChange</span> = <span style=\"color: #000000;\">{</span>|| <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">oEditLbx</span> != <span style=\"color: #00C800;\">nil</span>, ::<span style=\"color: #000000;\">oEditLbx</span>:<span style=\"color: #000000;\">nLastKey</span> := VK_RETURN,<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">IF</span> ::<span style=\"color: #000000;\">oBrw</span>:<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">IsKindOf</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"TDIALOG\"</span> <span style=\"color: #000000;\">)</span><br /> ::<span style=\"color: #000000;\">oEditLbx</span>:<span style=\"color: #000000;\">nDlgCode</span> = DLGC_WANTALLKEYS<br /> ::<span style=\"color: #000000;\">oEditLbx</span>:<span style=\"color: #000000;\">bKeyDown</span> := <span style=\"color: #000000;\">{</span> | nKey | <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> nKey == VK_RETURN,;<br /> <span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">oEditLbx</span>:<span style=\"color: #0000ff;\">Change</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>,;<br /> ::<span style=\"color: #000000;\">PostEdit</span><span style=\"color: #000000;\">(</span> aBound<span style=\"color: #000000;\">[</span> nAt <span style=\"color: #000000;\">]</span>, .t. <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>,<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">ELSE</span><br /> </div>[/code:2n5g8e72]",
"time": "16:00",
"topic": "BUG: XBROWSE editstyle EDIT_GET_LISTBOX",
"username": "Antonio Linares"
}
] |
BUG: XBROWSE editstyle EDIT_GET_LISTBOX
|
[
{
"date": "2013-04-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio, editing now is OK! Thanks.\n\nBut two points are also to do:\n1.) If the listbox are on bottom half in the xbrowse not the full list are shown on opening. The list is clipped in some cases!\n\n2.) When i Input TAB on the opened listbox: \n[quote:rjq3ve3k]Error BASE/1005 Class: 'NIL' has no exported method: CHANGE\n Args:\n [ 1] = U[/quote:rjq3ve3k]",
"time": "14:31",
"topic": "BUG: XBROWSE editstyle EDIT_GET_LISTBOX",
"username": "byte-one"
}
] |
BUG: XBROWSE editstyle EDIT_GET_LISTBOX
|
[
{
"date": "2013-04-14",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio, please look also on this last two Points!\nMany thanks!",
"time": "20:04",
"topic": "BUG: XBROWSE editstyle EDIT_GET_LISTBOX",
"username": "byte-one"
}
] |
BUG: XBROWSE editstyle EDIT_GET_LISTBOX
|
[
{
"date": "2013-04-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Günther,\n\nPlease go to line 11135 in xbrowse.prg and change this:\n\n ::oEditLbx:Move( nRow, nCol, nWidth, nHeight, .t. )\n\nto\n\n nRow = If( nRow + nHeight > ::nHeight, ::nHeight - nHeight, nRow )\n ::oEditLbx:Move( nRow, nCol, nWidth, nHeight, .t. )",
"time": "07:05",
"topic": "BUG: XBROWSE editstyle EDIT_GET_LISTBOX",
"username": "Antonio Linares"
}
] |
BUG: XBROWSE editstyle EDIT_GET_LISTBOX
|
[
{
"date": "2013-04-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "For the Tab error please modify this in line 11125:\n\n[code=fw:37xdptnp]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> ::<span style=\"color: #000000;\">oEditLbx</span>:<span style=\"color: #000000;\">bKeyDown</span> := <span style=\"color: #000000;\">{</span> | nKey | <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> nKey == VK_RETURN,;<br /> <span style=\"color: #000000;\">(</span> <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">oEditLbx</span> != <span style=\"color: #00C800;\">nil</span>, ::<span style=\"color: #000000;\">oEditLbx</span>:<span style=\"color: #0000ff;\">Change</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>,<span style=\"color: #000000;\">)</span>,;<br /> ::<span style=\"color: #000000;\">PostEdit</span><span style=\"color: #000000;\">(</span> aBound<span style=\"color: #000000;\">[</span> nAt <span style=\"color: #000000;\">]</span>, .t. <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>,<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span><br /> </div>[/code:37xdptnp]",
"time": "07:17",
"topic": "BUG: XBROWSE editstyle EDIT_GET_LISTBOX",
"username": "Antonio Linares"
}
] |
BUG: XBROWSE editstyle EDIT_GET_LISTBOX
|
[
{
"date": "2013-04-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio, this has no effect. Also your line-numbers are not from 13.3 ??\n\n[quote:2brl59wf]Please go to line 11135 in xbrowse.prg and change this:\n\n ::oEditLbx:Move( nRow, nCol, nWidth, nHeight, .t. )\n\nto\n\n nRow = If( nRow + nHeight > ::nHeight, ::nHeight - nHeight, nRow )\n ::oEditLbx:Move( nRow, nCol, nWidth, nHeight, .t. )[/quote:2brl59wf]",
"time": "10:46",
"topic": "BUG: XBROWSE editstyle EDIT_GET_LISTBOX",
"username": "byte-one"
}
] |
BUG: XBROWSE editstyle EDIT_GET_LISTBOX
|
[
{
"date": "2013-04-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Günther,\n\nLook for ::oEditLbx:Move in xbrowse.prg, there is only one occurrence and change it there as explained.\n\nI have not tested it myself, but I think it should work <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "11:07",
"topic": "BUG: XBROWSE editstyle EDIT_GET_LISTBOX",
"username": "Antonio Linares"
}
] |
BUG: XBROWSE editstyle EDIT_GET_LISTBOX
|
[
{
"date": "2013-04-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio, not the right effect! Only the last visible row claps the listbox to top. All other rows claps the listbox down with vertical scroll and would be pressed and pressed. In my opinion the following code is the point to Show!\n[code=fw:1usjczrs]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> <span style=\"color: #00C800;\">If</span> nRow + nHeight > ::<span style=\"color: #000000;\">oBrw</span>:<span style=\"color: #000000;\">BrwHeight</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">If</span> <span style=\"color: #000000;\">(</span>::<span style=\"color: #000000;\">oBrw</span>:<span style=\"color: #000000;\">BrwHeight</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> - nRow<span style=\"color: #000000;\">)</span> < ::<span style=\"color: #000000;\">oBrw</span>:<span style=\"color: #000000;\">nRowHeight</span><br /> <span style=\"color: #00C800;\">do</span> <span style=\"color: #00C800;\">while</span> <span style=\"color: #000000;\">(</span> nRow - nHeight - ::<span style=\"color: #000000;\">oBrw</span>:<span style=\"color: #000000;\">nRowHeight</span> + <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span> < <span style=\"color: #000000;\">0</span><br /> nHeight -= FontHeight<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">oBrw</span>, ::<span style=\"color: #000000;\">oBrw</span>:<span style=\"color: #000000;\">oFont</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">enddo</span><br /> nRow := nRow - nHeight - ::<span style=\"color: #000000;\">oBrw</span>:<span style=\"color: #000000;\">nRowHeight</span> + <span style=\"color: #000000;\">1</span><br /> <span style=\"color: #00C800;\">else</span><br /> nHeight := ::<span style=\"color: #000000;\">oBrw</span>:<span style=\"color: #000000;\">BrwHeight</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> - nRow<br /> <span style=\"color: #00C800;\">Endif</span><br /> <span style=\"color: #00C800;\">Endif</span></div>[/code:1usjczrs]",
"time": "12:45",
"topic": "BUG: XBROWSE editstyle EDIT_GET_LISTBOX",
"username": "byte-one"
}
] |
BUG: XBROWSE editstyle EDIT_GET_LISTBOX
|
[
{
"date": "2013-04-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Günther,\n\nIf you try this example, with my changes, it shows fine:\n\ngunther4.prg\n[code=fw:2qjphklq]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">local</span> oDlg, oBrw, aValues := <span style=\"color: #000000;\">{</span> Array<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span>, n<br /> <br /> <span style=\"color: #00C800;\">for</span> n = <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> <span style=\"color: #000000;\">50</span><br /> AAdd<span style=\"color: #000000;\">(</span> aValues, ATail<span style=\"color: #000000;\">(</span> aValues <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">next</span> <br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">500</span>, <span style=\"color: #000000;\">300</span><br /> <br /> @ <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrw <span style=\"color: #0000ff;\">OF</span> oDlg ;<br /> FIELDS aValues<span style=\"color: #000000;\">[</span> oBrw:<span style=\"color: #000000;\">nArrayAt</span> <span style=\"color: #000000;\">]</span><span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>, aValues<span style=\"color: #000000;\">[</span> oBrw:<span style=\"color: #000000;\">nArrayAt</span> <span style=\"color: #000000;\">]</span><span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span> ;<br /> COLSIZES <span style=\"color: #000000;\">220</span>, <span style=\"color: #000000;\">220</span> ;<br /> HEADERS <span style=\"color: #ff0000;\">\"One\"</span>, <span style=\"color: #ff0000;\">\"Two\"</span><br /><br /> oBrw:<span style=\"color: #000000;\">SetArray</span><span style=\"color: #000000;\">(</span> aValues <span style=\"color: #000000;\">)</span><br /> oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">nEditType</span> = EDIT_GET_LISTBOX<br /> oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">aEditListTxt</span> = <span style=\"color: #000000;\">{</span> <span style=\"color: #ff0000;\">\"111111\"</span>, <span style=\"color: #ff0000;\">\"22222\"</span> <span style=\"color: #000000;\">}</span><br /> oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">bOnPostEdit</span> = <span style=\"color: #000000;\">{</span> | o, v | <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">(</span> v <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span><br /> oBrw:<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> oDlg:<span style=\"color: #000000;\">oClient</span> = oBrw<br /><br /> <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span> ;<br /> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> oDlg:<span style=\"color: #000000;\">ReSize</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span></div>[/code:2qjphklq]\n\n[img:2qjphklq]http://img19.imageshack.us/img19/6725/lafotocj.jpg[/img:2qjphklq]",
"time": "13:55",
"topic": "BUG: XBROWSE editstyle EDIT_GET_LISTBOX",
"username": "Antonio Linares"
}
] |
BUG: XBROWSE editstyle EDIT_GET_LISTBOX
|
[
{
"date": "2013-04-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio, please use a list with more (10 or so) items and test it [b:23xhl5q4]not[/b:23xhl5q4] on the last visible row but one or two rows above!",
"time": "14:09",
"topic": "BUG: XBROWSE editstyle EDIT_GET_LISTBOX",
"username": "byte-one"
}
] |
BUG: XBROWSE editstyle EDIT_GET_LISTBOX
|
[
{
"date": "2013-04-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Günther,\n\nThis seems to be a better fix:\n\n nRow = If( nRow + nHeight > ::oBrw:nHeight, nRow - nHeight - ::oBrw:nRowHeight, nRow )\n\nStill we should be able to avoid the bottom scrollbar too, thats pending\n\nand yes, that section of code that you mentioned, does not seem to be needed anymore, thanks\n\n[img:35vswcuk]http://img40.imageshack.us/img40/2349/lafotosc.JPG[/img:35vswcuk]",
"time": "14:58",
"topic": "BUG: XBROWSE editstyle EDIT_GET_LISTBOX",
"username": "Antonio Linares"
}
] |
BUG: XBROWSE editstyle EDIT_GET_LISTBOX
|
[
{
"date": "2013-04-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio it works! If also the vscroll are functioning, this is a perfect thing. Is it possibility, the listbox drawing over the size from the browse as it is also on normal dialogs?",
"time": "16:41",
"topic": "BUG: XBROWSE editstyle EDIT_GET_LISTBOX",
"username": "byte-one"
}
] |
BUG: XBROWSE editstyle EDIT_GET_LISTBOX
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.