Problems with resizing and menu on DCPUSHBUTTONXP

This forum is for eXpress++ general support.
Post Reply
Message
Author
Wolfgang Ciriack
Posts: 479
Joined: Wed Jan 27, 2010 10:25 pm
Location: Berlin Germany

Problems with resizing and menu on DCPUSHBUTTONXP

#1 Post by Wolfgang Ciriack »

Hi Roger and all,
perhaps someone can help me with the some problems:

1. I have a static (red) which i want to stay below the BROWSE when resizing the window. What i ever tried, i don't succeed.

2. When selecting the menu from a button (f.e. "Grunddaten") and don't select an item - click anywhere, that the menu disappear - the next click on a button does not work, i allways have to click a second time.

3. If i use CJMONTHCALENDAR (activate #define CODEJOCKCAL), how can i react to a selection (mouse click) of a day ?

Attached is a testprogram.
Attachments
Test.zip
(303.6 KiB) Downloaded 606 times
_______________________
Best Regards
Wolfgang

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

Re: Problems with resizing and menu on DCPUSHBUTTONXP

#2 Post by Wolfgang Ciriack »

Hi Roger,
can you please have a look at this ?
_______________________
Best Regards
Wolfgang

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

Re: Problems with resizing and menu on DCPUSHBUTTONXP

#3 Post by rdonnay »

Wolfgang -

Sorry. I just found this posting. I will look at it today.
The eXpress train is coming - and it has more cars.

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

Re: Problems with resizing and menu on DCPUSHBUTTONXP

#4 Post by rdonnay »

This works for me:

Code: Select all

@oDrawingArea:currentSize()[2]-320,5 DCSTATIC TYPE XBPSTATIC_TYPE_TEXT OBJECT oStatCal SIZE DCGUI_PARENTWIDTH -10,230 ;
       PARENT oStatic6 ;
       RESIZE DCGUI_RESIZE_RESIZEONLY_X ;   // <<<<<<<<<<<<<<<<<<<<<<<
       COLOR GRA_CLR_WHITE, GRA_CLR_RED ;
       CAPTION 'Here I am' FONT '16.Arial Bold'
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: Problems with resizing and menu on DCPUSHBUTTONXP

#5 Post by Wolfgang Ciriack »

Thanks Roger for looking at this, but with build 255 this dos not work.

More important for me is the button problem, perhaps you can have a look at it ?
_______________________
Best Regards
Wolfgang

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

Re: Problems with resizing and menu on DCPUSHBUTTONXP

#6 Post by rdonnay »

I don't have any problem with the resizing change I made, even with build 255.

About the menu problem:

After lots of different workaround trials, I came to the realization that this is a problem with the :popUp() method of XbpMenu().
It interferes with the events if the menu is not selected and causes an xbeP_ActivateItem event to be generated instead of an xbeP_Activate event to be generated when clicked on any pushbutton object. I don't have a simple answer to this problem but I will try to find another workaround. This is an Xbase++ bug.
The eXpress train is coming - and it has more cars.

Post Reply