Pushbutton drop problem

This forum is for eXpress++ general support.
Message
Author
Victorio
Posts: 621
Joined: Sun Jan 18, 2015 11:43 am
Location: Slovakia

Re: Pushbutton drop problem

#11 Post by Victorio »

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.

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Pushbutton drop problem

#12 Post by rdonnay »

Somebody will have to show me this behavior.

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.

Victorio
Posts: 621
Joined: Sun Jan 18, 2015 11:43 am
Location: Slovakia

Re: Pushbutton drop problem

#13 Post by Victorio »

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}

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}
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
Attachments
screens.zip
(1.76 MiB) Downloaded 673 times
BUTTONYXP.ZIP
(9.19 KiB) Downloaded 696 times

c-tec
Posts: 379
Joined: Tue Apr 20, 2010 1:36 am
Location: SALZBURG/AUSTRIA
Contact:

Re: Pushbutton drop problem

#14 Post by c-tec »

Hello Victorio,
thank you, this is exactly the behaviour I also have.
regards
Rudolf
Rudolf Reinthaler
digital pen & paper systems
http://www.formcommander.net

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Pushbutton drop problem

#15 Post by rdonnay »

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.

Wolfgang Ciriack
Posts: 479
Joined: Wed Jan 27, 2010 10:25 pm
Location: Berlin Germany

Re: Pushbutton drop problem

#16 Post by Wolfgang Ciriack »

I tested with Win10, Xbase++ 2.0.1023, eXPress++ Build 265, i see the behavior Victorio described.
_______________________
Best Regards
Wolfgang

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Pushbutton drop problem

#17 Post by rdonnay »

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.
The eXpress train is coming - and it has more cars.

Victorio
Posts: 621
Joined: Sun Jan 18, 2015 11:43 am
Location: Slovakia

Re: Pushbutton drop problem

#18 Post by Victorio »

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 :oops:

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

c-tec
Posts: 379
Joined: Tue Apr 20, 2010 1:36 am
Location: SALZBURG/AUSTRIA
Contact:

Re: Pushbutton drop problem

#19 Post by c-tec »

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
Rudolf Reinthaler
digital pen & paper systems
http://www.formcommander.net

Victorio
Posts: 621
Joined: Sun Jan 18, 2015 11:43 am
Location: Slovakia

Re: Pushbutton drop problem

#20 Post by Victorio »

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

Post Reply