FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Controls are not working when window is child of an MDI.
Posts: 336
Joined: Mon Dec 07, 2009 02:49 PM
Controls are not working when window is child of an MDI.
Posted: Tue Aug 10, 2010 08:23 AM

Hi,

I am facing some problems with CHILD window of an MDI.
whereas the same controls are working fine with DIALOG window without any code changes.

for example, following Controls are not working when window is child of an MDI but they works very well with DIALOG window

  1. GET CONTROL WITH ARRAY VARIABLE
    e.g.
    @10,10 get aoGET[1] VAR aAcctInfo[1]

  2. ANY COMBOBOX

  3. COLOR clause not working to Child window.

  4. Bitmap Button.

Please correct me if I worng.

Thanks
Shridhar

Thanks

Shridhar

FWH 24.04, BCC 7 32 bit, MariaDB
Posts: 1335
Joined: Fri Jun 13, 2008 11:04 AM
Re: Controls are not working when window is child of an MDI.
Posted: Tue Aug 10, 2010 09:04 AM
Dear Shridhar,

The below given code is working fine for me. I have used arrays to hold Get objects, Combobox and Colors

Code (fw): Select all Collapse
#include "Fivewin.ch"
//----------------------//
Function Main()

    Local oWnd
    
    DEFINE WINDOW oWnd TITLE "Test" MDI
        oWnd:oMenu:End()  // To remove the MDI menus
    
    ACTIVATE WINDOW oWnd ON INIT (Test())
Return

//----------------------//
Function Test()

    Local oWnd,oSay1,oSay2,aGetObject[2],aGetValues[2],oCombo,cCombo := "2"
    Local aItems := { "1", "2", "3" }
    
    aGetValues[1]:=0
    aGetValues[2]:=Space(160)
    
    DEFINE WINDOW oWnd MDICHILD OF WndMain() TITLE "Test SMS" ;
           COLOR CLR_BLACK, nRGB(213,228,242)
                  
    @0.5,5 SAY oSay1 Prompt "Mob.No" OF oWnd SIZE 40,15 COLOR CLR_BLACK, nRGB(213,228,242)
    @0.7,10 GET aGetObject[1] VAR aGetValues[1]  SIZE 100,20 
    
    @2.5,5 SAY oSay2 PROMPT "SMS Text" OF oWnd COLOR CLR_BLACK, nRGB(213,228,242)
    @3,10  GET aGetObject[2] VAR aGetValues[2] MEMO SIZE 200,60
    
     @10,10 COMBOBOX oCombo VAR cCombo ITEMS aItems SIZE 200, 100
    
    ACTIVATE WINDOW oWnd  
Return



Regards
Anser
Posts: 336
Joined: Mon Dec 07, 2009 02:49 PM
Re: Controls are not working when window is child of an MDI.
Posted: Tue Aug 10, 2010 09:28 AM

Hi Anser,

I am getting memory errors. Is there any environment issues ?
Tomorrow I will post error screen shots. So I can get more information from you.

FYI...! I am using Windows XP and xMate, Broland C++, FWH 9.11

Thanks a lot...! for your kind support.
Shridhar

Thanks

Shridhar

FWH 24.04, BCC 7 32 bit, MariaDB
Posts: 1335
Joined: Fri Jun 13, 2008 11:04 AM
Re: Controls are not working when window is child of an MDI.
Posted: Tue Aug 10, 2010 09:33 AM
Hi Shridhar,

Is there any environment issues ?

I dont think so.

Did you try to compile and run the sample which I have posted above using the BuildX.bat or BuildH.Bat ?

Regards
Anser

Continue the discussion