dc_mergegetlists() and captionarray
Posted: Sun Dec 28, 2014 12:15 pm
Hello,
I would like to merge getlists with buttons where the caption is definde with CAPTIONARRAY. In my sample I use the same caption array, but the result is different. What could be wrong ?
regards
Rudolf
I would like to merge getlists with buttons where the caption is definde with CAPTIONARRAY. In my sample I use the same caption array, but the result is different. What could be wrong ?
regards
Rudolf
Code: Select all
FUNCTION xxxMenu()
******************************************************************
LOCAL GetList[0],aCaption
aCaption := { ;
{chr(74) , GRA_CLR_WHITE,15,15, , , ,"50.Wingdings",,}, ; // Symbol
{"Test 1", GRA_CLR_WHITE,65, , , ,XBPALIGN_BOTTOM + XBPALIGN_HCENTER ,"8.Arial",,}} // Label bottom
@ 1,1 DCPUSHBUTTONXP SIZE 80,80 CAPTIONARRAY aCaption PIXEL CONFIG BUCFG1 ACTION {||DC_ReadGuiEvent(DCGUI_EXIT_OK,GetList)}
getlist := DC_MergeGetLists(get_buttons(),GetList)
DCREAD GUI
RETURN nil
function get_buttons()
******************************************************************
LOCAL GetList[0],aCaption
aCaption := { ;
{chr(74) , GRA_CLR_WHITE,15,15, , , ,"50.Wingdings",,}, ; // Symbol
{"Test 2", GRA_CLR_WHITE,65, , , ,XBPALIGN_BOTTOM + XBPALIGN_HCENTER ,"8.Arial",,}} // Label bottom
@ 1,85 DCPUSHBUTTONXP SIZE 80,80 CAPTIONARRAY aCaption PIXEL CONFIG BUCFG1 ACTION {||DC_ReadGuiEvent(DCGUI_EXIT_OK,GetList)}
DCREAD GUI EXIT SAVE
return getlist