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.
Problems with resizing and menu on DCPUSHBUTTONXP
-
- Posts: 484
- Joined: Wed Jan 27, 2010 10:25 pm
- Location: Berlin Germany
Problems with resizing and menu on DCPUSHBUTTONXP
- Attachments
-
- Test.zip
- (303.6 KiB) Downloaded 729 times
_______________________
Best Regards
Wolfgang
Best Regards
Wolfgang
-
- Posts: 484
- Joined: Wed Jan 27, 2010 10:25 pm
- Location: Berlin Germany
Re: Problems with resizing and menu on DCPUSHBUTTONXP
Hi Roger,
can you please have a look at this ?
can you please have a look at this ?
_______________________
Best Regards
Wolfgang
Best Regards
Wolfgang
Re: Problems with resizing and menu on DCPUSHBUTTONXP
Wolfgang -
Sorry. I just found this posting. I will look at it today.
Sorry. I just found this posting. I will look at it today.
The eXpress train is coming - and it has more cars.
Re: Problems with resizing and menu on DCPUSHBUTTONXP
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.
-
- Posts: 484
- Joined: Wed Jan 27, 2010 10:25 pm
- Location: Berlin Germany
Re: Problems with resizing and menu on DCPUSHBUTTONXP
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 ?
More important for me is the button problem, perhaps you can have a look at it ?
_______________________
Best Regards
Wolfgang
Best Regards
Wolfgang
Re: Problems with resizing and menu on DCPUSHBUTTONXP
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.
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.