EditorGadget and tabulation en ReadOnly

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Gansta93
Enthusiast
Enthusiast
Posts: 238
Joined: Wed Oct 20, 2004 7:16 pm
Location: The Village
Contact:

EditorGadget and tabulation en ReadOnly

Post 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:
Be seeing you! :-)

Gansta93
If you speak french, you can visite Le Monde de Gansta93 (Gansta93's World)
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

good point.
Gansta93
Enthusiast
Enthusiast
Posts: 238
Joined: Wed Oct 20, 2004 7:16 pm
Location: The Village
Contact:

Post 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.
Be seeing you! :-)

Gansta93
If you speak french, you can visite Le Monde de Gansta93 (Gansta93's World)
User avatar
Progi1984
Addict
Addict
Posts: 806
Joined: Fri Feb 25, 2005 1:01 am
Location: France > Rennes
Contact:

Post by Progi1984 »

In the last help, there is not "[flags]"
there is :

Code: Select all

Resultat = EditorGadget(#Gadget, x, y, Largeur, Hauteur)
Gansta93
Enthusiast
Enthusiast
Posts: 238
Joined: Wed Oct 20, 2004 7:16 pm
Location: The Village
Contact:

Post 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?
Be seeing you! :-)

Gansta93
If you speak french, you can visite Le Monde de Gansta93 (Gansta93's World)
User avatar
Progi1984
Addict
Addict
Posts: 806
Joined: Fri Feb 25, 2005 1:01 am
Location: France > Rennes
Contact:

Post by Progi1984 »

It may be an forgetting(for frenchies, 'oubli') from Fred !
Gansta93
Enthusiast
Enthusiast
Posts: 238
Joined: Wed Oct 20, 2004 7:16 pm
Location: The Village
Contact:

Post by Gansta93 »

And what about the english documentation?
Be seeing you! :-)

Gansta93
If you speak french, you can visite Le Monde de Gansta93 (Gansta93's World)
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

There are no PB supported flags for these.
The optional parameter is just there to make adding OS api flags easier.
quidquid Latine dictum sit altum videtur
Gansta93
Enthusiast
Enthusiast
Posts: 238
Joined: Wed Oct 20, 2004 7:16 pm
Location: The Village
Contact:

Post 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.
Be seeing you! :-)

Gansta93
If you speak french, you can visite Le Monde de Gansta93 (Gansta93's World)
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post 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.
quidquid Latine dictum sit altum videtur
Gansta93
Enthusiast
Enthusiast
Posts: 238
Joined: Wed Oct 20, 2004 7:16 pm
Location: The Village
Contact:

Post by Gansta93 »

OK... thanks.
Last question... is it the same thing for OpenHelp()?
Be seeing you! :-)

Gansta93
If you speak french, you can visite Le Monde de Gansta93 (Gansta93's World)
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

Don't know what that one is for. I think it is useless too.
quidquid Latine dictum sit altum videtur
Post Reply