Pushbutton drop problem
Re: Pushbutton drop problem
Hi Roger ,
I found in c-tec example this problem :
when run app and from other screen position, for example Windows File manager, press left mouse button, and move mouse over buttons, on button show "+" sign and this also change color from his color to cyan, and stay cyan also when mouse go away and release button. When I move mouse over more buttons with LB pressed, all changed to cyan.
And button color return to its own color only when again mouse over it without pressing something.
This occurs only when DROP parameter use in DCPUSHBUTTONXP.
So I am testing it only with 263 version eXpress and Xbase++ 2.0 release 554.
I found in c-tec example this problem :
when run app and from other screen position, for example Windows File manager, press left mouse button, and move mouse over buttons, on button show "+" sign and this also change color from his color to cyan, and stay cyan also when mouse go away and release button. When I move mouse over more buttons with LB pressed, all changed to cyan.
And button color return to its own color only when again mouse over it without pressing something.
This occurs only when DROP parameter use in DCPUSHBUTTONXP.
So I am testing it only with 263 version eXpress and Xbase++ 2.0 release 554.
Re: Pushbutton drop problem
Somebody will have to show me this behavior.
I cannot make this happen with Rudolf's example nor with my own DragDrop example.
I cannot make this happen with Rudolf's example nor with my own DragDrop example.
The eXpress train is coming - and it has more cars.
Re: Pushbutton drop problem
Roger,
Maybe Rudolf mean some other problem, but I understand he tell this as on attached pictures.
Attached small program with buttons (yours) where I only include parameter DROP {||NIL}
and on attached pictures when I select some file from Total commander or any file manager and only move over buttons his color changed to cyan and stay cyan, not return to his original color.
pic1 - running module
pic2 - click to button, this is ok buttons work as "switch"
pic3 - select some file and go to "surface" module
pic4 - here not shown sign "+" but is there, only my printscreen not save it to picture
pic5 - still left button pressed and move over button, he change to cyan
pic6 - still left button pressed and move to second button, first have new changed color Cyan
pic7 - color changed for all buttons, over which I moved.
pic8 - if left button release , buttons still cyan, only when move mouse over it, color return to his original color.
Sorry, if it is my trivial misunderstand, how it works...
Viktor
Maybe Rudolf mean some other problem, but I understand he tell this as on attached pictures.
Attached small program with buttons (yours) where I only include parameter DROP {||NIL}
Code: Select all
@ x1,y1 ;
DCPUSHBUTTONXP CAPTION "GROUP" + Alltrim(Str(i)) + ";F" + Alltrim(Str(i)) ;
PARENT bmpOkvir SIZE du,bb ACCELKEY xbeK_F1 + (i-1) ;
ACTION bAction ;
CURSOR CUR SELECTENABLE SELECTCOLOR co1,co5 SELECTED ; // INIT SELECTED
OUTLINE COLOR co1,co2 CLICKCOLOR co3,co4 FONT fo1 OBJECT aButtons[i] ;
DROP {||NIL}
pic1 - running module
pic2 - click to button, this is ok buttons work as "switch"
pic3 - select some file and go to "surface" module
pic4 - here not shown sign "+" but is there, only my printscreen not save it to picture
pic5 - still left button pressed and move over button, he change to cyan
pic6 - still left button pressed and move to second button, first have new changed color Cyan
pic7 - color changed for all buttons, over which I moved.
pic8 - if left button release , buttons still cyan, only when move mouse over it, color return to his original color.
Sorry, if it is my trivial misunderstand, how it works...
Viktor
- Attachments
-
- screens.zip
- (1.76 MiB) Downloaded 877 times
-
- BUTTONYXP.ZIP
- (9.19 KiB) Downloaded 881 times
Re: Pushbutton drop problem
Hello Victorio,
thank you, this is exactly the behaviour I also have.
regards
Rudolf
thank you, this is exactly the behaviour I also have.
regards
Rudolf
Re: Pushbutton drop problem
Maybe it's because I am running Windows 10, or maybe it's because I'm using Xbase++ build 992, but I cannot reproduce that problem. I tested with eXpress++ build 263.
The eXpress train is coming - and it has more cars.
-
- Posts: 484
- Joined: Wed Jan 27, 2010 10:25 pm
- Location: Berlin Germany
Re: Pushbutton drop problem
I tested with Win10, Xbase++ 2.0.1023, eXPress++ Build 265, i see the behavior Victorio described.
_______________________
Best Regards
Wolfgang
Best Regards
Wolfgang
Re: Pushbutton drop problem
I sent a copy of the test program to Bobby Drakos.
I'm going to connect to him via Teamviewer and see what happens on his computer.
I'm going to connect to him via Teamviewer and see what happens on his computer.
The eXpress train is coming - and it has more cars.
Re: Pushbutton drop problem
Roger, if you want, I can also run teamviewer (version 10) , and run and show test program on my computer.
only my english is bad, I do not know communicate "online" in english language
I also tryed on Windows 10 64bit, with Xbase++ release 554 and eXpress 265, same result.
I am sure, this must be some trivial mistake, like refresh or I do not know what.
Victorio
only my english is bad, I do not know communicate "online" in english language

I also tryed on Windows 10 64bit, with Xbase++ release 554 and eXpress 265, same result.
I am sure, this must be some trivial mistake, like refresh or I do not know what.
Victorio
Re: Pushbutton drop problem
Hello Roger,
you can first look at the video:
http://www.formcommander.net/download/dragdrop.mp4
I moved over all tiles for demo.
Teamviewer and Skyp is also possible if the video is not enough. It seems that this does not happen on your computer, this is strange.
regards
Rudolf
you can first look at the video:
http://www.formcommander.net/download/dragdrop.mp4
I moved over all tiles for demo.
Teamviewer and Skyp is also possible if the video is not enough. It seems that this does not happen on your computer, this is strange.
regards
Rudolf
Re: Pushbutton drop problem
Hi Rudolf,
Maybe You found solition with drop color changes, if no, I tryed this :
add MOUSECOLOR GRA_CLR_WHITE,tbcolor("PNEXT") to DCPUSCHBUTTONXP
and also here add new case :
case cCode = "PNEXT"
*nSeq++ // disable incremental color change
if nSeq > len(aColor)
nSeq := 1
endif
return aColor[nSeq]
This cause, that color of button not changing color when go mouse over it.
Now you can only test if mouse LB pressed and disable this mode only when LB pressed.
This is only experiment, but maybe is usable.
I mean , is needed some mechanism to refresh color when LB release.
Viktor
Maybe You found solition with drop color changes, if no, I tryed this :
add MOUSECOLOR GRA_CLR_WHITE,tbcolor("PNEXT") to DCPUSCHBUTTONXP
and also here add new case :
case cCode = "PNEXT"
*nSeq++ // disable incremental color change
if nSeq > len(aColor)
nSeq := 1
endif
return aColor[nSeq]
This cause, that color of button not changing color when go mouse over it.
Now you can only test if mouse LB pressed and disable this mode only when LB pressed.
This is only experiment, but maybe is usable.
I mean , is needed some mechanism to refresh color when LB release.
Viktor