Page 1 of 1

EditorGadget and tabulation en ReadOnly

Posted: Sat Apr 02, 2005 12:47 pm
by Gansta93
Hello,

The tabulations are suported by the EditorGadget.
It would be good if tabulations was not suported if the EditorGadget has the Read only flag.

Sory if my english is bad. :oops:

Posted: Sat Apr 02, 2005 12:51 pm
by Fred
good point.

Posted: Sat Apr 02, 2005 1:09 pm
by Gansta93
And about EditorGadget(), I've just though something. What are EditorGadget Flag?
When I type EditorGadget( on PureBasic IDE, in the StatusBar, I can Read:
EditorGadget (#Gadget,X,Y,Width,Heigh,[Flags])
What are thes flags?

Thanks in advance.

Posted: Sat Apr 02, 2005 5:08 pm
by Progi1984
In the last help, there is not "[flags]"
there is :

Code: Select all

Resultat = EditorGadget(#Gadget, x, y, Largeur, Hauteur)

Posted: Sat Apr 02, 2005 5:26 pm
by Gansta93
Progi1984 wrote:In the last help, there is not "[flags]"
there is :

Code: Select all

Resultat = EditorGadget(#Gadget, x, y, Largeur, Hauteur)
I don't speak about the documentation, but about the quick help in the status bar whan u type a command and the "(". For example, if u type

Code: Select all

EditorGadget(
and u look in the status bar of the PureBasic IDE window, u'll c
EditorGadget (#Gadget, x, y, Width, Heigth [, Flags]) - Create an Editor gadget in current GadgetList.
Same for OpenHelp(), the quick help says there is an optional parameter named Flags, but the documentation doesn't say that. Which is right? the quick help in the status bar, or the documentation? If it's the documentation, why can we c this parameter and if it's the quick help, why this parameter is not documented?

Posted: Sat Apr 02, 2005 5:31 pm
by Progi1984
It may be an forgetting(for frenchies, 'oubli') from Fred !

Posted: Sat Apr 02, 2005 5:37 pm
by Gansta93
And what about the english documentation?

Posted: Sat Apr 02, 2005 6:15 pm
by freak
There are no PB supported flags for these.
The optional parameter is just there to make adding OS api flags easier.

Posted: Sat Apr 02, 2005 6:35 pm
by Gansta93
Can we have an example of Windows API application with the 'Flags' parameter please?
I don't understand what API can be take to this parameter.
And about OpenHelp(), same thing?

Thanks in advance.

Posted: Sat Apr 02, 2005 7:11 pm
by freak
Err, sorry.. what i said is wrong.
After having a look at the sources, it looks like these parameters are just ignored.

Looks like Fred just added these optional values in order to make
the future adding of any PB flags easier.

So they do nothing.

Posted: Sat Apr 02, 2005 7:48 pm
by Gansta93
OK... thanks.
Last question... is it the same thing for OpenHelp()?

Posted: Sat Apr 02, 2005 9:01 pm
by freak
Don't know what that one is for. I think it is useless too.