Re: xVariable max 1024 bytes ?
| Newsgroups | gmane.comp.windows.gui4cli |
|---|---|
| Message-ID | <[email protected]> |
Hi Chris,
I've had the same problem and used the following solution:
1. remove all Xvariables that need more than 1024 buffers from the main gui and place them in a separate gui called e.g. Xvarlist,gc or any other name
2. add the following line in your main gui: (after xonload)
#include ":Xvarlist.gc"
3. set the required buffers in the main gui's xonload
If that won't work do the following:
4. Ensure that the first line of Xvarlist.gc contains:
xroutine dummy
//do nothing
(somehow this was required for my program to work, i've forgotten why and now that i'm testing it, it
also works without the xroutine???)
Your test gui should now read:
==================================================
G4C INTRO_GUI
WINDOW 179 137 200 100 'My 1st gui'
xOnLoad
set buffers 4096
guiOpen #this
XOnClose
guiQuit #this
XBUTTON 30 35 145 40 'Click Me!'
guiQuit #this
#include ":Xvarlist.gc"
==================================================
Create a new gui Xvarlist.gc (in the same dir as the main gui) which should read:
==================================================
xVariable test
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx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